Trait glib::object::Upcast
[−]
[src]
pub unsafe trait Upcast<T: Wrapper>: Wrapper {
fn upcast(&self) -> VirtualRef<T::GlibType> { ... }
}Declares the "is a" relationship.
Self is said to implement T and can be upcast to a corresponding type.
T always implements Upcast<T>.
Provided Methods
fn upcast(&self) -> VirtualRef<T::GlibType>
Upcasts to a helper type corresponding to T.
Implementors
impl<T> Upcast<Object> for GenericObject<T> where GenericObject<T>: StaticType