[][src]Struct qt_3d_core::QVectorOfQEntity

#[repr(C)]
pub struct QVectorOfQEntity { /* fields omitted */ }

The QVector class is a template class that provides a dynamic array.

C++ class: QVector<Qt3DCore::QEntity*>.

C++ documentation:

The QVector class is a template class that provides a dynamic array.

QVector<T> is one of Qt's generic container classes. It stores its items in adjacent memory locations and provides fast index-based access.

QList<T>, QLinkedList<T>, QVector<T>, and QVarLengthArray<T> provide similar APIs and functionality. They are often interchangeable, but there are performance consequences. Here is an overview of use cases:

  • QVector should be your default first choice. QVector<T> will usually give better performance than QList<T>, because QVector<T> always stores its items sequentially in memory, where QList<T> will allocate its items on the heap unless sizeof(T) <= sizeof(void*) and T has been declared to be either a Q_MOVABLE_TYPE or a Q_PRIMITIVE_TYPE using Q_DECLARE_TYPEINFO. See the Pros and Cons of Using QList for an explanation.
  • However, QList is used throughout the Qt APIs for passing parameters and for returning values. Use QList to interface with those APIs.
  • If you need a real linked list, which guarantees constant time insertions mid-list and uses iterators to items rather than indexes, use QLinkedList.

Note: QVector and QVarLengthArray both guarantee C-compatible array layout. QList does not. This might be important if your application must interface with a C API.

Note: Iterators into a QLinkedList and references into heap-allocating QLists remain valid as long as the referenced items remain in the container. This is not true for iterators and references into a QVector and non-heap-allocating QLists.

Here's an example of a QVector that stores integers and a QVector that stores QString values:

QVector<int> integerVector; QVector<QString> stringVector;

QVector stores its items in a vector (array). Typically, vectors are created with an initial size. For example, the following code constructs a QVector with 200 elements:

QVector<QString> vector(200);

The elements are automatically initialized with a default-constructed value. If you want to initialize the vector with a different value, pass that value as the second argument to the constructor:

QVector<QString> vector(200, "Pass");

You can also call fill() at any time to fill the vector with a value.

QVector uses 0-based indexes, just like C++ arrays. To access the item at a particular index position, you can use operator[](). On non-const vectors, operator[]() returns a reference to the item that can be used on the left side of an assignment:

if (vector[0] == "Liz") vector[0] = "Elizabeth";

For read-only access, an alternative syntax is to use at():

for (int i = 0; i < vector.size(); ++i) { if (vector.at(i) == "Alfonso") cout << "Found Alfonso at position " << i << endl; }

at() can be faster than operator[](), because it never causes a deep copy to occur.

Another way to access the data stored in a QVector is to call data(). The function returns a pointer to the first item in the vector. You can use the pointer to directly access and modify the elements stored in the vector. The pointer is also useful if you need to pass a QVector to a function that accepts a plain C++ array.

If you want to find all occurrences of a particular value in a vector, use indexOf() or lastIndexOf(). The former searches forward starting from a given index position, the latter searches backward. Both return the index of the matching item if they found one; otherwise, they return -1. For example:

int i = vector.indexOf("Harumi"); if (i != -1) cout << "First occurrence of Harumi is at position " << i << endl;

If you simply want to check whether a vector contains a particular value, use contains(). If you want to find out how many times a particular value occurs in the vector, use count().

QVector provides these basic functions to add, move, and remove items: insert(), replace(), remove(), prepend(), append(). With the exception of append() and replace(), these functions can be slow (linear time) for large vectors, because they require moving many items in the vector by one position in memory. If you want a container class that provides fast insertion/removal in the middle, use QList or QLinkedList instead.

Unlike plain C++ arrays, QVectors can be resized at any time by calling resize(). If the new size is larger than the old size, QVector might need to reallocate the whole vector. QVector tries to reduce the number of reallocations by preallocating up to twice as much memory as the actual data needs.

If you know in advance approximately how many items the QVector will contain, you can call reserve(), asking QVector to preallocate a certain amount of memory. You can also call capacity() to find out how much memory QVector actually allocated.

