Trait Get
pub trait Get<T> {
// Required method
fn get() -> T;
}
Expand description
A trait for querying a single value from a type.
It is not required that the value is constant.
Required Methods§
fn get() -> T
fn get() -> T
Return the current value.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.