GetField

Trait GetField 

Source
pub trait GetField {
    // Required methods
    fn get_field<T: 'static>(
        &self,
        name: &str,
        func: &mut dyn FnMut(Option<&T>),
    );
    fn get_field_mut<T: 'static>(
        &mut self,
        _name: &str,
        func: &mut dyn FnMut(Option<&mut T>),
    );
}
Expand description

Helper methods over Reflect types

Required Methods§

Source

fn get_field<T: 'static>(&self, name: &str, func: &mut dyn FnMut(Option<&T>))

Source

fn get_field_mut<T: 'static>( &mut self, _name: &str, func: &mut dyn FnMut(Option<&mut T>), )

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<R: Reflect> GetField for R