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§
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
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.