Note that using non-const operators and functions can cause QVector to do a deep copy of the data. This is due to implicit sharing.

QVector's value type must be an assignable data type. This covers most data types that are commonly used, but the compiler won't let you, for example, store a QWidget as a value; instead, store a QWidget *. A few functions have additional requirements; for example, indexOf() and lastIndexOf() expect the value type to support operator==(). These requirements are documented on a per-function basis.

Like the other container classes, QVector provides Java-style iterators (QVectorIterator and QMutableVectorIterator) and STL-style iterators (QVector::const_iterator and QVector::iterator). In practice, these are rarely used, because you can use indexes into the QVector.

In addition to QVector, Qt also provides QVarLengthArray, a very low-level class with little functionality that is optimized for speed.

QVector does not support inserting, prepending, appending or replacing with references to its own values. Doing so will cause your application to abort with an error message.

More Information on Using Qt Containers

For a detailed discussion comparing Qt containers with each other and with STL containers, see Understand the Qt Containers.

Methods

impl QVectorOfQEntity[src]

pub unsafe fn append(&mut self, l: impl CastInto<Ref<QVectorOfQEntity>>)[src]

This is an overloaded function.

Calls C++ function: void QVector<Qt3DCore::QEntity*>::append(const QVector<Qt3DCore::QEntity*>& l).

C++ documentation:

This is an overloaded function.

Appends the items of the value vector to this vector.

This function was introduced in Qt 5.5.

See also operator<<() and operator+=().

pub unsafe fn back(&mut self) -> MutRef<*mut QEntity>[src]

This function is provided for STL compatibility. It is equivalent to last().

Calls C++ function: Qt3DCore::QEntity*& QVector<Qt3DCore::QEntity*>::back().

C++ documentation:

This function is provided for STL compatibility. It is equivalent to last().

pub unsafe fn capacity(&self) -> c_int[src]

Returns the maximum number of items that can be stored in the vector without forcing a reallocation.

Calls C++ function: int QVector<Qt3DCore::QEntity*>::capacity() const.

C++ documentation:

Returns the maximum number of items that can be stored in the vector without forcing a reallocation.

The sole purpose of this function is to provide a means of fine tuning QVector's memory usage. In general, you will rarely ever need to call this function. If you want to know how many items are in the vector, call size().

See also reserve() and squeeze().

pub unsafe fn clear(&mut self)[src]

Removes all the elements from the vector.

Calls C++ function: void QVector<Qt3DCore::QEntity*>::clear().

C++ documentation:

Removes all the elements from the vector.

Note: Until Qt 5.6, this also released the memory used by the vector. From Qt 5.7, the capacity is preserved. To shed all capacity, swap with a default-constructed vector:

QVector<T> v ...; QVector<T>().swap(v); Q_ASSERT(v.capacity() == 0);

or call squeeze().

See also squeeze().

pub unsafe fn copy_from(
    &mut self,
    v: impl CastInto<Ref<QVectorOfQEntity>>
) -> MutRef<QVectorOfQEntity>
[src]

Assigns other to this vector and returns a reference to this vector.

Calls C++ function: QVector<Qt3DCore::QEntity*>& QVector<Qt3DCore::QEntity*>::operator=(const QVector<Qt3DCore::QEntity*>& v).

C++ documentation:

Assigns other to this vector and returns a reference to this vector.

pub unsafe fn count(&self) -> c_int[src]

This is an overloaded function.

Calls C++ function: int QVector<Qt3DCore::QEntity*>::count() const.

C++ documentation:

This is an overloaded function.

Same as size().

pub unsafe fn data(&mut self) -> MutPtr<*mut QEntity>[src]

Returns a pointer to the data stored in the vector. The pointer can be used to access and modify the items in the vector.

Calls C++ function: Qt3DCore::QEntity** QVector<Qt3DCore::QEntity*>::data().

C++ documentation:

Returns a pointer to the data stored in the vector. The pointer can be used to access and modify the items in the vector.

Example:

QVector<int> vector(10); int data = vector.data(); for (int i = 0; i < 10; ++i) data[i] = 2 i;

The pointer remains valid as long as the vector isn't reallocated.

