Trait libipld_core::codec::References [−][src]
References trait.
This trait is generic over a codec, so that different codecs can be implemented for the same type.
Required methods
fn references<R: Read + Seek, E: Extend<Cid>>(
c: C,
r: &mut R,
set: &mut E
) -> Result<()>
[src]
c: C,
r: &mut R,
set: &mut E
) -> Result<()>
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.