Trait libhelium::subclass::prelude::ObjectSubclassExt   
[−]pub trait ObjectSubclassExt: ObjectSubclass {
    fn instance(&self) -> Self::Type;
    fn from_instance(obj: &Self::Type) -> &Self;
    fn instance_data<U>(&self, type_: Type) -> Option<&U>
    where
        U: 'static + Any + Send + Sync;
}Expand description
Extension methods for all ObjectSubclass impls.
Required Methods
fn from_instance(obj: &Self::Type) -> &Self
fn from_instance(obj: &Self::Type) -> &Self
Returns the implementation from an instance.