Skip to main content

QListOfInt

Struct QListOfInt 

Source
pub struct QListOfInt { /* private fields */ }
Expand description

C++ class: QList<int>.

Implementations§

Source§

impl QListOfInt

Source

pub unsafe fn add_assign_q_list_of_int( &self, l: impl CastInto<Ref<QListOfInt>>, ) -> Ref<QListOfInt>

Calls C++ function: QList<int>& QList<int>::operator+=(const QList<int>& l).

Source

pub unsafe fn add_assign_int(&self, t: *const c_int) -> Ref<QListOfInt>

Calls C++ function: QList<int>& QList<int>::operator+=(const int& t).

Source

pub unsafe fn append_int(&self, t: *const c_int)

Calls C++ function: void QList<int>::append(const int& t).

Source

pub unsafe fn append_q_list_of_int(&self, t: impl CastInto<Ref<QListOfInt>>)

Calls C++ function: void QList<int>::append(const QList<int>& t).

Source

pub unsafe fn at(&self, i: c_int) -> *const c_int

Calls C++ function: const int& QList<int>::at(int i) const.

Source

pub unsafe fn back_mut(&self) -> *mut c_int

Calls C++ function: int& QList<int>::back().

Source

pub unsafe fn back(&self) -> *const c_int

Calls C++ function: const int& QList<int>::back() const.

Source

pub unsafe fn begin_mut(&self) -> CppBox<Iterator>

Calls C++ function: QList<int>::iterator QList<int>::begin().

Source

pub unsafe fn begin(&self) -> CppBox<ConstIterator>

Calls C++ function: QList<int>::const_iterator QList<int>::begin() const.

Source

pub unsafe fn cbegin(&self) -> CppBox<ConstIterator>

Calls C++ function: QList<int>::const_iterator QList<int>::cbegin() const.

Source

pub unsafe fn cend(&self) -> CppBox<ConstIterator>

Calls C++ function: QList<int>::const_iterator QList<int>::cend() const.

Source

pub unsafe fn clear(&self)

Calls C++ function: void QList<int>::clear().

Source

pub unsafe fn const_begin(&self) -> CppBox<ConstIterator>

Calls C++ function: QList<int>::const_iterator QList<int>::constBegin() const.

Source

pub unsafe fn const_end(&self) -> CppBox<ConstIterator>

Calls C++ function: QList<int>::const_iterator QList<int>::constEnd() const.

Source

pub unsafe fn const_first(&self) -> *const c_int

Calls C++ function: const int& QList<int>::constFirst() const.

Source

pub unsafe fn const_last(&self) -> *const c_int

Calls C++ function: const int& QList<int>::constLast() const.

Source

pub unsafe fn contains(&self, t: *const c_int) -> bool

Calls C++ function: bool QList<int>::contains(const int& t) const.

Source

pub unsafe fn copy_from( &self, l: impl CastInto<Ref<QListOfInt>>, ) -> Ref<QListOfInt>

Calls C++ function: QList<int>& QList<int>::operator=(const QList<int>& l).

Source

pub unsafe fn count_1a(&self, t: *const c_int) -> c_int

Calls C++ function: int QList<int>::count(const int& t) const.

Source

pub unsafe fn count_0a(&self) -> c_int

Calls C++ function: int QList<int>::count() const.

Source

pub unsafe fn detach(&self)

Calls C++ function: void QList<int>::detach().

Source

pub unsafe fn detach_shared(&self)

Calls C++ function: void QList<int>::detachShared().

Source

pub unsafe fn empty(&self) -> bool

Calls C++ function: bool QList<int>::empty() const.

Source

pub unsafe fn end_mut(&self) -> CppBox<Iterator>

Calls C++ function: QList<int>::iterator QList<int>::end().

Source

pub unsafe fn end(&self) -> CppBox<ConstIterator>

Calls C++ function: QList<int>::const_iterator QList<int>::end() const.

