[]Trait ipld_block_builder::codec::Decode

pub trait Decode<C> where
    C: Codec
{ fn decode<R>(r: &mut R) -> Result<Self, <C as Codec>::Error>
    where
        R: Read
; }

Required methods

fn decode<R>(r: &mut R) -> Result<Self, <C as Codec>::Error> where
    R: Read

Decode from an impl Read.

Loading content...

Implementations on Foreign Types

impl Decode<DagCbor> for Box<[u8]>

impl<T> Decode<DagCbor> for Vec<T> where
    T: TryReadCbor

impl Decode<DagCbor> for f32

impl<T> Decode<DagCbor> for BTreeMap<String, T> where
    T: TryReadCbor

impl Decode<DagCbor> for bool

impl Decode<DagCbor> for i16

impl Decode<DagCbor> for f64

impl Decode<DagCbor> for i8

impl Decode<DagCbor> for u8

impl Decode<DagCbor> for i32

impl Decode<DagCbor> for i64

impl Decode<DagCbor> for u32

impl Decode<DagCbor> for String

impl Decode<DagCbor> for u64

impl Decode<DagCbor> for u16

impl<T> Decode<DagCbor> for Option<T> where
    T: TryReadCbor

impl Decode<Raw> for Vec<u8>

impl Decode<Raw> for Box<[u8]>

Loading content...

Implementors

impl Decode<DagCbor> for Ipld

impl Decode<DagCbor> for CidGeneric<Codec, Code>

impl Decode<Raw> for Ipld

Loading content...