pub trait Kind: Into<Component> + TryFrom<Component> {
// Required methods
fn try_ref(component: &Component) -> Option<&Self>;
fn try_ref_mut(component: &mut Component) -> Option<&mut Self>;
}
Required Methods§
fn try_ref(component: &Component) -> Option<&Self>
fn try_ref_mut(component: &mut Component) -> Option<&mut Self>
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.