Struct cxx_qt_lib::QSet

source ·
#[repr(C)]
pub struct QSet<T>
where T: QSetElement,
{ /* private fields */ }
Expand description

The QSet class is a template class that provides a hash-table-based set.

Note that this means that T needs to have a global qHash() function.

To use QSet with a custom type, implement the QSetElement trait for T.

Implementations§

source§

impl QSet<bool>

source

pub fn cxx_clear(&mut self)

source§

impl QSet<bool>

source

pub fn cxx_contains(&self, arg0: &bool) -> bool

source§

impl QSet<bool>

source

pub fn cxx_remove(&mut self, arg0: &bool) -> bool

source§

impl QSet<f32>

source

pub fn cxx_clear(&mut self)

source§

impl QSet<f32>

source

pub fn cxx_contains(&self, arg0: &f32) -> bool

source§

impl QSet<f32>

source

pub fn cxx_remove(&mut self, arg0: &f32) -> bool

source§

impl QSet<f64>

source

pub fn cxx_clear(&mut self)

source§

impl QSet<f64>

source

pub fn cxx_contains(&self, arg0: &f64) -> bool

source§

impl QSet<f64>

source

pub fn cxx_remove(&mut self, arg0: &f64) -> bool

source§

impl QSet<i8>

source

pub fn cxx_clear(&mut self)

source§

impl QSet<i8>

source

pub fn cxx_contains(&self, arg0: &i8) -> bool

source§

impl QSet<i8>

source

pub fn cxx_remove(&mut self, arg0: &i8) -> bool

source§

impl QSet<i16>

source

pub fn cxx_clear(&mut self)

source§

impl QSet<i16>

source

pub fn cxx_contains(&self, arg0: &i16) -> bool

source§

impl QSet<i16>

source

pub fn cxx_remove(&mut self, arg0: &i16) -> bool

source§

impl QSet<i32>

source

pub fn cxx_clear(&mut self)

source§

impl QSet<i32>

source

pub fn cxx_contains(&self, arg0: &i32) -> bool

source§

impl QSet<i32>

source

pub fn cxx_remove(&mut self, arg0: &i32) -> bool

source§

impl QSet<i64>

source

pub fn cxx_clear(&mut self)

source§

impl QSet<i64>

source

pub fn cxx_contains(&self, arg0: &i64) -> bool

source§

impl QSet<i64>

source

pub fn cxx_remove(&mut self, arg0: &i64) -> bool

source§

impl QSet<QByteArray>

source

pub fn cxx_clear(&mut self)

source§

impl QSet<QByteArray>

source

pub fn cxx_contains(&self, arg0: &QByteArray) -> bool

source§

impl QSet<QByteArray>

source

pub fn cxx_remove(&mut self, arg0: &QByteArray) -> bool

source§

impl QSet<QDate>

source

pub fn cxx_clear(&mut self)

source§

impl QSet<QDate>

source

pub fn cxx_contains(&self, arg0: &QDate) -> bool

source§

impl QSet<QDate>

source

pub fn cxx_remove(&mut self, arg0: &QDate) -> bool

source§

impl QSet<QDateTime>

source

pub fn cxx_clear(&mut self)

source§

impl QSet<QDateTime>

source

pub fn cxx_contains(&self, arg0: &QDateTime) -> bool

source§

impl QSet<QDateTime>

source

pub fn cxx_remove(&mut self, arg0: &QDateTime) -> bool

source§

impl QSet<QPersistentModelIndex>

source

pub fn cxx_clear(&mut self)

source§

impl QSet<QPersistentModelIndex>

source§

impl QSet<QPersistentModelIndex>

source

pub fn cxx_remove(&mut self, arg0: &QPersistentModelIndex) -> bool

source§

impl QSet<QString>

source

pub fn cxx_clear(&mut self)

source§

impl QSet<QString>

source

pub fn cxx_contains(&self, arg0: &QString) -> bool

source§

impl QSet<QString>

source

pub fn cxx_remove(&mut self, arg0: &QString) -> bool

source§

impl QSet<QTime>

source

pub fn cxx_clear(&mut self)

source§

impl QSet<QTime>

source

