Trait RadiantComponentProvider

Source
pub trait RadiantComponentProvider {
    // Required methods
    fn get_component<T: RadiantComponent + 'static>(&self) -> Option<&T>;
    fn get_component_mut<T: RadiantComponent + 'static>(
        &mut self,
    ) -> Option<&mut T>;
}

Required Methods§

Source

fn get_component<T: RadiantComponent + 'static>(&self) -> Option<&T>

Source

fn get_component_mut<T: RadiantComponent + 'static>(&mut self) -> 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§