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

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

TryReadCbor trait.

Required methods

fn try_read_cbor<R: Read + Seek>(r: &mut R, major: u8) -> Result<Option<Self>>[src]

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

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

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

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

impl<K: TryReadCbor + Ord, T: TryReadCbor> TryReadCbor for BTreeMap<K, T>[src]

impl TryReadCbor for Ipld[src]

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

Loading content...

Implementors

Loading content...