Trait glib::subclass::types::ObjectSubclassExt [−][src]
pub trait ObjectSubclassExt: ObjectSubclass { fn instance(&self) -> Self::Type; fn from_instance(obj: &Self::Type) -> &Self; fn instance_data<U: Any + Send + Sync + 'static>(
&self,
type_: Type
) -> Option<&U>; }
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.