[][src]Struct qt_core::QCborTag

#[repr(transparent)]
pub struct QCborTag(_);

This enum contains no enumeration and is used only to provide type-safe access to a CBOR tag.

C++ enum: QCborTag.

C++ documentation:

This enum contains no enumeration and is used only to provide type-safe access to a CBOR tag.

CBOR tags are 64-bit numbers that are attached to generic CBOR types to provide further semantic meaning. QCborTag may be constructed from an enumeration found in QCborKnownTags or directly by providing the numeric representation.

For example, the following creates a QCborValue containing a byte array tagged with a tag 2.

QCborValue(QCborTag(2), QByteArray("\x01\0\0\0\0\0\0\0\0", 9));

See also QCborKnownTags, QCborStreamWriter::append(QCborTag), QCborStreamReader::isTag(), QCborStreamReader::toTag(), QCborValue::isTag(), and QCborValue::tag().

Methods

impl QCborTag[src]

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

Trait Implementations

impl Clone for QCborTag[src]

impl Copy for QCborTag[src]

impl Debug for QCborTag[src]

impl Eq for QCborTag[src]

impl From<QCborTag> for c_int[src]

impl From<i32> for QCborTag[src]

impl PartialEq<QCborTag> for QCborTag[src]

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

type Output = CppBox<QDebug>

The resulting type after applying the << operator.

fn shl(self, tg: QCborTag) -> CppBox<QDebug>[src]

Writes bit array ba to stream out.

Calls C++ function: QDebug operator<<(QDebug arg1, QCborTag tg).

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 QCborTag[src]

impl StructuralPartialEq for QCborTag[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.