[−][src]Struct qt_core::QCborTag
This enum contains no enumeration and is used only to provide type-safe access to a CBOR tag.
C++ enum: QCborTag
.
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]
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
impl RefUnwindSafe for QCborTag
impl Send for QCborTag
impl Sync for QCborTag
impl Unpin for QCborTag
impl UnwindSafe for QCborTag
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> StaticUpcast<T> for T
[src]
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,