Skip to main content

QCborValue

Struct QCborValue 

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

C++ class: QCborValue.

Implementations§

Source§

impl QCborValue

Source

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

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

Source

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

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

Source

pub unsafe fn from_cbor_q_cbor_stream_reader( reader: impl CastInto<Ref<QCborStreamReader>>, ) -> CppBox<QCborValue>

Calls C++ function: static QCborValue QCborValue::fromCbor(QCborStreamReader& reader).

Source

pub unsafe fn from_cbor_q_byte_array_q_cbor_parser_error( ba: impl CastInto<Ref<QByteArray>>, error: impl CastInto<Ptr<QCborParserError>>, ) -> CppBox<QCborValue>

Calls C++ function: static QCborValue QCborValue::fromCbor(const QByteArray& ba, QCborParserError* error = …).

Source

pub unsafe fn from_cbor_char_longlong_q_cbor_parser_error( data: *const c_char, len: c_longlong, error: impl CastInto<Ptr<QCborParserError>>, ) -> CppBox<QCborValue>

Calls C++ function: static QCborValue QCborValue::fromCbor(const char* data, long long len, QCborParserError* error = …).

Source

pub unsafe fn from_cbor_uchar_longlong_q_cbor_parser_error( data: *const c_uchar, len: c_longlong, error: impl CastInto<Ptr<QCborParserError>>, ) -> CppBox<QCborValue>

Calls C++ function: static QCborValue QCborValue::fromCbor(const unsigned char* data, long long len, QCborParserError* error = …).

Source

pub unsafe fn from_cbor_q_byte_array( ba: impl CastInto<Ref<QByteArray>>, ) -> CppBox<QCborValue>

Calls C++ function: static QCborValue QCborValue::fromCbor(const QByteArray& ba).

Source

pub unsafe fn from_cbor_char_longlong( data: *const c_char, len: c_longlong, ) -> CppBox<QCborValue>

Calls C++ function: static QCborValue QCborValue::fromCbor(const char* data, long long len).

Source

pub unsafe fn from_cbor_uchar_longlong( data: *const c_uchar, len: c_longlong, ) -> CppBox<QCborValue>

Calls C++ function: static QCborValue QCborValue::fromCbor(const unsigned char* data, long long len).

Source

pub unsafe fn from_json_value( v: impl CastInto<Ref<QJsonValue>>, ) -> CppBox<QCborValue>

Calls C++ function: static QCborValue QCborValue::fromJsonValue(const QJsonValue& v).

Source

pub unsafe fn from_variant( variant: impl CastInto<Ref<QVariant>>, ) -> CppBox<QCborValue>

Calls C++ function: static QCborValue QCborValue::fromVariant(const QVariant& variant).

Source

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

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

Source

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

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

Source

pub unsafe fn index_longlong(&self, key: c_longlong) -> CppBox<QCborValue>

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

Source

pub unsafe fn index_longlong_mut( &self, key: c_longlong, ) -> CppBox<QCborValueRef>

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

Source

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

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

Source

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

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

Source

pub unsafe fn is_array(&self) -> bool

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

Source

pub unsafe fn is_bool(&self) -> bool

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

Source

pub unsafe fn is_byte_array(&self) -> bool

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

Source

pub unsafe fn is_container(&self) -> bool

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

Source

pub unsafe fn is_date_time(&self) -> bool

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

Source

pub unsafe fn is_double(&self) -> bool

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

Source

pub unsafe fn is_false(&self) -> bool

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

Source

pub unsafe fn is_integer(&self) -> bool

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

Source

pub unsafe fn is_invalid(&self) -> bool

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

Source

pub unsafe fn is_map(&self) -> bool

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

Source

pub unsafe fn is_null(&self) -> bool

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

Source

pub unsafe fn is_regular_expression(&self) -> bool

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

Source

pub unsafe fn is_simple_type_0a(&self) -> bool

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

Source

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

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

Source

pub unsafe fn is_string(&self) -> bool

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

Source

pub unsafe fn is_tag(&self) -> bool

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

Source

