pub unsafe trait IsImplementable<T>: IsInterfacewhere
    T: ObjectSubclass,
    Self::GlibClassType: Copy,{
    // Provided methods
    fn interface_init(_iface: &mut Interface<Self>) { ... }
    fn instance_init(_instance: &mut InitializingObject<T>) { ... }
}
Expand description

Trait for implementable interfaces.

Provided Methods§

fn interface_init(_iface: &mut Interface<Self>)

Override the virtual methods of this interface for the given subclass and do other interface initialization.

This is automatically called during type initialization.

fn instance_init(_instance: &mut InitializingObject<T>)

Instance specific initialization.

This is automatically called during instance initialization.

Implementations on Foreign Types§

§

impl<T> IsImplementable<T> for ActionMapwhere T: ActionMapImpl, <T as ObjectSubclass>::Type: IsA<Object>,

§

fn interface_init(iface: &mut Interface<ActionMap>)

§

impl<T> IsImplementable<T> for AsyncInitablewhere T: AsyncInitableImpl,

§

fn interface_init(iface: &mut Interface<AsyncInitable>)

§

impl<T> IsImplementable<T> for Seekablewhere T: SeekableImpl,

§

fn interface_init(iface: &mut Interface<Seekable>)

§

impl<T> IsImplementable<T> for ListModelwhere T: ListModelImpl, <T as ObjectSubclass>::Type: IsA<Object>,

§

fn interface_init(iface: &mut Interface<ListModel>)

§

impl<T> IsImplementable<T> for ActionGroupwhere T: ActionGroupImpl,

§

fn interface_init(iface: &mut Interface<ActionGroup>)

§

impl<T> IsImplementable<T> for Initablewhere T: InitableImpl,

§

fn interface_init(iface: &mut Interface<Initable>)

Implementors§