Source

pub unsafe fn ends_with(&self, t: *const c_int) -> bool

Calls C++ function: bool QList<int>::endsWith(const int& t) const.

Source

pub unsafe fn erase_1a( &self, pos: impl CastInto<Ref<Iterator>>, ) -> CppBox<Iterator>

Calls C++ function: QList<int>::iterator QList<int>::erase(QList<int>::iterator pos).

Source

pub unsafe fn erase_2a( &self, first: impl CastInto<Ref<Iterator>>, last: impl CastInto<Ref<Iterator>>, ) -> CppBox<Iterator>

Calls C++ function: QList<int>::iterator QList<int>::erase(QList<int>::iterator first, QList<int>::iterator last).

Source

pub unsafe fn first_mut(&self) -> *mut c_int

Calls C++ function: int& QList<int>::first().

Source

pub unsafe fn first(&self) -> *const c_int

Calls C++ function: const int& QList<int>::first() const.

Source

pub unsafe fn from_vector( vector: impl CastInto<Ref<QVectorOfInt>>, ) -> CppBox<QListOfInt>

Calls C++ function: static QList<int> QList<int>::fromVector(const QVector<int>& vector).

Source

pub unsafe fn front_mut(&self) -> *mut c_int

Calls C++ function: int& QList<int>::front().

Source

pub unsafe fn front(&self) -> *const c_int

Calls C++ function: const int& QList<int>::front() const.

Source

pub unsafe fn index(&self, i: c_int) -> *const c_int

Calls C++ function: const int& QList<int>::operator[](int i) const.

Source

pub unsafe fn index_mut(&self, i: c_int) -> *mut c_int

Calls C++ function: int& QList<int>::operator[](int i).

Source

pub unsafe fn index_of_2a(&self, t: *const c_int, from: c_int) -> c_int

Calls C++ function: int QList<int>::indexOf(const int& t, int from = …) const.

Source

pub unsafe fn index_of_1a(&self, t: *const c_int) -> c_int

Calls C++ function: int QList<int>::indexOf(const int& t) const.

Source

pub unsafe fn insert_int_int(&self, i: c_int, t: *const c_int)

Calls C++ function: void QList<int>::insert(int i, const int& t).

Source

pub unsafe fn insert_iterator_int( &self, before: impl CastInto<Ref<Iterator>>, t: *const c_int, ) -> CppBox<Iterator>

Calls C++ function: QList<int>::iterator QList<int>::insert(QList<int>::iterator before, const int& t).

Source

pub unsafe fn is_detached(&self) -> bool

Calls C++ function: bool QList<int>::isDetached() const.

Source

pub unsafe fn is_empty(&self) -> bool

Calls C++ function: bool QList<int>::isEmpty() const.

Source

pub unsafe fn is_shared_with( &self, other: impl CastInto<Ref<QListOfInt>>, ) -> bool

Calls C++ function: bool QList<int>::isSharedWith(const QList<int>& other) const.

Source

pub unsafe fn last_mut(&self) -> *mut c_int

Calls C++ function: int& QList<int>::last().

Source

pub unsafe fn last(&self) -> *const c_int

Calls C++ function: const int& QList<int>::last() const.

Source

pub unsafe fn last_index_of_2a(&self, t: *const c_int, from: c_int) -> c_int

Calls C++ function: int QList<int>::lastIndexOf(const int& t, int from = …) const.

Source

pub unsafe fn last_index_of_1a(&self, t: *const c_int) -> c_int

Calls C++ function: int QList<int>::lastIndexOf(const int& t) const.

Source

pub unsafe fn length(&self) -> c_int

Calls C++ function: int QList<int>::length() const.

Source

pub unsafe fn mid_2a(&self, pos: c_int, length: c_int) -> CppBox<QListOfInt>

Calls C++ function: QList<int> QList<int>::mid(int pos, int length = …) const.

Source

