Trait GetField

Source
pub trait GetField<'a, K, M> {
    // Required method
    fn get_field<T>(self, key: K) -> Option<&'a T>
       where T: Reflect;
}
Expand description

Helper trait for accessing and downcasting fields on reflected values.

Required Methods§

Source

fn get_field<T>(self, key: K) -> Option<&'a T>
where T: Reflect,

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.

Implementations on Foreign Types§

Source§

impl<'a, R, K, M> GetField<'a, K, M> for &'a mut R
where R: ?Sized, &'a R: GetField<'a, K, M>,

Source§

fn get_field<T>(self, key: K) -> Option<&'a T>
where T: Reflect,

Implementors§