#[repr(C)]
pub struct QVariant { /* private fields */ }
Expand description

The QVariant class acts like a union for the most common Qt data types.

Implementations

Returns the value of the QVariant as a Rust enum

Trait Implementations

Constructs a copy of the variant, p, passed as the argument to this constructor.

Performs copy-assignment from source. Read more

Constructs an invalid variant.

Destroys the QVariant and the contained object.

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

Constructs a QVariant from a reference of $typeName

Constructs a QVariant from a reference of $typeName

Constructs a QVariant from a reference of $typeName

Constructs a QVariant from a reference of $typeName

Constructs a QVariant from a reference of $typeName

Constructs a QVariant from a reference of $typeName

Constructs a QVariant from a reference of $typeName

Constructs a QVariant from a reference of $typeName

Constructs a QVariant from a reference of $typeName

Constructs a QVariant from a reference of $typeName

Constructs a QVariant from a reference of $typeName

Constructs a QVariant from a reference of $typeName

Constructs a QVariant from a value of $typeName

Constructs a QVariant from a value of $typeName

Constructs a QVariant from a value of $typeName

Constructs a QVariant from a value of $typeName

Constructs a QVariant from a value of $typeName

Constructs a QVariant from a value of $typeName

Constructs a QVariant from a value of $typeName

Constructs a QVariant from a value of $typeName

Constructs a QVariant from a value of $typeName

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.