This function is mostly useful to pass a vector to a function that accepts a plain C++ array.

See also constData() and operator[]().

pub unsafe fn detach(&mut self)[src]

Calls C++ function: void QVector<Qt3DCore::QEntity*>::detach().

pub unsafe fn empty(&self) -> bool[src]

This function is provided for STL compatibility. It is equivalent to isEmpty(), returning true if the vector is empty; otherwise returns false.

Calls C++ function: bool QVector<Qt3DCore::QEntity*>::empty() const.

C++ documentation:

This function is provided for STL compatibility. It is equivalent to isEmpty(), returning true if the vector is empty; otherwise returns false.

pub unsafe fn first(&mut self) -> MutRef<*mut QEntity>[src]

Returns a reference to the first item in the vector. This function assumes that the vector isn't empty.

Calls C++ function: Qt3DCore::QEntity*& QVector<Qt3DCore::QEntity*>::first().

C++ documentation:

Returns a reference to the first item in the vector. This function assumes that the vector isn't empty.

See also last(), isEmpty(), and constFirst().

pub unsafe fn front(&mut self) -> MutRef<*mut QEntity>[src]

This function is provided for STL compatibility. It is equivalent to first().

Calls C++ function: Qt3DCore::QEntity*& QVector<Qt3DCore::QEntity*>::front().

C++ documentation:

This function is provided for STL compatibility. It is equivalent to first().

pub unsafe fn index(&mut self, i: c_int) -> MutRef<*mut QEntity>[src]

Returns the item at index position i as a modifiable reference.

Calls C++ function: Qt3DCore::QEntity*& QVector<Qt3DCore::QEntity*>::operator[](int i).

C++ documentation:

Returns the item at index position i as a modifiable reference.

i must be a valid index position in the vector (i.e., 0 <= i < size()).

Note that using non-const operators can cause QVector to do a deep copy.

See also at() and value().

pub unsafe fn is_detached(&self) -> bool[src]

Calls C++ function: bool QVector<Qt3DCore::QEntity*>::isDetached() const.

pub unsafe fn is_empty(&self) -> bool[src]

Returns true if the vector has size 0; otherwise returns false.

Calls C++ function: bool QVector<Qt3DCore::QEntity*>::isEmpty() const.

C++ documentation:

Returns true if the vector has size 0; otherwise returns false.

See also size() and resize().

pub unsafe fn is_shared_with(
    &self,
    other: impl CastInto<Ref<QVectorOfQEntity>>
) -> bool
[src]

Calls C++ function: bool QVector<Qt3DCore::QEntity*>::isSharedWith(const QVector<Qt3DCore::QEntity*>& other) const.

pub unsafe fn last(&mut self) -> MutRef<*mut QEntity>[src]

Returns a reference to the last item in the vector. This function assumes that the vector isn't empty.

Calls C++ function: Qt3DCore::QEntity*& QVector<Qt3DCore::QEntity*>::last().

C++ documentation:

Returns a reference to the last item in the vector. This function assumes that the vector isn't empty.

See also first(), isEmpty(), and constLast().

pub unsafe fn length(&self) -> c_int[src]

Same as size() and count().

Calls C++ function: int QVector<Qt3DCore::QEntity*>::length() const.

C++ documentation:

Same as size() and count().

Provided for compatibility with QList.

This function was introduced in Qt 5.2.

See also size(), count(), and QList::length().

pub unsafe fn mid_2a(&self, pos: c_int, len: c_int) -> CppBox<QVectorOfQEntity>[src]

Returns a sub-vector which contains elements from this vector, starting at position pos. If length is -1 (the default), all elements after pos are included; otherwise length elements (or all remaining elements if there are less than length elements) are included.

Calls C++ function: QVector<Qt3DCore::QEntity*> QVector<Qt3DCore::QEntity*>::mid(int pos, int len = …) const.

C++ documentation:

Returns a sub-vector which contains elements from this vector, starting at position pos. If length is -1 (the default), all elements after pos are included; otherwise length elements (or all remaining elements if there are less than length elements) are included.

pub unsafe fn mid_1a(&self, pos: c_int) -> CppBox<QVectorOfQEntity>[src]

