Struct qt_core::q_meta_type::TypeFlag
source · pub struct TypeFlag(/* private fields */);
Expand description
The enum describes attributes of a type supported by QMetaType.
C++ enum: QMetaType::TypeFlag
.
Implementations§
source§impl TypeFlag
impl TypeFlag
sourcepub const NeedsConstruction: TypeFlag = _
pub const NeedsConstruction: TypeFlag = _
This type has non-trivial constructors. If the flag is not set instances can be safely initialized with memset to 0. (C++ enum variant: NeedsConstruction = 1
)
sourcepub const NeedsDestruction: TypeFlag = _
pub const NeedsDestruction: TypeFlag = _
This type has a non-trivial destructor. If the flag is not set calls to the destructor are not necessary before discarding objects. (C++ enum variant: NeedsDestruction = 2
)
sourcepub const MovableType: TypeFlag = _
pub const MovableType: TypeFlag = _
An instance of a type having this attribute can be safely moved by memcpy. (C++ enum variant: MovableType = 4
)
sourcepub const PointerToQObject: TypeFlag = _
pub const PointerToQObject: TypeFlag = _
This type is a pointer to a derived of QObject This type is a Q_GADGET and it’s corresponding QMetaObject can be accessed with QMetaType::metaObject Since 5.5. (C++ enum variant: PointerToQObject = 8
)
sourcepub const IsEnumeration: TypeFlag = _
pub const IsEnumeration: TypeFlag = _
This type is an enumeration (C++ enum variant: IsEnumeration = 16
)
C++ enum variant: SharedPointerToQObject = 32
sourcepub const WeakPointerToQObject: TypeFlag = _
pub const WeakPointerToQObject: TypeFlag = _
C++ enum variant: WeakPointerToQObject = 64
sourcepub const TrackingPointerToQObject: TypeFlag = _
pub const TrackingPointerToQObject: TypeFlag = _
C++ enum variant: TrackingPointerToQObject = 128
sourcepub const WasDeclaredAsMetaType: TypeFlag = _
pub const WasDeclaredAsMetaType: TypeFlag = _
C++ enum variant: WasDeclaredAsMetaType = 256
sourcepub const PointerToGadget: TypeFlag = _
pub const PointerToGadget: TypeFlag = _
C++ enum variant: PointerToGadget = 1024