[][src]Struct cbor::decoder::GenericDecoder

pub struct GenericDecoder<R> { /* fields omitted */ }

A generic decoder decodes arbitrary CBOR into a Value AST.

Implementations

impl<R: ReadBytesExt> GenericDecoder<R>[src]

pub fn new(c: Config, r: R) -> GenericDecoder<R>[src]

pub fn from_decoder(d: Decoder<R>) -> GenericDecoder<R>[src]

pub fn into_inner(self) -> Decoder<R>[src]

pub fn borrow_mut(&mut self) -> &mut Decoder<R>[src]

pub fn value(&mut self) -> DecodeResult<Value>[src]

Decode into a Value, i.e. an intermediate representation which can be further deconstructed using a Cursor. This supports indefinite decoding as well as tag validation (if not disabled).

Auto Trait Implementations

impl<R> RefUnwindSafe for GenericDecoder<R> where
    R: RefUnwindSafe
[src]

impl<R> Send for GenericDecoder<R> where
    R: Send
[src]

impl<R> Sync for GenericDecoder<R> where
    R: Sync
[src]

impl<R> Unpin for GenericDecoder<R> where
    R: Unpin
[src]

impl<R> UnwindSafe for GenericDecoder<R> where
    R: UnwindSafe
[src]

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