glib::subclass::types

Trait ObjectSubclassType

source
pub unsafe trait ObjectSubclassType {
    // Required methods
    fn type_data() -> NonNull<TypeData>;
    fn type_() -> Type;
}
Expand description

Type methods required for an ObjectSubclass implementation.

This is usually generated by the #[object_subclass] attribute macro.

Required Methods§

source

fn type_data() -> NonNull<TypeData>

Storage for the type-specific data used during registration.

source

fn type_() -> Type

Returns the glib::Type ID of the subclass.

This will register the type with the type system on the first call.

Object Safety§

This trait is not object safe.

Implementors§