Returns a sub-vector which contains elements from this vector, starting at position pos. If length is -1 (the default), all elements after pos are included; otherwise length elements (or all remaining elements if there are less than length elements) are included.

Calls C++ function: QVector<Qt3DCore::QEntity*> QVector<Qt3DCore::QEntity*>::mid(int pos) const.

C++ documentation:

Returns a sub-vector which contains elements from this vector, starting at position pos. If length is -1 (the default), all elements after pos are included; otherwise length elements (or all remaining elements if there are less than length elements) are included.

pub unsafe fn move_(&mut self, from: c_int, to: c_int)[src]

Moves the item at index position from to index position to.

Calls C++ function: void QVector<Qt3DCore::QEntity*>::move(int from, int to).

C++ documentation:

Moves the item at index position from to index position to.

Provided for compatibility with QList.

This function was introduced in Qt 5.6.

See also QList::move().

pub unsafe fn new_0a() -> CppBox<QVectorOfQEntity>[src]

Constructs an empty vector.

Calls C++ function: [constructor] void QVector<Qt3DCore::QEntity*>::QVector().

C++ documentation:

Constructs an empty vector.

See also resize().

pub unsafe fn new_1a(size: c_int) -> CppBox<QVectorOfQEntity>[src]

Constructs a vector with an initial size of size elements.

Calls C++ function: [constructor] void QVector<Qt3DCore::QEntity*>::QVector(int size).

C++ documentation:

Constructs a vector with an initial size of size elements.

The elements are initialized with a default-constructed value.

See also resize().

pub unsafe fn new_copy(
    v: impl CastInto<Ref<QVectorOfQEntity>>
) -> CppBox<QVectorOfQEntity>
[src]

Constructs a copy of other.

Calls C++ function: [constructor] void QVector<Qt3DCore::QEntity*>::QVector(const QVector<Qt3DCore::QEntity*>& v).

C++ documentation:

Constructs a copy of other.

This operation takes constant time, because QVector is implicitly shared. This makes returning a QVector from a function very fast. If a shared instance is modified, it will be copied (copy-on-write), and that takes linear time.

See also operator=().

pub unsafe fn pop_back(&mut self)[src]

This function is provided for STL compatibility. It is equivalent to removeLast().

Calls C++ function: void QVector<Qt3DCore::QEntity*>::pop_back().

C++ documentation:

This function is provided for STL compatibility. It is equivalent to removeLast().

pub unsafe fn pop_front(&mut self)[src]

This function is provided for STL compatibility. It is equivalent to removeFirst().

Calls C++ function: void QVector<Qt3DCore::QEntity*>::pop_front().

C++ documentation:

This function is provided for STL compatibility. It is equivalent to removeFirst().

pub unsafe fn remove_1a(&mut self, i: c_int)[src]

This is an overloaded function.

Calls C++ function: void QVector<Qt3DCore::QEntity*>::remove(int i).

C++ documentation:

This is an overloaded function.

Removes the element at index position i.

See also insert(), replace(), and fill().

pub unsafe fn remove_2a(&mut self, i: c_int, n: c_int)[src]

This is an overloaded function.

Calls C++ function: void QVector<Qt3DCore::QEntity*>::remove(int i, int n).

C++ documentation:

This is an overloaded function.

Removes count elements from the middle of the vector, starting at index position i.

See also insert(), replace(), and fill().

pub unsafe fn remove_at(&mut self, i: c_int)[src]

Removes the element at index position i. Equivalent to

Calls C++ function: void QVector<Qt3DCore::QEntity*>::removeAt(int i).

C++ documentation:

Removes the element at index position i. Equivalent to


  remove(i);

Provided for compatibility with QList.

This function was introduced in Qt 5.2.

See also remove() and QList::removeAt().

pub unsafe fn remove_first(&mut self)[src]

Removes the first item in the vector. Calling this function is equivalent to calling remove(0). The vector must not be empty. If the vector can be empty, call isEmpty() before calling this function.

Calls C++ function: void QVector<Qt3DCore::QEntity*>::removeFirst().

C++ documentation:

Removes the first item in the vector. Calling this function is equivalent to calling remove(0). The vector must not be empty. If the vector can be empty, call isEmpty() before calling this function.

This function was introduced in Qt 5.1.

See also remove(), takeFirst(), and isEmpty().

pub unsafe fn remove_last(&mut self)[src]

Removes the last item in the vector. Calling this function is equivalent to calling remove(size() - 1). The vector must not be empty. If the vector can be empty, call isEmpty() before calling this function.

Calls C++ function: void QVector<Qt3DCore::QEntity*>::removeLast().

C++ documentation:

Removes the last item in the vector. Calling this function is equivalent to calling remove(size() - 1). The vector must not be empty. If the vector can be empty, call isEmpty() before calling this function.

This function was introduced in Qt 5.1.

See also remove(), takeLast(), removeFirst(), and isEmpty().

pub unsafe fn reserve(&mut self, size: c_int)[src]

Attempts to allocate memory for at least size elements. If you know in advance how large the vector will be, you should call this function to prevent reallocations and memory fragmentation.

Calls C++ function: void QVector<Qt3DCore::QEntity*>::reserve(int size).

C++ documentation:

Attempts to allocate memory for at least size elements. If you know in advance how large the vector will be, you should call this function to prevent reallocations and memory fragmentation.

If size is an underestimate, the worst that will happen is that the QVector will be a bit slower. If size is an overestimate, you may have used more memory than the normal QVector growth strategy would have allocated—or you may have used less.

An alternative to reserve() is calling resize(). Whether or not that is faster than reserve() depends on the element type, because resize() default-constructs all elements, and requires assignment to existing entries rather than calling append(), which copy- or move-constructs. For simple types, like int or double, resize() is typically faster, but for anything more complex, you should prefer reserve().

Warning: If the size passed to resize() was underestimated, you run out of allocated space and into undefined behavior. This problem does not exist with reserve(), because it treats the size as just a hint.

See also squeeze() and capacity().

pub unsafe fn resize(&mut self, size: c_int)[src]

Sets the size of the vector to size. If size is greater than the current size, elements are added to the end; the new elements are initialized with a default-constructed value. If size is less than the current size, elements are removed from the end.

Calls C++ function: void QVector<Qt3DCore::QEntity*>::resize(int size).

C++ documentation:

Sets the size of the vector to size. If size is greater than the current size, elements are added to the end; the new elements are initialized with a default-constructed value. If size is less than the current size, elements are removed from the end.

Since Qt 5.6, resize() doesn't shrink the capacity anymore. To shed excess capacity, use squeeze().

See also size().

pub unsafe fn set_sharable(&mut self, sharable: bool)[src]

Calls C++ function: void QVector<Qt3DCore::QEntity*>::setSharable(bool sharable).

pub unsafe fn shrink_to_fit(&mut self)[src]

This function is provided for STL compatibility. It is equivalent to squeeze().

Calls C++ function: void QVector<Qt3DCore::QEntity*>::shrink_to_fit().

C++ documentation:

This function is provided for STL compatibility. It is equivalent to squeeze().

This function was introduced in Qt 5.10.

This item is available if any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0").

pub unsafe fn size(&self) -> c_int[src]

Returns the number of items in the vector.

Calls C++ function: int QVector<Qt3DCore::QEntity*>::size() const.

C++ documentation:

Returns the number of items in the vector.

See also isEmpty() and resize().

pub unsafe fn squeeze(&mut self)[src]

Releases any memory not required to store the items.

Calls C++ function: void QVector<Qt3DCore::QEntity*>::squeeze().

C++ documentation:

Releases any memory not required to store the items.

The sole purpose of this function is to provide a means of fine tuning QVector's memory usage. In general, you will rarely ever need to call this function.

See also reserve() and capacity().

pub unsafe fn swap(&mut self, other: impl CastInto<MutRef<QVectorOfQEntity>>)[src]

Swaps vector other with this vector. This operation is very fast and never fails.

Calls C++ function: void QVector<Qt3DCore::QEntity*>::swap(QVector<Qt3DCore::QEntity*>& other).

C++ documentation:

