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