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
)