Skip to main content

QmlRegister

Trait QmlRegister 

Source
pub trait QmlRegister:
    QMetaTypeGet
    + QObjectHolder
    + Default {
    const URI: &str;
    const ELEMENT_NAME: &str;
    const MINOR_VERSION: u8;
    const MAJOR_VERSION: u8;
    const IS_SINGLETON: bool;

    // Provided methods
    fn get_list_qmetatype() -> QMetaType { ... }
    fn list_to_qvariant<Owner, Notify>(
        owner: &Owner,
        store: &Vec<Rc<RefCell<Self>>>,
        _notify: Notify,
    ) -> QVariant
       where Owner: QObjectHolder,
             Notify: Fn(&mut Owner) + 'static { ... }
    fn register() { ... }
}

Required Associated Constants§

Provided Methods§

Source

fn get_list_qmetatype() -> QMetaType

Source

fn list_to_qvariant<Owner, Notify>( owner: &Owner, store: &Vec<Rc<RefCell<Self>>>, _notify: Notify, ) -> QVariant
where Owner: QObjectHolder, Notify: Fn(&mut Owner) + 'static,

Source

fn register()

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§