Struct cbor_data::Tags[][src]

pub struct Tags<'a> {
    pub bytes: &'a [u8],
}

Fields

bytes: &'a [u8]

Implementations

impl<'a> Tags<'a>[src]

pub fn new(bytes: &'a [u8]) -> Option<(Self, &'a [u8])>[src]

pub fn first(&self) -> Option<u64>[src]

outermost / first tag

pub fn last(&self) -> Option<u64>[src]

innermost / last tag

pub fn single(&self) -> Option<u64>[src]

single tag. If there is more than one tag, this will return None

pub fn is_empty(&self) -> bool[src]

pub fn empty() -> Self[src]

Trait Implementations

impl<'a> Clone for Tags<'a>[src]

impl<'a> Copy for Tags<'a>[src]

impl<'a> Debug for Tags<'a>[src]

impl<'a> Iterator for Tags<'a>[src]

type Item = u64

The type of the elements being iterated over.

impl<'a> PartialEq<Tags<'a>> for Tags<'a>[src]

impl<'a> StructuralPartialEq for Tags<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Tags<'a>

impl<'a> Send for Tags<'a>

impl<'a> Sync for Tags<'a>

impl<'a> Unpin for Tags<'a>

impl<'a> UnwindSafe for Tags<'a>

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> From<T> for T[src]

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

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

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.