[][src]Struct qt_core::QCborSimpleType

#[repr(transparent)]pub struct 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.

C++ enum: QCborSimpleType.

C++ documentation:

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().

Methods

impl QCborSimpleType[src]

pub fn to_int(&self) -> c_int[src]

impl QCborSimpleType[src]

pub const False: QCborSimpleType[src]

A "false" boolean. (C++ enum variant: False = 20)

pub const True: QCborSimpleType[src]

A "true" boolean. (C++ enum variant: True = 21)

pub const Null: QCborSimpleType[src]

Absence of value (null). (C++ enum variant: Null = 22)

pub const Undefined: QCborSimpleType[src]

Missing or deleted value, usually an error. (C++ enum variant: Undefined = 23)

Trait Implementations

impl Clone for QCborSimpleType[src]

impl Copy for QCborSimpleType[src]

impl Debug for QCborSimpleType[src]

impl Eq for QCborSimpleType[src]

impl From<QCborSimpleType> for c_int[src]

impl From<i32> for QCborSimpleType[src]

impl PartialEq<QCborSimpleType> for QCborSimpleType[src]

impl<'_> Shl<QCborSimpleType> for &'_ QDebug[src]

type Output = CppBox<QDebug>

The resulting type after applying the << operator.

fn shl(self, st: QCborSimpleType) -> CppBox<QDebug>[src]

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.

impl StructuralEq for QCborSimpleType[src]

impl StructuralPartialEq for QCborSimpleType[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.