pub unsafe fn mid_1a(&self, pos: c_int) -> CppBox<QListOfInt>

Calls C++ function: QList<int> QList<int>::mid(int pos) const.

Source

pub unsafe fn move_(&self, from: c_int, to: c_int)

Calls C++ function: void QList<int>::move(int from, int to).

Source

pub unsafe fn new() -> CppBox<QListOfInt>

Calls C++ function: [constructor] void QList<int>::QList().

Source

pub unsafe fn new_copy(l: impl CastInto<Ref<QListOfInt>>) -> CppBox<QListOfInt>

Calls C++ function: [constructor] void QList<int>::QList(const QList<int>& l).

Source

pub unsafe fn pop_back(&self)

Calls C++ function: void QList<int>::pop_back().

Source

pub unsafe fn pop_front(&self)

Calls C++ function: void QList<int>::pop_front().

Source

pub unsafe fn prepend(&self, t: *const c_int)

Calls C++ function: void QList<int>::prepend(const int& t).

Source

pub unsafe fn push_back(&self, t: *const c_int)

Calls C++ function: void QList<int>::push_back(const int& t).

Source

pub unsafe fn push_front(&self, t: *const c_int)

Calls C++ function: void QList<int>::push_front(const int& t).

Source

pub unsafe fn remove_all(&self, t: *const c_int) -> c_int

Calls C++ function: int QList<int>::removeAll(const int& t).

Source

pub unsafe fn remove_at(&self, i: c_int)

Calls C++ function: void QList<int>::removeAt(int i).

Source

pub unsafe fn remove_first(&self)

Calls C++ function: void QList<int>::removeFirst().

Source

pub unsafe fn remove_last(&self)

Calls C++ function: void QList<int>::removeLast().

Source

pub unsafe fn remove_one(&self, t: *const c_int) -> bool

Calls C++ function: bool QList<int>::removeOne(const int& t).

Source

pub unsafe fn replace(&self, i: c_int, t: *const c_int)

Calls C++ function: void QList<int>::replace(int i, const int& t).

Source

pub unsafe fn reserve(&self, size: c_int)

Calls C++ function: void QList<int>::reserve(int size).

Source

pub unsafe fn set_sharable(&self, sharable: bool)

Calls C++ function: void QList<int>::setSharable(bool sharable).

Source

pub unsafe fn size(&self) -> c_int

Calls C++ function: int QList<int>::size() const.

Source

pub unsafe fn starts_with(&self, t: *const c_int) -> bool

Calls C++ function: bool QList<int>::startsWith(const int& t) const.

Source

pub unsafe fn swap_1a(&self, other: impl CastInto<Ref<QListOfInt>>)

Calls C++ function: void QList<int>::swap(QList<int>& other).

Source

pub unsafe fn swap_2a(&self, i: c_int, j: c_int)

Calls C++ function: void QList<int>::swap(int i, int j).

Source

pub unsafe fn swap_items_at(&self, i: c_int, j: c_int)

Calls C++ function: void QList<int>::swapItemsAt(int i, int j).

Source

pub unsafe fn take_at(&self, i: c_int) -> c_int

Calls C++ function: int QList<int>::takeAt(int i).

Source

pub unsafe fn take_first(&self) -> c_int

Calls C++ function: int QList<int>::takeFirst().

Source

pub unsafe fn take_last(&self) -> c_int

Calls C++ function: int QList<int>::takeLast().

Source

pub unsafe fn to_vector(&self) -> CppBox<QVectorOfInt>

Calls C++ function: QVector<int> QList<int>::toVector() const.

Source

pub unsafe fn value_1a(&self, i: c_int) -> c_int

Calls C++ function: int QList<int>::value(int i) const.

Source

pub unsafe fn value_2a(&self, i: c_int, default_value: *const c_int) -> c_int

Calls C++ function: int QList<int>::value(int i, const int& defaultValue) const.

Trait Implementations§

Source§

