[][src]Struct cbor_tools::Tag

pub struct Tag(_);

A tag value for use with Tagged

Tags are just integers; this type exists to avoid any type confusion when passing them as function arguments.

See RFC 7049 2.4 for details.


impl Tag[src]

impl Tag[src]

pub fn wrap(self, child: CborType) -> Tagged[src]

Use the Tag value to create a new Tagged struct.

This saves a little typing. Instead of:

Tagged::new(Tag::POS_BIGNUM, bytestring)

one can instead type:


Trait Implementations

impl Clone for Tag[src]

impl Copy for Tag[src]

impl Debug for Tag[src]

impl PartialEq<Tag> for Tag[src]

impl StructuralPartialEq for Tag[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.