pub unsafe fn is_true(&self) -> bool

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

Source

pub unsafe fn is_undefined(&self) -> bool

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

Source

pub unsafe fn is_url(&self) -> bool

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

Source

pub unsafe fn is_uuid(&self) -> bool

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

Source

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

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

Source

pub unsafe fn from_type(t: Type) -> CppBox<QCborValue>

Calls C++ function: [constructor] void QCborValue::QCborValue(QCborValue::Type t_).

Source

pub unsafe fn from_bool(b: bool) -> CppBox<QCborValue>

Calls C++ function: [constructor] void QCborValue::QCborValue(bool b_).

Source

pub unsafe fn from_int(i: c_int) -> CppBox<QCborValue>

Calls C++ function: [constructor] void QCborValue::QCborValue(int i).

Source

pub unsafe fn from_uint(u: c_uint) -> CppBox<QCborValue>

Calls C++ function: [constructor] void QCborValue::QCborValue(unsigned int u).

Source

pub unsafe fn from_longlong(i: c_longlong) -> CppBox<QCborValue>

Calls C++ function: [constructor] void QCborValue::QCborValue(long long i).

Source

pub unsafe fn from_double(v: c_double) -> CppBox<QCborValue>

Calls C++ function: [constructor] void QCborValue::QCborValue(double v).

Source

pub unsafe fn from_q_cbor_simple_type(st: QCborSimpleType) -> CppBox<QCborValue>

Calls C++ function: [constructor] void QCborValue::QCborValue(QCborSimpleType st).

Source

pub unsafe fn from_q_byte_array( ba: impl CastInto<Ref<QByteArray>>, ) -> CppBox<QCborValue>

Calls C++ function: [constructor] void QCborValue::QCborValue(const QByteArray& ba).

Source

pub unsafe fn from_q_string( s: impl CastInto<Ref<QString>>, ) -> CppBox<QCborValue>

Calls C++ function: [constructor] void QCborValue::QCborValue(const QString& s).

Source

pub unsafe fn from_q_string_view( s: impl CastInto<Ref<QStringView>>, ) -> CppBox<QCborValue>

Calls C++ function: [constructor] void QCborValue::QCborValue(QStringView s).

Source

pub unsafe fn from_q_latin1_string( s: impl CastInto<Ref<QLatin1String>>, ) -> CppBox<QCborValue>

Calls C++ function: [constructor] void QCborValue::QCborValue(QLatin1String s).

Source

pub unsafe fn from_char(s: *const c_char) -> CppBox<QCborValue>

Calls C++ function: [constructor] void QCborValue::QCborValue(const char* s).

Source

pub unsafe fn from_q_cbor_array( a: impl CastInto<Ref<QCborArray>>, ) -> CppBox<QCborValue>

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

Source

pub unsafe fn from_q_cbor_map( m: impl CastInto<Ref<QCborMap>>, ) -> CppBox<QCborValue>

Calls C++ function: [constructor] void QCborValue::QCborValue(const QCborMap& m).

Source

pub unsafe fn from_q_cbor_tag_q_cbor_value( tag: QCborTag, tagged_value: impl CastInto<Ref<QCborValue>>, ) -> CppBox<QCborValue>

Calls C++ function: [constructor] void QCborValue::QCborValue(QCborTag tag, const QCborValue& taggedValue = …).

Source

pub unsafe fn from_q_cbor_known_tags_q_cbor_value( t: QCborKnownTags, tv: impl CastInto<Ref<QCborValue>>, ) -> CppBox<QCborValue>

Calls C++ function: [constructor] void QCborValue::QCborValue(QCborKnownTags t_, const QCborValue& tv = …).

Source

pub unsafe fn from_q_date_time( dt: impl CastInto<Ref<QDateTime>>, ) -> CppBox<QCborValue>

Calls C++ function: [constructor] void QCborValue::QCborValue(const QDateTime& dt).

Source

pub unsafe fn from_q_url(url: impl CastInto<Ref<QUrl>>) -> CppBox<QCborValue>

Calls C++ function: [constructor] void QCborValue::QCborValue(const QUrl& url).

