Struct glib::object::Interface [−][src]
#[repr(transparent)]pub struct Interface<T: IsInterface>(_);
Expand description
Interface struct of type T
for some type.
Implementations
Get the type id for this interface.
This is equivalent to T::static_type()
.
Get the type id for the instance type of this interface.
This is not equivalent to T::static_type()
but is the type id of the type this specific
interface belongs to.
Gets the interface struct for Self
of klass
.
This will return None
if klass
is not implementing Self
.
Gets the default interface struct for Self
.
This will return None
if type_
is not an interface.
Gets the default interface struct for Self
.
Gets the parent interface struct, if any.
This returns the parent interface if a parent type of the instance type also implements the interface.
Trait Implementations
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl<T> RefUnwindSafe for Interface<T> where
<T as ObjectType>::GlibClassType: RefUnwindSafe,
impl<T> Unpin for Interface<T> where
<T as ObjectType>::GlibClassType: Unpin,
impl<T> UnwindSafe for Interface<T> where
<T as ObjectType>::GlibClassType: UnwindSafe,