Struct qmetaobject::QVariantMap
source · #[repr(C)]pub struct QVariantMap { /* private fields */ }
Expand description
Wrapper around QVariantMap
typedef.
Implementations§
source§impl QVariantMap
impl QVariantMap
sourcepub fn insert(&mut self, key: QString, element: QVariant)
pub fn insert(&mut self, key: QString, element: QVariant)
Wrapper around insert(int, const QString &, const QVariant &)
method.
sourcepub fn remove(&mut self, key: QString) -> usize
pub fn remove(&mut self, key: QString) -> usize
Wrapper around remove(const QString &)
method.
sourcepub fn take(&mut self, key: QString) -> QVariant
pub fn take(&mut self, key: QString) -> QVariant
Wrapper around take(const QString &)
method.
sourcepub fn contains(&self, key: QString) -> bool
pub fn contains(&self, key: QString) -> bool
Wrapper around contains(const QString &)
method.
Trait Implementations§
source§impl Clone for QVariantMap
impl Clone for QVariantMap
source§fn clone(&self) -> QVariantMap
fn clone(&self) -> QVariantMap
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for QVariantMap
impl Debug for QVariantMap
source§impl Default for QVariantMap
impl Default for QVariantMap
source§fn default() -> QVariantMap
fn default() -> QVariantMap
Returns the “default value” for a type. Read more
source§impl Drop for QVariantMap
impl Drop for QVariantMap
source§impl<K, V> From<HashMap<K, V>> for QVariantMap
impl<K, V> From<HashMap<K, V>> for QVariantMap
source§fn from(m: HashMap<K, V>) -> QVariantMap
fn from(m: HashMap<K, V>) -> QVariantMap
Converts to this type from the input type.
source§impl<K, V> FromIterator<(K, V)> for QVariantMap
impl<K, V> FromIterator<(K, V)> for QVariantMap
source§fn from_iter<I>(iter: I) -> QVariantMapwhere
I: IntoIterator<Item = (K, V)>,
fn from_iter<I>(iter: I) -> QVariantMapwhere
I: IntoIterator<Item = (K, V)>,
Creates a value from an iterator. Read more
source§impl Index<QString> for QVariantMap
impl Index<QString> for QVariantMap
source§impl IndexMut<QString> for QVariantMap
impl IndexMut<QString> for QVariantMap
source§fn index_mut(
&mut self,
key: QString
) -> &mut <QVariantMap as Index<QString>>::Output
fn index_mut( &mut self, key: QString ) -> &mut <QVariantMap as Index<QString>>::Output
Wrapper around operator[](int)
operator method.
source§impl<'a> IntoIterator for &'a QVariantMap
impl<'a> IntoIterator for &'a QVariantMap
§type IntoIter = QVariantMapIterator<'a>
type IntoIter = QVariantMapIterator<'a>
Which kind of iterator are we turning this into?
source§fn into_iter(self) -> <&'a QVariantMap as IntoIterator>::IntoIter
fn into_iter(self) -> <&'a QVariantMap as IntoIterator>::IntoIter
Creates an iterator from a value. Read more
source§impl PartialEq for QVariantMap
impl PartialEq for QVariantMap
source§fn eq(&self, other: &QVariantMap) -> bool
fn eq(&self, other: &QVariantMap) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl QMetaType for QVariantMap
impl QMetaType for QVariantMap
fn id() -> i32
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.
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 QVariantMap
impl StructuralEq for QVariantMap
Auto Trait Implementations§
impl RefUnwindSafe for QVariantMap
impl Send for QVariantMap
impl Sync for QVariantMap
impl Unpin for QVariantMap
impl UnwindSafe for QVariantMap
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