Struct qt_core::q_cbor_stream_reader::Type
source · pub struct Type(/* private fields */);
Expand description
This enumeration contains all possible CBOR types as decoded by QCborStreamReader. CBOR has 7 major types, plus a number of simple types carrying no value, and floating point values.
C++ enum: QCborStreamReader::Type
.
This enumeration contains all possible CBOR types as decoded by QCborStreamReader. CBOR has 7 major types, plus a number of simple types carrying no value, and floating point values.
Implementations§
source§impl Type
impl Type
sourcepub const UnsignedInteger: Type = _
pub const UnsignedInteger: Type = _
(Major type 0) Ranges from 0 to 264 - 1 (18,446,744,073,709,551,616) (C++ enum variant: UnsignedInteger = 0
)
sourcepub const NegativeInteger: Type = _
pub const NegativeInteger: Type = _
(Major type 1) Ranges from -1 to -264 (-18,446,744,073,709,551,616) (C++ enum variant: NegativeInteger = 32
)
sourcepub const ByteString: Type = _
pub const ByteString: Type = _
An alias to ByteArray. (C++ enum variant: ByteString = 64
)
sourcepub const ByteArray: Type = _
pub const ByteArray: Type = _
(Major type 2) Arbitrary binary data. (C++ enum variant: ByteArray = 64
)
sourcepub const TextString: Type = _
pub const TextString: Type = _
An alias to String (C++ enum variant: TextString = 96
)
sourcepub const String: Type = _
pub const String: Type = _
(Major type 3) Unicode text, possibly containing NULs. (C++ enum variant: String = 96
)
sourcepub const Array: Type = _
pub const Array: Type = _
(Major type 4) Array of heterogeneous items. (C++ enum variant: Array = -128
)
sourcepub const Map: Type = _
pub const Map: Type = _
(Major type 5) Map/dictionary of heterogeneous items. (C++ enum variant: Map = -96
)
sourcepub const Tag: Type = _
pub const Tag: Type = _
(Major type 6) Numbers giving further semantic value to generic CBOR items. See QCborTag for more information. (C++ enum variant: Tag = -64
)
sourcepub const SimpleType: Type = _
pub const SimpleType: Type = _
(Major type 7) Types carrying no further value. Includes booleans (true and false), null, undefined. (C++ enum variant: SimpleType = -32
)
sourcepub const Float16: Type = _
pub const Float16: Type = _
IEEE 754 half-precision floating point (qfloat16
). (C++ enum variant: Float16 = -7
)
sourcepub const Float: Type = _
pub const Float: Type = _
IEEE 754 single-precision floating point (float
). (C++ enum variant: Float = -6
)