Source

pub unsafe fn from_q_regular_expression( rx: impl CastInto<Ref<QRegularExpression>>, ) -> CppBox<QCborValue>

Calls C++ function: [constructor] void QCborValue::QCborValue(const QRegularExpression& rx).

Source

pub unsafe fn from_q_uuid(uuid: impl CastInto<Ref<QUuid>>) -> CppBox<QCborValue>

Calls C++ function: [constructor] void QCborValue::QCborValue(const QUuid& uuid).

Source

pub unsafe fn from_q_cbor_tag(tag: QCborTag) -> CppBox<QCborValue>

Calls C++ function: [constructor] void QCborValue::QCborValue(QCborTag tag).

Source

pub unsafe fn from_q_cbor_known_tags(t: QCborKnownTags) -> CppBox<QCborValue>

Calls C++ function: [constructor] void QCborValue::QCborValue(QCborKnownTags t_).

Source

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

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

Source

pub unsafe fn static_meta_object() -> Ref<QMetaObject>

Returns a reference to the staticMetaObject field.

Source

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

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

Source

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

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

Source

pub unsafe fn tag_0a(&self) -> QCborTag

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

Source

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

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

Source

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

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

Source

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

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

Source

pub unsafe fn to_array_1a( &self, default_value: impl CastInto<Ref<QCborArray>>, ) -> CppBox<QCborArray>

Calls C++ function: QCborArray QCborValue::toArray(const QCborArray& defaultValue) const.

Source

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

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

Source

pub unsafe fn to_bool_0a(&self) -> bool

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

Source

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

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

Source

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

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

Source

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

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

Source

pub unsafe fn to_cbor_q_cbor_stream_writer_q_flags_encoding_option( &self, writer: impl CastInto<Ref<QCborStreamWriter>>, opt: QFlags<EncodingOption>, )

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

Source

pub unsafe fn to_cbor(&self) -> CppBox<QByteArray>

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

Source

pub unsafe fn to_cbor_q_cbor_stream_writer( &self, writer: impl CastInto<Ref<QCborStreamWriter>>, )

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

Source

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

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

Source

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

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

Source

pub unsafe fn to_diagnostic_notation_1a( &self, opts: QFlags<DiagnosticNotationOption>, ) -> CppBox<QString>

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

Source

pub unsafe fn to_diagnostic_notation_0a(&self) -> CppBox<QString>

Calls C++ function: QString QCborValue::toDiagnosticNotation() const.

Source

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

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

Source

pub unsafe fn to_double_0a(&self) -> c_double

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

Source

pub unsafe fn to_integer_1a(&self, default_value: c_longlong) -> c_longlong

Calls C++ function: long long QCborValue::toInteger(long long defaultValue = …) const.

Source

pub unsafe fn to_integer_0a(&self) -> c_longlong

Calls C++ function: long long QCborValue::toInteger() const.

Source

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

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

Source

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

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

Source

pub unsafe fn to_map_1a( &self, default_value: impl CastInto<Ref<QCborMap>>, ) -> CppBox<QCborMap>

Calls C++ function: QCborMap QCborValue::toMap(const QCborMap& defaultValue) const.

Source

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

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

Source

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

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

Source

pub unsafe fn to_simple_type_1a( &self, default_value: QCborSimpleType, ) -> QCborSimpleType

Calls C++ function: QCborSimpleType QCborValue::toSimpleType(QCborSimpleType defaultValue = …) const.

Source

pub unsafe fn to_simple_type_0a(&self) -> QCborSimpleType

Calls C++ function: QCborSimpleType QCborValue::toSimpleType() const.

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

pub unsafe fn type_(&self) -> Type

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

Trait Implementations§

Source§

impl CppDeletable for QCborValue

Source§

unsafe fn delete(&self)

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

Source§

impl Lt<Ref<QCborValue>> for QCborValue

Source§

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

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

Source§

impl PartialEq<Ref<QCborValue>> for QCborValue

Source§

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

Calls C++ function: bool QCborValue::operator==(const QCborValue& 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.

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.