pub struct QMetaType { /* private fields */ }Expand description
The QMetaType struct manages named types in the meta-object system.
See also: QMetaType documentation.
Implementations§
Source§impl QMetaType
impl QMetaType
Sourcepub fn new_with_interface(iface: &'static QMetaTypeInterface) -> Self
pub fn new_with_interface(iface: &'static QMetaTypeInterface) -> Self
Creates a QMetaType instance from the specified QMetaTypeInterface.
Sourcepub fn name(&self) -> String
pub fn name(&self) -> String
Returns the type name associated with this QMetaType, or an empty string if type is not valid.
Sourcepub fn register_type(&self)
pub fn register_type(&self)
Registers this QMetaType with the type registry so it can be found by name, using QMetaType::fromName().
Trait Implementations§
Source§impl ExternType for QMetaType
impl ExternType for QMetaType
Auto Trait Implementations§
impl Freeze for QMetaType
impl RefUnwindSafe for QMetaType
impl Send for QMetaType
impl Sync for QMetaType
impl Unpin for QMetaType
impl UnsafeUnpin for QMetaType
impl UnwindSafe for QMetaType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more