[][src]Struct qt_core::QCborValueRef

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

C++ class: QCborValueRef.

Methods

impl QCborValueRef[src]

pub unsafe fn compare(&self, other: impl CastInto<Ref<QCborValue>>) -> c_int[src]

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

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

pub unsafe fn copy_from_q_cbor_value(
    &mut self,
    other: impl CastInto<Ref<QCborValue>>
) -> MutRef<QCborValueRef>
[src]

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

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

pub unsafe fn copy_from_q_cbor_value_ref(
    &mut self,
    other: impl CastInto<Ref<QCborValueRef>>
) -> MutRef<QCborValueRef>
[src]

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

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

pub unsafe fn index_q_string(
    &self,
    key: impl CastInto<Ref<QString>>
) -> CppBox<QCborValue>
[src]

If this QCborValueRef refers to a QCborMap, searches elements for the value whose key matches key. If there's no key matching key in the map or if this QCborValueRef object is not a map, returns the undefined value.

Calls C++ function: QCborValue QCborValueRef::operator[](const QString& key) const.

C++ documentation:

If this QCborValueRef refers to a QCborMap, searches elements for the value whose key matches key. If there's no key matching key in the map or if this QCborValueRef object is not a map, returns the undefined value.

This function is equivalent to:

value.toMap().value(key);

See also operator[](qint64), QCborMap::operator[], QCborMap::value(), and QCborMap::find().

This item is available if cpp_lib_version="5.13.0".

pub unsafe fn index_q_latin1_string(
    &self,
    key: impl CastInto<Ref<QLatin1String>>
) -> CppBox<QCborValue>
[src]

This is an overloaded function.

Calls C++ function: QCborValue QCborValueRef::operator[](QLatin1String key) const.

C++ documentation:

This is an overloaded function.

If this QCborValueRef refers to a QCborMap, searches elements for the value whose key matches key. If there's no key matching key in the map or if this QCborValueRef object is not a map, returns the undefined value.

This function is equivalent to:

value.toMap().value(key);

See also operator[](qint64), QCborMap::operator[], QCborMap::value(), and QCborMap::find().

This item is available if cpp_lib_version="5.13.0".

pub unsafe fn index_i64(&self, key: i64) -> CppBox<QCborValue>[src]

This is an overloaded function.

Calls C++ function: QCborValue QCborValueRef::operator[](qint64 key) const.

C++ documentation:

This is an overloaded function.

If this QCborValueRef refers to a QCborMap, searches elements for the value whose key matches key. If this is a QCborArray, returns the element whose index is key. If there's no matching value in the array or map, or if this QCborValueRef object is not an array or map, returns the undefined value.

See also operator[], QCborMap::operator[], QCborMap::value(), QCborMap::find(), QCborArray::operator[], and QCborArray::at().

This item is available if cpp_lib_version="5.13.0".

pub unsafe fn index_i64_mut(&mut self, key: i64) -> CppBox<QCborValueRef>[src]

This is an overloaded function.

Calls C++ function: QCborValueRef QCborValueRef::operator[](qint64 key).

C++ documentation:

This is an overloaded function.

Returns a QCborValueRef that can be used to read or modify the entry in this, as a map or array, with the given key. When this QCborValue is a QCborMap or, for 0 <= key < 0x10000, a QCborArray, this function is equivalent to the matching operator[] on that map or array.

Before returning the reference: if the QCborValue referenced was an array but the key is out of range, the array is first converted to a map (so that map[i] is array[i] for each index, i, with valid array[i]); otherwise, if it was not a map it will be over-written with an empty map.

See also operator[], QCborMap::operator[], QCborMap::value(), QCborMap::find(), QCborArray::operator[], and QCborArray::at().

This item is available if cpp_lib_version="5.13.0".

pub unsafe fn index_q_latin1_string_mut(
    &mut self,
    key: impl CastInto<Ref<QLatin1String>>
) -> CppBox<QCborValueRef>
[src]

This is an overloaded function.

Calls C++ function: QCborValueRef QCborValueRef::operator[](QLatin1String key).

C++ documentation:

This is an overloaded function.

Returns a QCborValueRef that can be used to read or modify the entry in this, as a map, with the given key. When this QCborValue is a QCborMap, this function is equivalent to the matching operator[] on that map.

Before returning the reference: if the QCborValue referenced was an array, it is first converted to a map (so that map[i] is array[i] for each index, i, with valid array[i]); otherwise, if it was not a map it will be over-written with an empty map.

See also operator[](qint64), QCborMap::operator[], QCborMap::value(), and QCborMap::find().

This item is available if cpp_lib_version="5.13.0".

pub unsafe fn index_q_string_mut(
    &mut self,
    key: impl CastInto<Ref<QString>>
) -> CppBox<QCborValueRef>
[src]

Returns a QCborValueRef that can be used to read or modify the entry in this, as a map, with the given key. When this QCborValueRef refers to a QCborMap, this function is equivalent to the matching operator[] on that map.

Calls C++ function: QCborValueRef QCborValueRef::operator[](const QString& key).

C++ documentation:

