gdk_pixbuf::subclass::prelude

Trait InstanceStructExt

Source
pub unsafe trait InstanceStructExt: InstanceStruct {
    // Required methods
    fn imp(&self) -> &Self::Type;
    fn class(&self) -> &<Self::Type as ObjectSubclass>::Class;
}
Expand description

Trait implemented by any type implementing InstanceStruct to return the implementation, private Rust struct.

Required Methods§

Source

fn imp(&self) -> &Self::Type

Returns the implementation for from this instance struct, that is the implementor of ObjectImpl or subtraits.

Source

fn class(&self) -> &<Self::Type as ObjectSubclass>::Class

Returns the class struct for this specific instance.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§