[][src]Trait libipld::codec::References

pub trait References<C> where
    C: Codec
{ pub fn references<R, E>(c: C, r: &mut R, set: &mut E) -> Result<(), Error>
    where
        E: Extend<Cid<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>>>,
        R: Read + Seek
; }

References trait.

This trait is generic over a codec, so that different codecs can be implemented for the same type.

Required methods

pub fn references<R, E>(c: C, r: &mut R, set: &mut E) -> Result<(), Error> where
    E: Extend<Cid<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>>>,
    R: Read + Seek
[src]

Scrape the references from an impl Read.

It takes a specific codec as parameter, so that the References can be generic over an enum that contains multiple codecs.

Loading content...

Implementors

impl References<IpldCodec> for Ipld[src]

impl References<DagCborCodec> for Ipld[src]

impl References<DagJsonCodec> for Ipld[src]

impl References<DagPbCodec> for Ipld[src]

impl<T> References<RawCodec> for T[src]

Loading content...