Skip to main content

QCborArray

Struct QCborArray 

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

C++ class: QCborArray.

Implementations§

Source§

impl QCborArray

Source

pub unsafe fn add_assign( &self, v: impl CastInto<Ref<QCborValue>>, ) -> Ref<QCborArray>

Calls C++ function: QCborArray& QCborArray::operator+=(const QCborValue& v).

Source

pub unsafe fn append(&self, value: impl CastInto<Ref<QCborValue>>)

Calls C++ function: void QCborArray::append(const QCborValue& value).

Source

pub unsafe fn at(&self, i: c_longlong) -> CppBox<QCborValue>

Calls C++ function: QCborValue QCborArray::at(long long i) const.

Source

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

Calls C++ function: QCborArray::Iterator QCborArray::begin().

Source

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

Calls C++ function: QCborArray::ConstIterator QCborArray::begin() const.

Source

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

Calls C++ function: QCborArray::ConstIterator QCborArray::cbegin() const.

Source

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

Calls C++ function: QCborArray::ConstIterator QCborArray::cend() const.

Source

pub unsafe fn clear(&self)

Calls C++ function: void QCborArray::clear().

Source

pub unsafe fn compare(&self, other: impl CastInto<Ref<QCborArray>>) -> c_int

Calls C++ function: int QCborArray::compare(const QCborArray& other) const.

Source

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

Calls C++ function: QCborArray::ConstIterator QCborArray::constBegin() const.

Source

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

Calls C++ function: QCborArray::ConstIterator QCborArray::constEnd() const.

Source

pub unsafe fn contains(&self, value: impl CastInto<Ref<QCborValue>>) -> bool

Calls C++ function: bool QCborArray::contains(const QCborValue& value) const.

Source

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

Calls C++ function: QCborArray& QCborArray::operator=(const QCborArray& other).

Source

pub unsafe fn empty(&self) -> bool

Calls C++ function: bool QCborArray::empty() const.

Source

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

Calls C++ function: QCborArray::Iterator QCborArray::end().

Source

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

Calls C++ function: QCborArray::ConstIterator QCborArray::end() const.

Source

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

Calls C++ function: QCborArray::Iterator QCborArray::erase(QCborArray::Iterator it).

Source

pub unsafe fn erase_const_iterator( &self, it: impl CastInto<Ref<ConstIterator>>, ) -> CppBox<Iterator>

Calls C++ function: QCborArray::Iterator QCborArray::erase(QCborArray::ConstIterator it).

Source

pub unsafe fn extract_const_iterator( &self, it: impl CastInto<Ref<ConstIterator>>, ) -> CppBox<QCborValue>

Calls C++ function: QCborValue QCborArray::extract(QCborArray::ConstIterator it).

Source

pub unsafe fn extract_iterator( &self, it: impl CastInto<Ref<Iterator>>, ) -> CppBox<QCborValue>

Calls C++ function: QCborValue QCborArray::extract(QCborArray::Iterator it).

Source

pub unsafe fn first(&self) -> CppBox<QCborValue>

Calls C++ function: QCborValue QCborArray::first() const.

Source

pub unsafe fn first_mut(&self) -> CppBox<QCborValueRef>

Calls C++ function: QCborValueRef QCborArray::first().

Source

pub unsafe fn from_json_array( array: impl CastInto<Ref<QJsonArray>>, ) -> CppBox<QCborArray>

Calls C++ function: static QCborArray QCborArray::fromJsonArray(const QJsonArray& array).

Source

pub unsafe fn from_string_list( list: impl CastInto<Ref<QStringList>>, ) -> CppBox<QCborArray>

Calls C++ function: static QCborArray QCborArray::fromStringList(const QStringList& list).

Source

pub unsafe fn from_variant_list( list: impl CastInto<Ref<QListOfQVariant>>, ) -> CppBox<QCborArray>

Calls C++ function: static QCborArray QCborArray::fromVariantList(const QList<QVariant>& list).

Source

pub unsafe fn index(&self, i: c_longlong) -> CppBox<QCborValue>

Calls C++ function: QCborValue QCborArray::operator[](long long i) const.

Source

pub unsafe fn index_mut(&self, i: c_longlong) -> CppBox<QCborValueRef>

Calls C++ function: QCborValueRef QCborArray::operator[](long long i).

Source

pub unsafe fn insert_longlong_q_cbor_value( &self, i: c_longlong, value: impl CastInto<Ref<QCborValue>>, )

Calls C++ function: void QCborArray::insert(long long i, const QCborValue& value).

Source

pub unsafe fn insert_iterator_q_cbor_value( &self, before: impl CastInto<Ref<Iterator>>, value: impl CastInto<Ref<QCborValue>>, ) -> CppBox<Iterator>

Calls C++ function: QCborArray::Iterator QCborArray::insert(QCborArray::Iterator before, const QCborValue& value).

Source

pub unsafe fn insert_const_iterator_q_cbor_value( &self, before: impl CastInto<Ref<ConstIterator>>, value: impl CastInto<Ref<QCborValue>>, ) -> CppBox<Iterator>

Calls C++ function: QCborArray::Iterator QCborArray::insert(QCborArray::ConstIterator before, const QCborValue& value).

