Struct qt_core::QCborSimpleType
source · pub struct QCborSimpleType(/* private fields */);
Expand description
This enum contains the possible "Simple Types" for CBOR. Simple Types range from 0 to 255 and are types that carry no further value.
C++ enum: QCborSimpleType
.
This enum contains the possible “Simple Types” for CBOR. Simple Types range from 0 to 255 and are types that carry no further value.
The following values are currently known:
Qt CBOR API supports encoding and decoding any Simple Type, whether one of those above or any other value.
Applications should only use further values if a corresponding specification has been published, otherwise interpretation and validation by the remote may fail. Values 24 to 31 are reserved and must not be used.
The current authoritative list is maintained by IANA in the Simple Values registry.
See also QCborStreamWriter::append(QCborSimpleType), QCborStreamReader::isSimpleType(), QCborStreamReader::toSimpleType(), QCborValue::isSimpleType(), and QCborValue::toSimpleType().
Implementations§
source§impl QCborSimpleType
impl QCborSimpleType
sourcepub const False: QCborSimpleType = _
pub const False: QCborSimpleType = _
A “false” boolean. (C++ enum variant: False = 20
)
sourcepub const True: QCborSimpleType = _
pub const True: QCborSimpleType = _
A “true” boolean. (C++ enum variant: True = 21
)
sourcepub const Null: QCborSimpleType = _
pub const Null: QCborSimpleType = _
Absence of value (null). (C++ enum variant: Null = 22
)
sourcepub const Undefined: QCborSimpleType = _
pub const Undefined: QCborSimpleType = _
Missing or deleted value, usually an error. (C++ enum variant: Undefined = 23
)
Trait Implementations§
source§impl Clone for QCborSimpleType
impl Clone for QCborSimpleType
source§fn clone(&self) -> QCborSimpleType
fn clone(&self) -> QCborSimpleType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for QCborSimpleType
impl Debug for QCborSimpleType
source§impl From<QCborSimpleType> for c_int
impl From<QCborSimpleType> for c_int
source§fn from(value: QCborSimpleType) -> Self
fn from(value: QCborSimpleType) -> Self
source§impl From<i32> for QCborSimpleType
impl From<i32> for QCborSimpleType
source§impl PartialEq for QCborSimpleType
impl PartialEq for QCborSimpleType
source§fn eq(&self, other: &QCborSimpleType) -> bool
fn eq(&self, other: &QCborSimpleType) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Shl<QCborSimpleType> for &QDebug
Available on cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.
impl Shl<QCborSimpleType> for &QDebug
cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.source§fn shl(self, st: QCborSimpleType) -> CppBox<QDebug>
fn shl(self, st: QCborSimpleType) -> CppBox<QDebug>
Writes bit array ba to stream out.
Calls C++ function: QDebug operator<<(QDebug arg1, QCborSimpleType st)
.
Warning: no exact match found in C++ documentation. Below is the C++ documentation for QDataStream &operator<<(QDataStream &out, const QBitArray &ba)
:
Writes bit array ba to stream out.
See also Format of the QDataStream operators.