Struct cxx_qt_lib::QVariant
source · [−]pub struct QVariant { /* private fields */ }
Expand description
The Rust representation of Qt’s QVariant
Internally this holds a UniquePtr to a QVariantCpp which has been constructed on the C++ side.
Implementations
sourceimpl QVariant
impl QVariant
sourcepub fn value(&self) -> QVariantValue
pub fn value(&self) -> QVariantValue
Returns the value of the QVariant as a Rust enum
Trait Implementations
sourceimpl ToUniquePtr for QVariant
impl ToUniquePtr for QVariant
sourcefn to_unique_ptr(self) -> UniquePtr<QVariantCpp>
fn to_unique_ptr(self) -> UniquePtr<QVariantCpp>
Retrieve the UniquePtr to the Qt QVariantCpp of this Rust QVariant so that this object can be passed back to C++.
type CppType = QVariant
Auto Trait Implementations
impl RefUnwindSafe for QVariant
impl !Send for QVariant
impl !Sync for QVariant
impl !Unpin for QVariant
impl UnwindSafe for QVariant
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more