Source

pub unsafe fn is_empty(&self) -> bool

Calls C++ function: bool QCborArray::isEmpty() const.

Source

pub unsafe fn last(&self) -> CppBox<QCborValue>

Calls C++ function: QCborValue QCborArray::last() const.

Source

pub unsafe fn last_mut(&self) -> CppBox<QCborValueRef>

Calls C++ function: QCborValueRef QCborArray::last().

Source

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

Calls C++ function: [constructor] void QCborArray::QCborArray().

Source

pub unsafe fn new_copy( other: impl CastInto<Ref<QCborArray>>, ) -> CppBox<QCborArray>

Calls C++ function: [constructor] void QCborArray::QCborArray(const QCborArray& other).

Source

pub unsafe fn pop_back(&self)

Calls C++ function: void QCborArray::pop_back().

Source

pub unsafe fn pop_front(&self)

Calls C++ function: void QCborArray::pop_front().

Source

pub unsafe fn prepend(&self, value: impl CastInto<Ref<QCborValue>>)

Calls C++ function: void QCborArray::prepend(const QCborValue& value).

Source

pub unsafe fn push_back(&self, t: impl CastInto<Ref<QCborValue>>)

Calls C++ function: void QCborArray::push_back(const QCborValue& t).

Source

pub unsafe fn push_front(&self, t: impl CastInto<Ref<QCborValue>>)

Calls C++ function: void QCborArray::push_front(const QCborValue& t).

Source

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

Calls C++ function: void QCborArray::removeAt(long long i).

Source

pub unsafe fn remove_first(&self)

Calls C++ function: void QCborArray::removeFirst().

Source

pub unsafe fn remove_last(&self)

Calls C++ function: void QCborArray::removeLast().

Source

pub unsafe fn size(&self) -> c_longlong

Calls C++ function: long long QCborArray::size() const.

Source

pub unsafe fn swap(&self, other: impl CastInto<Ref<QCborArray>>)

Calls C++ function: void QCborArray::swap(QCborArray& other).

Source

pub unsafe fn take_at(&self, i: c_longlong) -> CppBox<QCborValue>

Calls C++ function: QCborValue QCborArray::takeAt(long long i).

Source

pub unsafe fn take_first(&self) -> CppBox<QCborValue>

Calls C++ function: QCborValue QCborArray::takeFirst().

Source

pub unsafe fn take_last(&self) -> CppBox<QCborValue>

Calls C++ function: QCborValue QCborArray::takeLast().

Source

pub unsafe fn to_cbor_value(&self) -> CppBox<QCborValue>

Calls C++ function: QCborValue QCborArray::toCborValue() const.

Source

pub unsafe fn to_json_array(&self) -> CppBox<QJsonArray>

Calls C++ function: QJsonArray QCborArray::toJsonArray() const.

Source

pub unsafe fn to_variant_list(&self) -> CppBox<QListOfQVariant>

Calls C++ function: QList<QVariant> QCborArray::toVariantList() const.

Trait Implementations§

Source§

impl Add<Ref<QCborValue>> for &QCborArray

Source§

fn add(self, v: Ref<QCborValue>) -> CppBox<QCborArray>

Calls C++ function: QCborArray QCborArray::operator+(const QCborValue& v) const.

Source§

type Output = CppBox<QCborArray>

The resulting type after applying the + operator.
Source§

impl Begin for QCborArray

Source§

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

Calls C++ function: QCborArray::ConstIterator QCborArray::begin() const.

Source§

type Output = CppBox<ConstIterator>

Output type.
Source§

impl BeginMut for QCborArray

Source§

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

Calls C++ function: QCborArray::Iterator QCborArray::begin().

Source§

type Output = CppBox<Iterator>

Output type.
Source§

impl CppDeletable for QCborArray

Source§

unsafe fn delete(&self)

Calls C++ function: [destructor] void QCborArray::~QCborArray().

Source§

impl End for QCborArray

Source§

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

Calls C++ function: QCborArray::ConstIterator QCborArray::end() const.

Source§

type Output = CppBox<ConstIterator>

Output type.
Source§

impl EndMut for QCborArray

Source§

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

Calls C++ function: QCborArray::Iterator QCborArray::end().

Source§

type Output = CppBox<Iterator>

Output type.
Source§

impl Lt<Ref<QCborArray>> for QCborArray

Source§

unsafe fn lt(&self, other: &Ref<QCborArray>) -> bool

Calls C++ function: bool QCborArray::operator<(const QCborArray& other) const.

Source§

impl PartialEq<Ref<QCborArray>> for QCborArray

Source§

fn eq(&self, other: &Ref<QCborArray>) -> bool

Calls C++ function: bool QCborArray::operator==(const QCborArray& other) 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<Ref<QCborValue>> for &QCborArray

Source§

fn shl(self, v: Ref<QCborValue>) -> Ref<QCborArray>

Calls C++ function: QCborArray& QCborArray::operator<<(const QCborValue& v).

Source§

type Output = Ref<QCborArray>

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

impl Size for QCborArray

Source§

unsafe fn size(&self) -> usize

Calls C++ function: long long QCborArray::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.