pub fn cxx_contains(&self, arg0: &QTime) -> bool

source§

impl QSet<QTime>

source

pub fn cxx_remove(&mut self, arg0: &QTime) -> bool

source§

impl QSet<QUrl>

source

pub fn cxx_clear(&mut self)

source§

impl QSet<QUrl>

source

pub fn cxx_contains(&self, arg0: &QUrl) -> bool

source§

impl QSet<QUrl>

source

pub fn cxx_remove(&mut self, arg0: &QUrl) -> bool

source§

impl QSet<u8>

source

pub fn cxx_clear(&mut self)

source§

impl QSet<u8>

source

pub fn cxx_contains(&self, arg0: &u8) -> bool

source§

impl QSet<u8>

source

pub fn cxx_remove(&mut self, arg0: &u8) -> bool

source§

impl QSet<u16>

source

pub fn cxx_clear(&mut self)

source§

impl QSet<u16>

source

pub fn cxx_contains(&self, arg0: &u16) -> bool

source§

impl QSet<u16>

source

pub fn cxx_remove(&mut self, arg0: &u16) -> bool

source§

impl QSet<u32>

source

pub fn cxx_clear(&mut self)

source§

impl QSet<u32>

source

pub fn cxx_contains(&self, arg0: &u32) -> bool

source§

impl QSet<u32>

source

pub fn cxx_remove(&mut self, arg0: &u32) -> bool

source§

impl QSet<u64>

source

pub fn cxx_clear(&mut self)

source§

impl QSet<u64>

source

pub fn cxx_contains(&self, arg0: &u64) -> bool

source§

impl QSet<u64>

source

pub fn cxx_remove(&mut self, arg0: &u64) -> bool

source§

impl<T> QSet<T>
where T: QSetElement,

source

pub fn clear(&mut self)

Removes all elements from the set.

source

pub fn contains(&self, value: &T) -> bool

Returns true if the set contains item value; otherwise returns false.

source

pub fn insert_clone(&mut self, value: &T)

Inserts item value into the set, if value isn’t already in the set, and returns an iterator pointing at the inserted item.

The value is a reference here so it can be opaque or trivial but note that the value is copied when being inserted into the set.

source

pub fn is_empty(&self) -> bool

Returns true if the set contains no elements; otherwise returns false.

source

pub fn iter(&self) -> Iter<'_, T>

An iterator visiting all elements in arbitrary order. The iterator element type is &’a T.

source

pub fn len(&self) -> isize

Returns the number of items in the set.

source

pub fn remove(&mut self, value: &T) -> bool

Removes any occurrence of item value from the set. Returns true if an item was actually removed; otherwise returns false.

source§

impl<T> QSet<T>
where T: QSetElement + ExternType<Kind = Trivial>,

source

pub fn insert(&mut self, value: T)

Inserts item value into the set, if value isn’t already in the set, and returns an iterator pointing at the inserted item.

Trait Implementations§

source§

impl<T> Clone for QSet<T>
where T: QSetElement,

source§

fn clone(&self) -> Self

Constructs a copy of the QSet.

1.0.0 · source§

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

Performs copy-assignment from source. Read more
source§

impl<T> Default for QSet<T>
where T: QSetElement,

source§

fn default() -> Self

Constructs an empty set.

source§

impl<T> Drop for QSet<T>
where T: QSetElement,

source§

fn drop(&mut self)

Destroys the QSet.

source§

impl<T> ExternType for QSet<T>

§

type Id = <T as QSetElement>::TypeId

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

type Kind = Trivial

source§

impl<T> PartialEq for QSet<T>

source§

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

Returns true if both sets contain the same elements

1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<T> Eq for QSet<T>

Auto Trait Implementations§

§

impl<T> Freeze for QSet<T>

§

impl<T> RefUnwindSafe for QSet<T>
where T: RefUnwindSafe,

§

impl<T> Send for QSet<T>
where T: Send,

§

impl<T> Sync for QSet<T>
where T: Sync,

§

impl<T> Unpin for QSet<T>
where T: Unpin,

§

impl<T> UnwindSafe for QSet<T>
where T: UnwindSafe,

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> 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,

§

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>,

§

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>,

§

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.