Skip to main content

QMetaTypeType

Struct QMetaTypeType 

#[repr(transparent)]
pub struct QMetaTypeType { pub repr: i32, }
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§

§

impl QMetaTypeType

pub const UnknownType: QMetaTypeType

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

pub const Bool: QMetaTypeType

pub const Int: QMetaTypeType

pub const UInt: QMetaTypeType

pub const LongLong: QMetaTypeType

pub const ULongLong: QMetaTypeType

pub const Double: QMetaTypeType

pub const Long: QMetaTypeType

pub const Short: QMetaTypeType

pub const Char: QMetaTypeType

pub const ULong: QMetaTypeType

pub const UShort: QMetaTypeType

pub const UChar: QMetaTypeType

pub const Float: QMetaTypeType

pub const VoidStar: QMetaTypeType

pub const QChar: QMetaTypeType

pub const QString: QMetaTypeType

pub const QStringList: QMetaTypeType

pub const QByteArray: QMetaTypeType

pub const QBitArray: QMetaTypeType

pub const QDate: QMetaTypeType

pub const QTime: QMetaTypeType

pub const QDateTime: QMetaTypeType

pub const QUrl: QMetaTypeType

pub const QLocale: QMetaTypeType

pub const QRect: QMetaTypeType

pub const QRectF: QMetaTypeType

pub const QSize: QMetaTypeType

pub const QSizeF: QMetaTypeType

pub const QLine: QMetaTypeType

pub const QLineF: QMetaTypeType

pub const QPoint: QMetaTypeType

pub const QPointF: QMetaTypeType

pub const QEasingCurve: QMetaTypeType

pub const QUuid: QMetaTypeType

pub const QVariant: QMetaTypeType

pub const QModelIndex: QMetaTypeType

pub const QPersistentModelIndex: QMetaTypeType

pub const QRegularExpression: QMetaTypeType

pub const QJsonValue: QMetaTypeType

pub const QJsonObject: QMetaTypeType

pub const QJsonArray: QMetaTypeType

pub const QJsonDocument: QMetaTypeType

pub const QByteArrayList: QMetaTypeType

pub const QObjectStar: QMetaTypeType

pub const SChar: QMetaTypeType

pub const Void: QMetaTypeType

pub const Nullptr: QMetaTypeType

pub const QVariantMap: QMetaTypeType

pub const QVariantList: QMetaTypeType

pub const QVariantHash: QMetaTypeType

pub const QCborSimpleType: QMetaTypeType

pub const QCborValue: QMetaTypeType

pub const QCborArray: QMetaTypeType

pub const QCborMap: QMetaTypeType

pub const Char16: QMetaTypeType

pub const Char32: QMetaTypeType

pub const QFont: QMetaTypeType

pub const QPixmap: QMetaTypeType

pub const QBrush: QMetaTypeType

pub const QColor: QMetaTypeType

pub const QPalette: QMetaTypeType

pub const QIcon: QMetaTypeType

pub const QImage: QMetaTypeType

pub const QPolygon: QMetaTypeType

pub const QRegion: QMetaTypeType

pub const QBitmap: QMetaTypeType

pub const QCursor: QMetaTypeType

pub const QKeySequence: QMetaTypeType

pub const QPen: QMetaTypeType

pub const QTextLength: QMetaTypeType

pub const QTextFormat: QMetaTypeType

pub const QTransform: QMetaTypeType

pub const QMatrix4x4: QMetaTypeType

pub const QVector2D: QMetaTypeType

pub const QVector3D: QMetaTypeType

pub const QVector4D: QMetaTypeType

pub const QQuaternion: QMetaTypeType

pub const QPolygonF: QMetaTypeType

pub const QColorSpace: QMetaTypeType

pub const QSizePolicy: QMetaTypeType

pub const User: QMetaTypeType

Trait Implementations§

§

impl Clone for QMetaTypeType

§

fn clone(&self) -> QMetaTypeType

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
§

impl Debug for QMetaTypeType

§

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

Formats the value using the given formatter. Read more
§

impl ExternType for QMetaTypeType

§

type Kind = Trivial

Source§

type Id

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

impl From<i32> for QMetaTypeType

§

fn from(value: i32) -> QMetaTypeType

Converts to this type from the input type.
§

impl PartialEq for QMetaTypeType

§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · 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.
§

impl Copy for QMetaTypeType

§

impl Eq for QMetaTypeType

§

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.