[][src]Trait libipld_core::codec::References

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

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: Read + Seek, E: Extend<Cid>>(
    c: C,
    r: &mut R,
    set: &mut E
) -> Result<()>
[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<T> References<RawCodec> for T[src]

Loading content...