Swaps vector other with this vector. This operation is very fast and never fails.

This function was introduced in Qt 4.8.

pub unsafe fn take_at(&mut self, i: c_int) -> MutPtr<QEntity>[src]

Removes the element at index position i and returns it.

Calls C++ function: Qt3DCore::QEntity* QVector<Qt3DCore::QEntity*>::takeAt(int i).

C++ documentation:

Removes the element at index position i and returns it.

Equivalent to

T t = at(i); remove(i); return t;

Provided for compatibility with QList.

This function was introduced in Qt 5.2.

See also takeFirst(), takeLast(), and QList::takeAt().

pub unsafe fn take_first(&mut self) -> MutPtr<QEntity>[src]

Removes the first item in the vector and returns it. This function assumes the vector is not empty. To avoid failure, call isEmpty() before calling this function.

Calls C++ function: Qt3DCore::QEntity* QVector<Qt3DCore::QEntity*>::takeFirst().

C++ documentation:

Removes the first item in the vector and returns it. This function assumes the vector is not empty. To avoid failure, call isEmpty() before calling this function.

This function was introduced in Qt 5.1.

See also takeLast() and removeFirst().

pub unsafe fn take_last(&mut self) -> MutPtr<QEntity>[src]

Removes the last item in the list and returns it. This function assumes the vector is not empty. To avoid failure, call isEmpty() before calling this function.

Calls C++ function: Qt3DCore::QEntity* QVector<Qt3DCore::QEntity*>::takeLast().

C++ documentation:

Removes the last item in the list and returns it. This function assumes the vector is not empty. To avoid failure, call isEmpty() before calling this function.

If you don't use the return value, removeLast() is more efficient.

This function was introduced in Qt 5.1.

See also takeFirst() and removeLast().

pub unsafe fn value(&self, i: c_int) -> MutPtr<QEntity>[src]

Returns the value at index position i in the vector.

Calls C++ function: Qt3DCore::QEntity* QVector<Qt3DCore::QEntity*>::value(int i) const.

C++ documentation:

Returns the value at index position i in the vector.

If the index i is out of bounds, the function returns a default-constructed value. If you are certain that i is within bounds, you can use at() instead, which is slightly faster.

See also at() and operator[]().

Trait Implementations

impl<'_> Add<Ref<QVectorOfQEntity>> for &'_ QVectorOfQEntity[src]

type Output = CppBox<QVectorOfQEntity>

The resulting type after applying the + operator.

fn add(self, l: Ref<QVectorOfQEntity>) -> CppBox<QVectorOfQEntity>[src]

Returns a vector that contains all the items in this vector followed by all the items in the other vector.

Calls C++ function: QVector<Qt3DCore::QEntity*> QVector<Qt3DCore::QEntity*>::operator+(const QVector<Qt3DCore::QEntity*>& l) const.

C++ documentation:

Returns a vector that contains all the items in this vector followed by all the items in the other vector.

See also operator+=().

impl AddAssign<Ref<QVectorOfQEntity>> for QVectorOfQEntity[src]

fn add_assign(&mut self, l: Ref<QVectorOfQEntity>)[src]

Appends the items of the other vector to this vector and returns a reference to this vector.

Calls C++ function: QVector<Qt3DCore::QEntity*>& QVector<Qt3DCore::QEntity*>::operator+=(const QVector<Qt3DCore::QEntity*>& l).

C++ documentation:

Appends the items of the other vector to this vector and returns a reference to this vector.

See also operator+() and append().

impl CppDeletable for QVectorOfQEntity[src]

unsafe fn delete(&mut self)[src]

Destroys the vector.

Calls C++ function: [destructor] void QVector<Qt3DCore::QEntity*>::~QVector().

C++ documentation:

Destroys the vector.

impl DataMut for QVectorOfQEntity[src]

type Output = MutPtr<*mut QEntity>

unsafe fn data_mut(&mut self) -> MutPtr<*mut QEntity>[src]

Returns a pointer to the data stored in the vector. The pointer can be used to access and modify the items in the vector.

Calls C++ function: Qt3DCore::QEntity** QVector<Qt3DCore::QEntity*>::data().

