#[repr(C)]pub struct QVariant { /* private fields */ }
Expand description
Wrapper around QVariant
class.
Implementations§
Source§impl QVariant
impl QVariant
Sourcepub fn to_qbytearray(&self) -> QByteArray
pub fn to_qbytearray(&self) -> QByteArray
Wrapper around toByteArray()
method.
Sourcepub fn user_type(&self) -> i32
pub fn user_type(&self) -> i32
Wrapper around userType()
method.
Sourcepub fn to_qvariantmap(&self) -> QVariantMap
pub fn to_qvariantmap(&self) -> QVariantMap
Wrapper around toMap()
method.
Sourcepub fn to_qstring(&self) -> QString
pub fn to_qstring(&self) -> QString
Wrapper around toString()
method.
Sourcepub fn type_name(&self) -> QString
pub fn type_name(&self) -> QString
Wrapper around ’typeName()` method.
Trait Implementations§
Source§impl From<QByteArray> for QVariant
impl From<QByteArray> for QVariant
Source§fn from(a: QByteArray) -> QVariant
fn from(a: QByteArray) -> QVariant
Wrapper around QVariant(const QByteArray &)
constructor.
Source§impl<'pin, T: QObject + 'pin> From<QObjectPinned<'pin, T>> for QVariant
impl<'pin, T: QObject + 'pin> From<QObjectPinned<'pin, T>> for QVariant
Source§fn from(obj: QObjectPinned<'pin, T>) -> Self
fn from(obj: QObjectPinned<'pin, T>) -> Self
Converts to this type from the input type.
Source§impl From<QStringList> for QVariant
impl From<QStringList> for QVariant
Source§fn from(a: QStringList) -> QVariant
fn from(a: QStringList) -> QVariant
Wrapper around QVariant(const QStringList &)
constructor.
Source§impl From<QVariant> for QJsonValue
impl From<QVariant> for QJsonValue
Source§fn from(v: QVariant) -> QJsonValue
fn from(v: QVariant) -> QJsonValue
Converts to this type from the input type.
Source§impl From<QVariantList> for QVariant
impl From<QVariantList> for QVariant
Source§fn from(a: QVariantList) -> QVariant
fn from(a: QVariantList) -> QVariant
Wrapper around QVariant(const QVariantList &)
constructor.
Source§impl From<QVariantMap> for QVariant
impl From<QVariantMap> for QVariant
Source§fn from(a: QVariantMap) -> QVariant
fn from(a: QVariantMap) -> QVariant
Wrapper around QVariant(const QMap<QString, QVariant> &)
constructor.
Source§impl Into<QVariant> for QJsonValue
impl Into<QVariant> for QJsonValue
Source§impl QMetaType for QVariant
impl QMetaType for QVariant
Source§fn to_qvariant(&self) -> QVariant
fn to_qvariant(&self) -> QVariant
Returns a QVariant containing a copy of this object
Source§fn from_qvariant(variant: QVariant) -> Option<Self>
fn from_qvariant(variant: QVariant) -> Option<Self>
Attempt to convert from a QVariant to this type.
fn id() -> i32
Source§const CONVERSION_TO_STRING: Option<fn(&Self) -> QString> = None
const CONVERSION_TO_STRING: Option<fn(&Self) -> QString> = None
If this is set to a function, it enable the conversion to and from QString
const CONVERSION_FROM_STRING: Option<fn(&QString) -> Self> = None
impl Eq for QVariant
Auto Trait Implementations§
impl Freeze for QVariant
impl RefUnwindSafe for QVariant
impl Send for QVariant
impl Sync for QVariant
impl Unpin for QVariant
impl UnwindSafe for QVariant
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