Trait libipld::prelude::References

source ·
pub trait References<C>: Sized
where C: Codec,
{ // Required method fn references<R, E>(c: C, r: &mut R, set: &mut E) -> Result<(), Error> where R: Read + Seek, E: Extend<Cid<64>>; }
Expand description

References trait.

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

Required Methods§

source

fn references<R, E>(c: C, r: &mut R, set: &mut E) -> Result<(), Error>
where R: Read + Seek, E: Extend<Cid<64>>,

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.

Object Safety§

This trait is not object safe.

Implementors§