C++ documentation:

Returns a pointer to the data stored in the vector. The pointer can be used to access and modify the items in the vector.

Example:

QVector<int> vector(10); int data = vector.data(); for (int i = 0; i < 10; ++i) data[i] = 2 i;

The pointer remains valid as long as the vector isn't reallocated.

This function is mostly useful to pass a vector to a function that accepts a plain C++ array.

See also constData() and operator[]().

impl Ge<Ref<QVectorOfQEntity>> for QVectorOfQEntity[src]

unsafe fn ge(&self, rhs: &Ref<QVectorOfQEntity>) -> bool[src]

Returns true if the numeric Unicode value of c1 is greater than or equal to that of c2; otherwise returns false.

Calls C++ function: bool operator>=(const QVector<Qt3DCore::QEntity*>& lhs, const QVector<Qt3DCore::QEntity*>& rhs).

Warning: no exact match found in C++ documentation. Below is the C++ documentation for bool operator>=(QChar c1, QChar c2):

Returns true if the numeric Unicode value of c1 is greater than or equal to that of c2; otherwise returns false.

impl Gt<Ref<QVectorOfQEntity>> for QVectorOfQEntity[src]

unsafe fn gt(&self, rhs: &Ref<QVectorOfQEntity>) -> bool[src]

Calls C++ function: bool operator>(const QVector<Qt3DCore::QEntity*>& lhs, const QVector<Qt3DCore::QEntity*>& rhs).

impl Le<Ref<QVectorOfQEntity>> for QVectorOfQEntity[src]

unsafe fn le(&self, rhs: &Ref<QVectorOfQEntity>) -> bool[src]

Returns true if the numeric Unicode value of c1 is less than or equal to that of c2; otherwise returns false.

Calls C++ function: bool operator<=(const QVector<Qt3DCore::QEntity*>& lhs, const QVector<Qt3DCore::QEntity*>& rhs).

Warning: no exact match found in C++ documentation. Below is the C++ documentation for bool operator<=(QChar c1, QChar c2):

Returns true if the numeric Unicode value of c1 is less than or equal to that of c2; otherwise returns false.

impl Lt<Ref<QVectorOfQEntity>> for QVectorOfQEntity[src]

unsafe fn lt(&self, rhs: &Ref<QVectorOfQEntity>) -> bool[src]

Calls C++ function: bool operator<(const QVector<Qt3DCore::QEntity*>& lhs, const QVector<Qt3DCore::QEntity*>& rhs).

impl PartialEq<Ref<QVectorOfQEntity>> for QVectorOfQEntity[src]

fn eq(&self, v: &Ref<QVectorOfQEntity>) -> bool[src]

Returns true if other is equal to this vector; otherwise returns false.

Calls C++ function: bool QVector<Qt3DCore::QEntity*>::operator==(const QVector<Qt3DCore::QEntity*>& v) const.

C++ documentation:

Returns true if other is equal to this vector; otherwise returns false.

Two vectors are considered equal if they contain the same values in the same order.

This function requires the value type to have an implementation of operator==().

See also operator!=().

impl<'_> Shl<Ref<QVectorOfQEntity>> for &'_ QVectorOfQEntity[src]

type Output = MutRef<QVectorOfQEntity>

The resulting type after applying the << operator.

fn shl(self, l: Ref<QVectorOfQEntity>) -> MutRef<QVectorOfQEntity>[src]

Appends other to the vector and returns a reference to the vector.

Calls C++ function: QVector<Qt3DCore::QEntity*>& QVector<Qt3DCore::QEntity*>::operator<<(const QVector<Qt3DCore::QEntity*>& l).

C++ documentation:

Appends other to the vector and returns a reference to the vector.

impl Size for QVectorOfQEntity[src]

unsafe fn size(&self) -> usize[src]

Returns the number of items in the vector.

Calls C++ function: int QVector<Qt3DCore::QEntity*>::size() const.

C++ documentation:

Returns the number of items in the vector.

See also isEmpty() and resize().

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VectorAsMutSlice for V where
    V: DataMut<Output = MutPtr<T>> + Size
[src]

type Item = T