glib::subclass::type_plugin

Trait TypePluginRegisterImpl

Source
pub trait TypePluginRegisterImpl: ObjectImpl + TypePluginImpl {
    // Provided methods
    fn add_dynamic_interface(
        &self,
        _instance_type: Type,
        _interface_type: Type,
        _interface_info: &InterfaceInfo,
    ) { ... }
    fn register_dynamic_enum(
        &self,
        _name: &str,
        _const_static_values: &'static EnumValues,
    ) -> Type { ... }
    fn register_dynamic_flags(
        &self,
        _name: &str,
        _const_static_values: &'static FlagsValues,
    ) -> Type { ... }
    fn register_dynamic_type(
        &self,
        _parent_type: Type,
        _type_name: &str,
        _type_info: &TypeInfo,
        _flags: TypeFlags,
    ) -> Type { ... }
}

Provided Methods§

Source

fn add_dynamic_interface( &self, _instance_type: Type, _interface_type: Type, _interface_info: &InterfaceInfo, )

Source

fn register_dynamic_enum( &self, _name: &str, _const_static_values: &'static EnumValues, ) -> Type

Source

fn register_dynamic_flags( &self, _name: &str, _const_static_values: &'static FlagsValues, ) -> Type

Source

fn register_dynamic_type( &self, _parent_type: Type, _type_name: &str, _type_info: &TypeInfo, _flags: TypeFlags, ) -> Type

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§