pub trait FieldGetter<Context, Tag> {
type Value;
// Required method
fn get_field(context: &Context, _tag: PhantomData<Tag>) -> &Self::Value;
}Required Associated Types§
Required Methods§
fn get_field(context: &Context, _tag: PhantomData<Tag>) -> &Self::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.