pub trait QmlRegister:
QMetaTypeGet
+ QMetaInfo
+ QObjectHolder
+ Default {
const URI: &str;
const ELEMENT_NAME: &str;
const MINOR_VERSION: u8;
const MAJOR_VERSION: u8;
const IS_SINGLETON: bool;
// Provided method
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§
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.