Skip to main content

QMetaTypeType

Struct QMetaTypeType 

Source
#[repr(transparent)]
pub struct QMetaTypeType { pub repr: i32, }
Available on cxxqt_qt_version_major=6 only.
Expand description

Types supported by QMetaType. This enum list is non-exhaustive, as additional types may be registered during runtime.

User-registered types should be greater than or equal to QMetaTypeType::User.

Fields§

§repr: i32

Implementations§

Source§

impl QMetaTypeType

Source

pub const UnknownType: Self

This is an invalid type id. It is returned for types that are not registered.

Source

pub const Bool: Self

Source

pub const Int: Self

Source

pub const UInt: Self

Source

pub const LongLong: Self

Source

pub const ULongLong: Self

Source

pub const Double: Self

Source

pub const Long: Self

Source

pub const Short: Self

Source

pub const Char: Self

Source

pub const ULong: Self

Source

pub const UShort: Self

Source

pub const UChar: Self

Source

pub const Float: Self

Source

pub const VoidStar: Self

Source

pub const QChar: Self

Source

pub const QString: Self

Source

pub const QStringList: Self

Source

pub const QByteArray: Self

Source

pub const QBitArray: Self

Source

pub const QDate: Self

Source

pub const QTime: Self

Source

pub const QDateTime: Self

Source

pub const QUrl: Self

Source

pub const QLocale: Self

Source

pub const QRect: Self

Source

pub const QRectF: Self

Source

pub const QSize: Self

Source

pub const QSizeF: Self

Source

pub const QLine: Self

Source

pub const QLineF: Self

Source

pub const QPoint: Self

Source

pub const QPointF: Self

Source

pub const QEasingCurve: Self

Source

pub const QUuid: Self

Source

pub const QVariant: Self

Source

pub const QModelIndex: Self

Source

pub const QPersistentModelIndex: Self

Source

pub const QRegularExpression: Self

Source

pub const QJsonValue: Self

Source

pub const QJsonObject: Self

Source

pub const QJsonArray: Self

Source

pub const QJsonDocument: Self

Source

pub const QByteArrayList: Self

Source

pub const QObjectStar: Self

Source

pub const SChar: Self

Source

pub const Void: Self

Source

pub const Nullptr: Self

Source

pub const QVariantMap: Self

Source

pub const QVariantList: Self

Source

pub const QVariantHash: Self

Source

pub const QCborSimpleType: Self

Source

pub const QCborValue: Self

Source

pub const QCborArray: Self

Source

pub const QCborMap: Self

Source

pub const Char16: Self

Source

pub const Char32: Self

Source

pub const QFont: Self

Source

pub const QPixmap: Self

Source

pub const QBrush: Self

Source

pub const QColor: Self

Source

pub const QPalette: Self

Source

pub const QIcon: Self

Source

pub const QImage: Self

Source

pub const QPolygon: Self

Source

pub const QRegion: Self

Source

pub const QBitmap: Self

Source

pub const QCursor: Self

Source

pub const QKeySequence: Self

Source

pub const QPen: Self

Source

pub const QTextLength: Self

Source

pub const QTextFormat: Self

Source

pub const QTransform: Self

Source

pub const QMatrix4x4: Self

Source

pub const QVector2D: Self

Source

pub const QVector3D: Self

Source

pub const QVector4D: Self

Source

pub const QQuaternion: Self

Source

pub const QPolygonF: Self

Source

pub const QColorSpace: Self

Source

pub const QSizePolicy: Self

Source

pub const User: Self

Trait Implementations§

Source§

impl Clone for QMetaTypeType

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for QMetaTypeType

Source§

impl Debug for QMetaTypeType

Source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for QMetaTypeType

Source§

impl ExternType for QMetaTypeType

Source§

type Kind = Trivial

Source§

type Id

A type-level representation of the type’s C++ namespace and type name. Read more
Source§

impl From<QMetaTypeType> for i32

Source§

fn from(value: QMetaTypeType) -> Self

Converts to this type from the input type.
Source§

impl From<i32> for QMetaTypeType

Source§

fn from(value: i32) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for QMetaTypeType

Source§

fn eq(&self, other: &QMetaTypeType) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for QMetaTypeType

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.