Returns a QCborValueRef that can be used to read or modify the entry in this, as a map, with the given key. When this QCborValueRef refers to a QCborMap, this function is equivalent to the matching operator[] on that map.

Before returning the reference: if the QCborValue referenced was an array, it is first converted to a map (so that map[i] is array[i] for each index, i, with valid array[i]); otherwise, if it was not a map it will be over-written with an empty map.

See also operator[](qint64), QCborMap::operator[], QCborMap::value(), and QCborMap::find().

This item is available if cpp_lib_version="5.13.0".

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

Calls C++ function: bool QCborValueRef::isArray() const.

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

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

Calls C++ function: bool QCborValueRef::isBool() const.

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

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

Calls C++ function: bool QCborValueRef::isByteArray() const.

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

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

Calls C++ function: bool QCborValueRef::isContainer() const.

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

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

Calls C++ function: bool QCborValueRef::isDateTime() const.

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

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

Calls C++ function: bool QCborValueRef::isDouble() const.

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

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

Calls C++ function: bool QCborValueRef::isFalse() const.

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

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

Calls C++ function: bool QCborValueRef::isInteger() const.

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

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

Calls C++ function: bool QCborValueRef::isInvalid() const.

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

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

Calls C++ function: bool QCborValueRef::isMap() const.

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

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

Calls C++ function: bool QCborValueRef::isNull() const.

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

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

Calls C++ function: bool QCborValueRef::isRegularExpression() const.

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

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

Calls C++ function: bool QCborValueRef::isSimpleType() const.

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

pub unsafe fn is_simple_type_1a(&self, st: QCborSimpleType) -> bool[src]

Calls C++ function: bool QCborValueRef::isSimpleType(QCborSimpleType st) const.

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

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

Calls C++ function: bool QCborValueRef::isString() const.

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

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

Calls C++ function: bool QCborValueRef::isTag() const.

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

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

Calls C++ function: bool QCborValueRef::isTrue() const.

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

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

Calls C++ function: bool QCborValueRef::isUndefined() const.

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

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

Calls C++ function: bool QCborValueRef::isUrl() const.

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

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

Calls C++ function: bool QCborValueRef::isUuid() const.

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

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

Calls C++ function: [constructor] void QCborValueRef::QCborValueRef(const QCborValueRef& arg1).

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

pub unsafe fn tag_1a(&self, default_value: QCborTag) -> QCborTag[src]

Calls C++ function: QCborTag QCborValueRef::tag(QCborTag defaultValue = …) const.

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

pub unsafe fn tag_0a(&self) -> QCborTag[src]

Calls C++ function: QCborTag QCborValueRef::tag() const.

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

pub unsafe fn tagged_value_1a(
    &self,
    default_value: impl CastInto<Ref<QCborValue>>
) -> CppBox<QCborValue>
[src]

Calls C++ function: QCborValue QCborValueRef::taggedValue(const QCborValue& defaultValue = …) const.

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

pub unsafe fn tagged_value_0a(&self) -> CppBox<QCborValue>[src]

Calls C++ function: QCborValue QCborValueRef::taggedValue() const.

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

pub unsafe fn to_array_0a(&self) -> CppBox<QCborArray>[src]

Calls C++ function: QCborArray QCborValueRef::toArray() const.

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

pub unsafe fn to_array_1a(
    &self,
    a: impl CastInto<Ref<QCborArray>>
) -> CppBox<QCborArray>
[src]

Calls C++ function: QCborArray QCborValueRef::toArray(const QCborArray& a) const.

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

pub unsafe fn to_bool_1a(&self, default_value: bool) -> bool[src]

Calls C++ function: bool QCborValueRef::toBool(bool defaultValue = …) const.

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

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

Calls C++ function: bool QCborValueRef::toBool() const.

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

pub unsafe fn to_byte_array_1a(
    &self,
    default_value: impl CastInto<Ref<QByteArray>>
) -> CppBox<QByteArray>
[src]

Calls C++ function: QByteArray QCborValueRef::toByteArray(const QByteArray& defaultValue = …) const.

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

pub unsafe fn to_byte_array_0a(&self) -> CppBox<QByteArray>[src]

Calls C++ function: QByteArray QCborValueRef::toByteArray() const.

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

pub unsafe fn to_cbor_q_flags_encoding_option(
    &mut self,
    opt: QFlags<EncodingOption>
) -> CppBox<QByteArray>
[src]

Calls C++ function: QByteArray QCborValueRef::toCbor(QFlags<QCborValue::EncodingOption> opt = …).

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

pub unsafe fn to_cbor_q_cbor_stream_writer_q_flags_encoding_option(
    &mut self,
    writer: impl CastInto<MutRef<QCborStreamWriter>>,
    opt: QFlags<EncodingOption>
)
[src]

Calls C++ function: void QCborValueRef::toCbor(QCborStreamWriter& writer, QFlags<QCborValue::EncodingOption> opt = …).

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

pub unsafe fn to_cbor(&mut self) -> CppBox<QByteArray>[src]

Calls C++ function: QByteArray QCborValueRef::toCbor().

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

