Trait libipld::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
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]
E: Extend<Cid<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>>>,
R: Read + Seek,
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.
Implementors
impl References<IpldCodec> for Ipld
[src]
fn references<R: Read + Seek, E: Extend<Cid>>(
c: IpldCodec,
r: &mut R,
set: &mut E
) -> Result<()>
[src]
c: IpldCodec,
r: &mut R,
set: &mut E
) -> Result<()>
impl References<DagCborCodec> for Ipld
[src]
pub fn references<R, E>(
c: DagCborCodec,
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]
c: DagCborCodec,
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,
impl References<DagJsonCodec> for Ipld
[src]
pub fn references<R, E>(
c: DagJsonCodec,
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]
c: DagJsonCodec,
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,
impl References<DagPbCodec> for Ipld
[src]
pub fn references<R, E>(
c: DagPbCodec,
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]
c: DagPbCodec,
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,