[][src]Trait libipld_cbor::decode::TryReadCbor

pub trait TryReadCbor: Sized {
    fn try_read_cbor<R: Read>(r: &mut R, major: u8) -> Result<Option<Self>>;
}

TryReadCbor trait.

Required methods

fn try_read_cbor<R: Read>(r: &mut R, major: u8) -> Result<Option<Self>>

Takes the read major code and tries to parse from a byte stream. If parsing fails the byte stream must not be advanced.

Loading content...

Implementations on Foreign Types

impl TryReadCbor for bool[src]

impl TryReadCbor for u8[src]

impl TryReadCbor for u16[src]

impl TryReadCbor for u32[src]

impl TryReadCbor for u64[src]

impl TryReadCbor for i8[src]

impl TryReadCbor for i16[src]

impl TryReadCbor for i32[src]

impl TryReadCbor for i64[src]

impl TryReadCbor for f32[src]

impl TryReadCbor for f64[src]

impl TryReadCbor for String[src]

impl TryReadCbor for Cid[src]

impl TryReadCbor for Box<[u8]>[src]

impl<T: TryReadCbor> TryReadCbor for Option<T>[src]

impl<T: TryReadCbor> TryReadCbor for Vec<T>[src]

impl<T: TryReadCbor> TryReadCbor for BTreeMap<String, T>[src]

impl TryReadCbor for Ipld[src]

Loading content...

Implementors

Loading content...