Get

Trait Get 

Source
pub trait Get: Sized {
    // Provided method
    fn get<Name>(self) -> <Self as Field<Name>>::Type
       where Self: Field<Name> { ... }
}
Expand description

A trait for Getting a value from a specific Field with a specific Field::Type.

Provided Methods§

Source

fn get<Name>(self) -> <Self as Field<Name>>::Type
where Self: Field<Name>,

Returns a value of a field called Name.

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.

Implementors§

Source§

impl<T> Get for T

Allow to get field from all types.