Trait glib::object::IsA [−][src]
pub unsafe trait IsA<T: StaticType + UnsafeFrom<ObjectRef> + Wrapper>: StaticType + Wrapper + Into<ObjectRef> + UnsafeFrom<ObjectRef> + for<'a> ToGlibPtr<'a, *mut <T as Wrapper>::GlibType> { }
Declares the "is a" relationship.
Self is said to implement T.
For instance, since originally GtkWidget is a subclass of GObject and
implements the GtkBuildable interface, gtk::Widget implements
IsA<glib::Object> and IsA<gtk::Buildable>.
The trait can only be implemented if the appropriate ToGlibPtr
implementations exist.
T always implements IsA<T>.
Implementors
impl<T> IsA<T> for T where
T: StaticType + Wrapper + Into<ObjectRef> + UnsafeFrom<ObjectRef> + for<'a> ToGlibPtr<'a, *mut <T as Wrapper>::GlibType>,impl IsA<Object> for Binding