[go: up one dir, main page]

Trait glib::object::Upcast

source ·
pub trait Upcast<T: StaticType + Wrapper>: StaticType + Wrapper + Into<ObjectRef> + UnsafeFrom<ObjectRef> + for<'a> ToGlibPtr<'a, *mut <T as Wrapper>::GlibType> { }
Expand description

Declares the “is a” relationship.

Self is said to implement T. The trait can only be implemented if the appropriate ToGlibPtr implementations exist.

T always implements Upcast<T>.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Upcast<Object> for AppInfo

source§

impl<T> Upcast<T> for T
where T: StaticType + Wrapper + Into<ObjectRef> + UnsafeFrom<ObjectRef> + for<'a> ToGlibPtr<'a, *mut <T as Wrapper>::GlibType>,