impl Add<Ref<QListOfInt>> for &QListOfInt

Source§

fn add(self, l: Ref<QListOfInt>) -> CppBox<QListOfInt>

Calls C++ function: QList<int> QList<int>::operator+(const QList<int>& l) const.

Source§

type Output = CppBox<QListOfInt>

The resulting type after applying the + operator.
Source§

impl Begin for QListOfInt

Source§

unsafe fn begin(&self) -> CppBox<ConstIterator>

Calls C++ function: QList<int>::const_iterator QList<int>::begin() const.

Source§

type Output = CppBox<ConstIterator>

Output type.
Source§

impl BeginMut for QListOfInt

Source§

unsafe fn begin_mut(&self) -> CppBox<Iterator>

Calls C++ function: QList<int>::iterator QList<int>::begin().

Source§

type Output = CppBox<Iterator>

Output type.
Source§

impl CppDeletable for QListOfInt

Source§

unsafe fn delete(&self)

Calls C++ function: [destructor] void QList<int>::~QList().

Source§

impl End for QListOfInt

Source§

unsafe fn end(&self) -> CppBox<ConstIterator>

Calls C++ function: QList<int>::const_iterator QList<int>::end() const.

Source§

type Output = CppBox<ConstIterator>

Output type.
Source§

impl EndMut for QListOfInt

Source§

unsafe fn end_mut(&self) -> CppBox<Iterator>

Calls C++ function: QList<int>::iterator QList<int>::end().

Source§

type Output = CppBox<Iterator>

Output type.
Source§

impl Ge<Ref<QListOfInt>> for QListOfInt

Source§

unsafe fn ge(&self, rhs: &Ref<QListOfInt>) -> bool

Calls C++ function: bool operator>=(const QList<int>& lhs, const QList<int>& rhs).

Source§

impl Gt<Ref<QListOfInt>> for QListOfInt

Source§

unsafe fn gt(&self, rhs: &Ref<QListOfInt>) -> bool

Calls C++ function: bool operator>(const QList<int>& lhs, const QList<int>& rhs).

Source§

impl Le<Ref<QListOfInt>> for QListOfInt

Source§

unsafe fn le(&self, rhs: &Ref<QListOfInt>) -> bool

Calls C++ function: bool operator<=(const QList<int>& lhs, const QList<int>& rhs).

Source§

impl Lt<Ref<QListOfInt>> for QListOfInt

Source§

unsafe fn lt(&self, rhs: &Ref<QListOfInt>) -> bool

Calls C++ function: bool operator<(const QList<int>& lhs, const QList<int>& rhs).

Source§

impl PartialEq<Ref<QListOfInt>> for QListOfInt

Source§

fn eq(&self, l: &Ref<QListOfInt>) -> bool

Calls C++ function: bool QList<int>::operator==(const QList<int>& l) const.

1.0.0 (const: unstable) · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Shl<*const i32> for &QListOfInt

Source§

fn shl(self, t: *const c_int) -> Ref<QListOfInt>

Calls C++ function: QList<int>& QList<int>::operator<<(const int& t).

Source§

type Output = Ref<QListOfInt>

The resulting type after applying the << operator.
Source§

impl Shl<Ref<QListOfInt>> for &QListOfInt

Source§

fn shl(self, l: Ref<QListOfInt>) -> Ref<QListOfInt>

Calls C++ function: QList<int>& QList<int>::operator<<(const QList<int>& l).

Source§

type Output = Ref<QListOfInt>

The resulting type after applying the << operator.
Source§

impl Size for QListOfInt

Source§

unsafe fn size(&self) -> usize

Calls C++ function: int QList<int>::size() const.

Auto Trait Implementations§

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, U> CastInto<U> for T
where U: CastFrom<T>,

Source§

unsafe fn cast_into(self) -> U

Performs the conversion. 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> StaticUpcast<T> for T

Source§

unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>

Convert type of a const pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

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

Source§

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.