pub unsafe fn to_cbor_q_cbor_stream_writer(
    &mut self,
    writer: impl CastInto<MutRef<QCborStreamWriter>>
)
[src]

Calls C++ function: void QCborValueRef::toCbor(QCborStreamWriter& writer).

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

pub unsafe fn to_date_time_1a(
    &self,
    default_value: impl CastInto<Ref<QDateTime>>
) -> CppBox<QDateTime>
[src]

Calls C++ function: QDateTime QCborValueRef::toDateTime(const QDateTime& defaultValue = …) const.

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

pub unsafe fn to_date_time_0a(&self) -> CppBox<QDateTime>[src]

Calls C++ function: QDateTime QCborValueRef::toDateTime() const.

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

pub unsafe fn to_diagnostic_notation_1a(
    &mut self,
    opt: QFlags<DiagnosticNotationOption>
) -> CppBox<QString>
[src]

Calls C++ function: QString QCborValueRef::toDiagnosticNotation(QFlags<QCborValue::DiagnosticNotationOption> opt = …).

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

pub unsafe fn to_diagnostic_notation_0a(&mut self) -> CppBox<QString>[src]

Calls C++ function: QString QCborValueRef::toDiagnosticNotation().

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

pub unsafe fn to_double_1a(&self, default_value: c_double) -> c_double[src]

Calls C++ function: double QCborValueRef::toDouble(double defaultValue = …) const.

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

pub unsafe fn to_double_0a(&self) -> c_double[src]

Calls C++ function: double QCborValueRef::toDouble() const.

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

pub unsafe fn to_integer_1a(&self, default_value: i64) -> i64[src]

Calls C++ function: qint64 QCborValueRef::toInteger(qint64 defaultValue = …) const.

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

pub unsafe fn to_integer_0a(&self) -> i64[src]

Calls C++ function: qint64 QCborValueRef::toInteger() const.

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

pub unsafe fn to_json_value(&self) -> CppBox<QJsonValue>[src]

Calls C++ function: QJsonValue QCborValueRef::toJsonValue() const.

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

pub unsafe fn to_map_0a(&self) -> CppBox<QCborMap>[src]

Calls C++ function: QCborMap QCborValueRef::toMap() const.

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

pub unsafe fn to_map_1a(
    &self,
    m: impl CastInto<Ref<QCborMap>>
) -> CppBox<QCborMap>
[src]

Calls C++ function: QCborMap QCborValueRef::toMap(const QCborMap& m) const.

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

pub unsafe fn to_q_cbor_value(&self) -> CppBox<QCborValue>[src]

Calls C++ function: QCborValue QCborValueRef::operator QCborValue() const.

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

pub unsafe fn to_regular_expression_1a(
    &self,
    default_value: impl CastInto<Ref<QRegularExpression>>
) -> CppBox<QRegularExpression>
[src]

Calls C++ function: QRegularExpression QCborValueRef::toRegularExpression(const QRegularExpression& defaultValue = …) const.

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

pub unsafe fn to_regular_expression_0a(&self) -> CppBox<QRegularExpression>[src]

Calls C++ function: QRegularExpression QCborValueRef::toRegularExpression() const.

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

pub unsafe fn to_string_1a(
    &self,
    default_value: impl CastInto<Ref<QString>>
) -> CppBox<QString>
[src]

Calls C++ function: QString QCborValueRef::toString(const QString& defaultValue = …) const.

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

pub unsafe fn to_string_0a(&self) -> CppBox<QString>[src]

Calls C++ function: QString QCborValueRef::toString() const.

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

pub unsafe fn to_url_1a(
    &self,
    default_value: impl CastInto<Ref<QUrl>>
) -> CppBox<QUrl>
[src]

Calls C++ function: QUrl QCborValueRef::toUrl(const QUrl& defaultValue = …) const.

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

pub unsafe fn to_url_0a(&self) -> CppBox<QUrl>[src]

Calls C++ function: QUrl QCborValueRef::toUrl() const.

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

pub unsafe fn to_uuid_1a(
    &self,
    default_value: impl CastInto<Ref<QUuid>>
) -> CppBox<QUuid>
[src]

Calls C++ function: QUuid QCborValueRef::toUuid(const QUuid& defaultValue = …) const.

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

pub unsafe fn to_uuid_0a(&self) -> CppBox<QUuid>[src]

Calls C++ function: QUuid QCborValueRef::toUuid() const.

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

pub unsafe fn to_variant(&self) -> CppBox<QVariant>[src]

Calls C++ function: QVariant QCborValueRef::toVariant() const.

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

pub unsafe fn type_(&self) -> Type[src]

Calls C++ function: QCborValue::Type QCborValueRef::type() const.

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

Trait Implementations

impl PartialEq<Ref<QCborValue>> for QCborValueRef[src]

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

Calls C++ function: bool QCborValueRef::operator==(const QCborValue& other) const.

impl Lt<Ref<QCborValue>> for QCborValueRef[src]

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

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

impl CppDeletable for QCborValueRef[src]

unsafe fn delete(&mut self)[src]

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

Auto Trait Implementations

Blanket Implementations

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

impl<T> From<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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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

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

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