pub trait FromObject {
type FromObjectType;
// Required method
fn from_object(obj: &Self::FromObjectType) -> &Self;
}
Expand description
Helper trait for macros to access a subclass or its wrapper.
Required Associated Types§
type FromObjectType
Required Methods§
fn from_object(obj: &Self::FromObjectType) -> &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.