pub struct DagCborCodec;Expand description
A struct representing the dag-cbor IPLD codec.
Trait Implementations§
Source§impl Clone for DagCborCodec
impl Clone for DagCborCodec
Source§fn clone(&self) -> DagCborCodec
fn clone(&self) -> DagCborCodec
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Codec for DagCborCodec
impl Codec for DagCborCodec
Source§fn encode<T: Encode<Self> + ?Sized>(
&self,
obj: &T,
) -> Result<ByteCursor, String>
fn encode<T: Encode<Self> + ?Sized>( &self, obj: &T, ) -> Result<ByteCursor, String>
Errors Read more
Source§fn references<T: References<Self>, E: Extend<Cid>>(
&self,
bytes: ByteCursor,
set: &mut E,
) -> Result<(), String>
fn references<T: References<Self>, E: Extend<Cid>>( &self, bytes: ByteCursor, set: &mut E, ) -> Result<(), String>
Extends
set with any cids the type encoded in the bytecursor
refers to. Read moreSource§impl Debug for DagCborCodec
impl Debug for DagCborCodec
Source§impl Decode<DagCborCodec> for ()
impl Decode<DagCborCodec> for ()
Source§fn decode(_c: DagCborCodec, r: &mut ByteCursor) -> Result<Self, String>
fn decode(_c: DagCborCodec, r: &mut ByteCursor) -> Result<Self, String>
Decodes the bytes in
r using the codec C into
Self. Returns ok if the bytes represented a valid
value of the type. Read moreSource§impl<A: Decode<DagCborCodec>> Decode<DagCborCodec> for (A,)
impl<A: Decode<DagCborCodec>> Decode<DagCborCodec> for (A,)
Source§fn decode(c: DagCborCodec, r: &mut ByteCursor) -> Result<Self, String>
fn decode(c: DagCborCodec, r: &mut ByteCursor) -> Result<Self, String>
Decodes the bytes in
r using the codec C into
Self. Returns ok if the bytes represented a valid
value of the type. Read moreSource§impl<A: Decode<DagCborCodec>, B: Decode<DagCborCodec>> Decode<DagCborCodec> for (A, B)
impl<A: Decode<DagCborCodec>, B: Decode<DagCborCodec>> Decode<DagCborCodec> for (A, B)
Source§fn decode(c: DagCborCodec, r: &mut ByteCursor) -> Result<Self, String>
fn decode(c: DagCborCodec, r: &mut ByteCursor) -> Result<Self, String>
Decodes the bytes in
r using the codec C into
Self. Returns ok if the bytes represented a valid
value of the type. Read moreSource§impl<A: Decode<DagCborCodec>, B: Decode<DagCborCodec>, C: Decode<DagCborCodec>> Decode<DagCborCodec> for (A, B, C)
impl<A: Decode<DagCborCodec>, B: Decode<DagCborCodec>, C: Decode<DagCborCodec>> Decode<DagCborCodec> for (A, B, C)
Source§fn decode(c: DagCborCodec, r: &mut ByteCursor) -> Result<Self, String>
fn decode(c: DagCborCodec, r: &mut ByteCursor) -> Result<Self, String>
Decodes the bytes in
r using the codec C into
Self. Returns ok if the bytes represented a valid
value of the type. Read moreSource§impl<A: Decode<DagCborCodec>, B: Decode<DagCborCodec>, C: Decode<DagCborCodec>, D: Decode<DagCborCodec>> Decode<DagCborCodec> for (A, B, C, D)
impl<A: Decode<DagCborCodec>, B: Decode<DagCborCodec>, C: Decode<DagCborCodec>, D: Decode<DagCborCodec>> Decode<DagCborCodec> for (A, B, C, D)
Source§fn decode(c: DagCborCodec, r: &mut ByteCursor) -> Result<Self, String>
fn decode(c: DagCborCodec, r: &mut ByteCursor) -> Result<Self, String>
Decodes the bytes in
r using the codec C into
Self. Returns ok if the bytes represented a valid
value of the type. Read moreSource§impl<T: Decode<DagCborCodec>> Decode<DagCborCodec> for Arc<T>
impl<T: Decode<DagCborCodec>> Decode<DagCborCodec> for Arc<T>
Source§fn decode(c: DagCborCodec, r: &mut ByteCursor) -> Result<Self, String>
fn decode(c: DagCborCodec, r: &mut ByteCursor) -> Result<Self, String>
Decodes the bytes in
r using the codec C into
Self. Returns ok if the bytes represented a valid
value of the type. Read moreSource§impl<K: Decode<DagCborCodec> + Ord, T: Decode<DagCborCodec>> Decode<DagCborCodec> for BTreeMap<K, T>
impl<K: Decode<DagCborCodec> + Ord, T: Decode<DagCborCodec>> Decode<DagCborCodec> for BTreeMap<K, T>
Source§fn decode(_: DagCborCodec, r: &mut ByteCursor) -> Result<Self, String>
fn decode(_: DagCborCodec, r: &mut ByteCursor) -> Result<Self, String>
Decodes the bytes in
r using the codec C into
Self. Returns ok if the bytes represented a valid
value of the type. Read moreSource§impl Decode<DagCborCodec> for Box<[u8]>
impl Decode<DagCborCodec> for Box<[u8]>
Source§fn decode(_: DagCborCodec, r: &mut ByteCursor) -> Result<Self, String>
fn decode(_: DagCborCodec, r: &mut ByteCursor) -> Result<Self, String>
Decodes the bytes in
r using the codec C into
Self. Returns ok if the bytes represented a valid
value of the type. Read moreSource§impl Decode<DagCborCodec> for Cid
impl Decode<DagCborCodec> for Cid
Source§fn decode(_: DagCborCodec, r: &mut ByteCursor) -> Result<Self, String>
fn decode(_: DagCborCodec, r: &mut ByteCursor) -> Result<Self, String>
Decodes the bytes in
r using the codec C into
Self. Returns ok if the bytes represented a valid
value of the type. Read moreSource§impl Decode<DagCborCodec> for Ipld
impl Decode<DagCborCodec> for Ipld
Source§fn decode(_: DagCborCodec, r: &mut ByteCursor) -> Result<Self, String>
fn decode(_: DagCborCodec, r: &mut ByteCursor) -> Result<Self, String>
Decodes the bytes in
r using the codec C into
Self. Returns ok if the bytes represented a valid
value of the type. Read moreSource§impl<T: Decode<DagCborCodec>> Decode<DagCborCodec> for Option<T>
impl<T: Decode<DagCborCodec>> Decode<DagCborCodec> for Option<T>
Source§fn decode(c: DagCborCodec, r: &mut ByteCursor) -> Result<Self, String>
fn decode(c: DagCborCodec, r: &mut ByteCursor) -> Result<Self, String>
Decodes the bytes in
r using the codec C into
Self. Returns ok if the bytes represented a valid
value of the type. Read moreSource§impl Decode<DagCborCodec> for String
impl Decode<DagCborCodec> for String
Source§fn decode(_: DagCborCodec, r: &mut ByteCursor) -> Result<Self, String>
fn decode(_: DagCborCodec, r: &mut ByteCursor) -> Result<Self, String>
Decodes the bytes in
r using the codec C into
Self. Returns ok if the bytes represented a valid
value of the type. Read moreSource§impl<T: Decode<DagCborCodec>> Decode<DagCborCodec> for Vec<T>
impl<T: Decode<DagCborCodec>> Decode<DagCborCodec> for Vec<T>
Source§fn decode(_: DagCborCodec, r: &mut ByteCursor) -> Result<Self, String>
fn decode(_: DagCborCodec, r: &mut ByteCursor) -> Result<Self, String>
Decodes the bytes in
r using the codec C into
Self. Returns ok if the bytes represented a valid
value of the type. Read moreSource§impl Decode<DagCborCodec> for bool
impl Decode<DagCborCodec> for bool
Source§fn decode(_: DagCborCodec, r: &mut ByteCursor) -> Result<Self, String>
fn decode(_: DagCborCodec, r: &mut ByteCursor) -> Result<Self, String>
Decodes the bytes in
r using the codec C into
Self. Returns ok if the bytes represented a valid
value of the type. Read moreSource§impl Decode<DagCborCodec> for f32
impl Decode<DagCborCodec> for f32
Source§fn decode(_: DagCborCodec, r: &mut ByteCursor) -> Result<Self, String>
fn decode(_: DagCborCodec, r: &mut ByteCursor) -> Result<Self, String>
Decodes the bytes in
r using the codec C into
Self. Returns ok if the bytes represented a valid
value of the type. Read moreSource§impl Decode<DagCborCodec> for f64
impl Decode<DagCborCodec> for f64
Source§fn decode(_: DagCborCodec, r: &mut ByteCursor) -> Result<Self, String>
fn decode(_: DagCborCodec, r: &mut ByteCursor) -> Result<Self, String>
Decodes the bytes in
r using the codec C into
Self. Returns ok if the bytes represented a valid
value of the type. Read moreSource§impl Decode<DagCborCodec> for i16
impl Decode<DagCborCodec> for i16
Source§fn decode(_: DagCborCodec, r: &mut ByteCursor) -> Result<Self, String>
fn decode(_: DagCborCodec, r: &mut ByteCursor) -> Result<Self, String>
Decodes the bytes in
r using the codec C into
Self. Returns ok if the bytes represented a valid
value of the type. Read moreSource§impl Decode<DagCborCodec> for i32
impl Decode<DagCborCodec> for i32
Source§fn decode(_: DagCborCodec, r: &mut ByteCursor) -> Result<Self, String>
fn decode(_: DagCborCodec, r: &mut ByteCursor) -> Result<Self, String>
Decodes the bytes in
r using the codec C into
Self. Returns ok if the bytes represented a valid
value of the type. Read moreSource§impl Decode<DagCborCodec> for i64
impl Decode<DagCborCodec> for i64
Source§fn decode(_: DagCborCodec, r: &mut ByteCursor) -> Result<Self, String>
fn decode(_: DagCborCodec, r: &mut ByteCursor) -> Result<Self, String>
Decodes the bytes in
r using the codec C into
Self. Returns ok if the bytes represented a valid
value of the type. Read moreSource§impl Decode<DagCborCodec> for i8
impl Decode<DagCborCodec> for i8
Source§fn decode(_: DagCborCodec, r: &mut ByteCursor) -> Result<Self, String>
fn decode(_: DagCborCodec, r: &mut ByteCursor) -> Result<Self, String>
Decodes the bytes in
r using the codec C into
Self. Returns ok if the bytes represented a valid
value of the type. Read moreSource§impl Decode<DagCborCodec> for u16
impl Decode<DagCborCodec> for u16
Source§fn decode(_: DagCborCodec, r: &mut ByteCursor) -> Result<Self, String>
fn decode(_: DagCborCodec, r: &mut ByteCursor) -> Result<Self, String>
Decodes the bytes in
r using the codec C into
Self. Returns ok if the bytes represented a valid
value of the type. Read moreSource§impl Decode<DagCborCodec> for u32
impl Decode<DagCborCodec> for u32
Source§fn decode(_: DagCborCodec, r: &mut ByteCursor) -> Result<Self, String>
fn decode(_: DagCborCodec, r: &mut ByteCursor) -> Result<Self, String>
Decodes the bytes in
r using the codec C into
Self. Returns ok if the bytes represented a valid
value of the type. Read moreSource§impl Decode<DagCborCodec> for u64
impl Decode<DagCborCodec> for u64
Source§fn decode(_: DagCborCodec, r: &mut ByteCursor) -> Result<Self, String>
fn decode(_: DagCborCodec, r: &mut ByteCursor) -> Result<Self, String>
Decodes the bytes in
r using the codec C into
Self. Returns ok if the bytes represented a valid
value of the type. Read moreSource§impl Decode<DagCborCodec> for u8
impl Decode<DagCborCodec> for u8
Source§fn decode(_: DagCborCodec, r: &mut ByteCursor) -> Result<Self, String>
fn decode(_: DagCborCodec, r: &mut ByteCursor) -> Result<Self, String>
Decodes the bytes in
r using the codec C into
Self. Returns ok if the bytes represented a valid
value of the type. Read moreSource§impl Default for DagCborCodec
impl Default for DagCborCodec
Source§fn default() -> DagCborCodec
fn default() -> DagCborCodec
Returns the “default value” for a type. Read more
Source§impl Encode<DagCborCodec> for [u8]
impl Encode<DagCborCodec> for [u8]
Source§fn encode(&self, _: DagCborCodec, w: &mut ByteCursor) -> Result<(), String>
fn encode(&self, _: DagCborCodec, w: &mut ByteCursor) -> Result<(), String>
Encodes
Self using codec C into the mutable bytecursor
w. Returns Ok if the encoding process succeeded. Read moreSource§impl Encode<DagCborCodec> for ()
impl Encode<DagCborCodec> for ()
Source§fn encode(&self, _c: DagCborCodec, w: &mut ByteCursor) -> Result<(), String>
fn encode(&self, _c: DagCborCodec, w: &mut ByteCursor) -> Result<(), String>
Encodes
Self using codec C into the mutable bytecursor
w. Returns Ok if the encoding process succeeded. Read moreSource§impl<A: Encode<DagCborCodec>> Encode<DagCborCodec> for (A,)
impl<A: Encode<DagCborCodec>> Encode<DagCborCodec> for (A,)
Source§fn encode(&self, c: DagCborCodec, w: &mut ByteCursor) -> Result<(), String>
fn encode(&self, c: DagCborCodec, w: &mut ByteCursor) -> Result<(), String>
Encodes
Self using codec C into the mutable bytecursor
w. Returns Ok if the encoding process succeeded. Read moreSource§impl<A: Encode<DagCborCodec>, B: Encode<DagCborCodec>> Encode<DagCborCodec> for (A, B)
impl<A: Encode<DagCborCodec>, B: Encode<DagCborCodec>> Encode<DagCborCodec> for (A, B)
Source§fn encode(&self, c: DagCborCodec, w: &mut ByteCursor) -> Result<(), String>
fn encode(&self, c: DagCborCodec, w: &mut ByteCursor) -> Result<(), String>
Encodes
Self using codec C into the mutable bytecursor
w. Returns Ok if the encoding process succeeded. Read moreSource§impl<A: Encode<DagCborCodec>, B: Encode<DagCborCodec>, C: Encode<DagCborCodec>> Encode<DagCborCodec> for (A, B, C)
impl<A: Encode<DagCborCodec>, B: Encode<DagCborCodec>, C: Encode<DagCborCodec>> Encode<DagCborCodec> for (A, B, C)
Source§fn encode(&self, c: DagCborCodec, w: &mut ByteCursor) -> Result<(), String>
fn encode(&self, c: DagCborCodec, w: &mut ByteCursor) -> Result<(), String>
Encodes
Self using codec C into the mutable bytecursor
w. Returns Ok if the encoding process succeeded. Read moreSource§impl<A: Encode<DagCborCodec>, B: Encode<DagCborCodec>, C: Encode<DagCborCodec>, D: Encode<DagCborCodec>> Encode<DagCborCodec> for (A, B, C, D)
impl<A: Encode<DagCborCodec>, B: Encode<DagCborCodec>, C: Encode<DagCborCodec>, D: Encode<DagCborCodec>> Encode<DagCborCodec> for (A, B, C, D)
Source§fn encode(&self, c: DagCborCodec, w: &mut ByteCursor) -> Result<(), String>
fn encode(&self, c: DagCborCodec, w: &mut ByteCursor) -> Result<(), String>
Encodes
Self using codec C into the mutable bytecursor
w. Returns Ok if the encoding process succeeded. Read moreSource§impl<T: Encode<DagCborCodec>> Encode<DagCborCodec> for Arc<T>
impl<T: Encode<DagCborCodec>> Encode<DagCborCodec> for Arc<T>
Source§fn encode(&self, c: DagCborCodec, w: &mut ByteCursor) -> Result<(), String>
fn encode(&self, c: DagCborCodec, w: &mut ByteCursor) -> Result<(), String>
Encodes
Self using codec C into the mutable bytecursor
w. Returns Ok if the encoding process succeeded. Read moreSource§impl<K: Encode<DagCborCodec>, T: Encode<DagCborCodec> + 'static> Encode<DagCborCodec> for BTreeMap<K, T>
impl<K: Encode<DagCborCodec>, T: Encode<DagCborCodec> + 'static> Encode<DagCborCodec> for BTreeMap<K, T>
Source§fn encode(&self, c: DagCborCodec, w: &mut ByteCursor) -> Result<(), String>
fn encode(&self, c: DagCborCodec, w: &mut ByteCursor) -> Result<(), String>
Encodes
Self using codec C into the mutable bytecursor
w. Returns Ok if the encoding process succeeded. Read moreSource§impl Encode<DagCborCodec> for Box<[u8]>
impl Encode<DagCborCodec> for Box<[u8]>
Source§fn encode(&self, c: DagCborCodec, w: &mut ByteCursor) -> Result<(), String>
fn encode(&self, c: DagCborCodec, w: &mut ByteCursor) -> Result<(), String>
Encodes
Self using codec C into the mutable bytecursor
w. Returns Ok if the encoding process succeeded. Read moreSource§impl Encode<DagCborCodec> for Cid
impl Encode<DagCborCodec> for Cid
Source§fn encode(&self, _: DagCborCodec, w: &mut ByteCursor) -> Result<(), String>
fn encode(&self, _: DagCborCodec, w: &mut ByteCursor) -> Result<(), String>
Encodes
Self using codec C into the mutable bytecursor
w. Returns Ok if the encoding process succeeded. Read moreSource§impl Encode<DagCborCodec> for Ipld
impl Encode<DagCborCodec> for Ipld
Source§fn encode(&self, c: DagCborCodec, w: &mut ByteCursor) -> Result<(), String>
fn encode(&self, c: DagCborCodec, w: &mut ByteCursor) -> Result<(), String>
Encodes
Self using codec C into the mutable bytecursor
w. Returns Ok if the encoding process succeeded. Read moreSource§impl<T: Encode<DagCborCodec>> Encode<DagCborCodec> for Option<T>
impl<T: Encode<DagCborCodec>> Encode<DagCborCodec> for Option<T>
Source§fn encode(&self, c: DagCborCodec, w: &mut ByteCursor) -> Result<(), String>
fn encode(&self, c: DagCborCodec, w: &mut ByteCursor) -> Result<(), String>
Encodes
Self using codec C into the mutable bytecursor
w. Returns Ok if the encoding process succeeded. Read moreSource§impl Encode<DagCborCodec> for String
impl Encode<DagCborCodec> for String
Source§fn encode(&self, c: DagCborCodec, w: &mut ByteCursor) -> Result<(), String>
fn encode(&self, c: DagCborCodec, w: &mut ByteCursor) -> Result<(), String>
Encodes
Self using codec C into the mutable bytecursor
w. Returns Ok if the encoding process succeeded. Read moreSource§impl<T: Encode<DagCborCodec>> Encode<DagCborCodec> for Vec<T>
impl<T: Encode<DagCborCodec>> Encode<DagCborCodec> for Vec<T>
Source§fn encode(&self, c: DagCborCodec, w: &mut ByteCursor) -> Result<(), String>
fn encode(&self, c: DagCborCodec, w: &mut ByteCursor) -> Result<(), String>
Encodes
Self using codec C into the mutable bytecursor
w. Returns Ok if the encoding process succeeded. Read moreSource§impl Encode<DagCborCodec> for bool
impl Encode<DagCborCodec> for bool
Source§fn encode(&self, _: DagCborCodec, w: &mut ByteCursor) -> Result<(), String>
fn encode(&self, _: DagCborCodec, w: &mut ByteCursor) -> Result<(), String>
Encodes
Self using codec C into the mutable bytecursor
w. Returns Ok if the encoding process succeeded. Read moreSource§impl Encode<DagCborCodec> for f32
impl Encode<DagCborCodec> for f32
Source§fn encode(&self, _: DagCborCodec, w: &mut ByteCursor) -> Result<(), String>
fn encode(&self, _: DagCborCodec, w: &mut ByteCursor) -> Result<(), String>
Encodes
Self using codec C into the mutable bytecursor
w. Returns Ok if the encoding process succeeded. Read moreSource§impl Encode<DagCborCodec> for f64
impl Encode<DagCborCodec> for f64
Source§fn encode(&self, c: DagCborCodec, w: &mut ByteCursor) -> Result<(), String>
fn encode(&self, c: DagCborCodec, w: &mut ByteCursor) -> Result<(), String>
Encodes
Self using codec C into the mutable bytecursor
w. Returns Ok if the encoding process succeeded. Read moreSource§impl Encode<DagCborCodec> for i128
impl Encode<DagCborCodec> for i128
Source§fn encode(&self, _: DagCborCodec, w: &mut ByteCursor) -> Result<(), String>
fn encode(&self, _: DagCborCodec, w: &mut ByteCursor) -> Result<(), String>
Encodes
Self using codec C into the mutable bytecursor
w. Returns Ok if the encoding process succeeded. Read moreSource§impl Encode<DagCborCodec> for i16
impl Encode<DagCborCodec> for i16
Source§fn encode(&self, _: DagCborCodec, w: &mut ByteCursor) -> Result<(), String>
fn encode(&self, _: DagCborCodec, w: &mut ByteCursor) -> Result<(), String>
Encodes
Self using codec C into the mutable bytecursor
w. Returns Ok if the encoding process succeeded. Read moreSource§impl Encode<DagCborCodec> for i32
impl Encode<DagCborCodec> for i32
Source§fn encode(&self, _: DagCborCodec, w: &mut ByteCursor) -> Result<(), String>
fn encode(&self, _: DagCborCodec, w: &mut ByteCursor) -> Result<(), String>
Encodes
Self using codec C into the mutable bytecursor
w. Returns Ok if the encoding process succeeded. Read moreSource§impl Encode<DagCborCodec> for i64
impl Encode<DagCborCodec> for i64
Source§fn encode(&self, _: DagCborCodec, w: &mut ByteCursor) -> Result<(), String>
fn encode(&self, _: DagCborCodec, w: &mut ByteCursor) -> Result<(), String>
Encodes
Self using codec C into the mutable bytecursor
w. Returns Ok if the encoding process succeeded. Read moreSource§impl Encode<DagCborCodec> for i8
impl Encode<DagCborCodec> for i8
Source§fn encode(&self, _: DagCborCodec, w: &mut ByteCursor) -> Result<(), String>
fn encode(&self, _: DagCborCodec, w: &mut ByteCursor) -> Result<(), String>
Encodes
Self using codec C into the mutable bytecursor
w. Returns Ok if the encoding process succeeded. Read moreSource§impl Encode<DagCborCodec> for str
impl Encode<DagCborCodec> for str
Source§fn encode(&self, _: DagCborCodec, w: &mut ByteCursor) -> Result<(), String>
fn encode(&self, _: DagCborCodec, w: &mut ByteCursor) -> Result<(), String>
Encodes
Self using codec C into the mutable bytecursor
w. Returns Ok if the encoding process succeeded. Read moreSource§impl Encode<DagCborCodec> for u16
impl Encode<DagCborCodec> for u16
Source§fn encode(&self, _: DagCborCodec, w: &mut ByteCursor) -> Result<(), String>
fn encode(&self, _: DagCborCodec, w: &mut ByteCursor) -> Result<(), String>
Encodes
Self using codec C into the mutable bytecursor
w. Returns Ok if the encoding process succeeded. Read moreSource§impl Encode<DagCborCodec> for u32
impl Encode<DagCborCodec> for u32
Source§fn encode(&self, _: DagCborCodec, w: &mut ByteCursor) -> Result<(), String>
fn encode(&self, _: DagCborCodec, w: &mut ByteCursor) -> Result<(), String>
Encodes
Self using codec C into the mutable bytecursor
w. Returns Ok if the encoding process succeeded. Read moreSource§impl Encode<DagCborCodec> for u64
impl Encode<DagCborCodec> for u64
Source§fn encode(&self, _: DagCborCodec, w: &mut ByteCursor) -> Result<(), String>
fn encode(&self, _: DagCborCodec, w: &mut ByteCursor) -> Result<(), String>
Encodes
Self using codec C into the mutable bytecursor
w. Returns Ok if the encoding process succeeded. Read moreSource§impl Encode<DagCborCodec> for u8
impl Encode<DagCborCodec> for u8
Source§fn encode(&self, _: DagCborCodec, w: &mut ByteCursor) -> Result<(), String>
fn encode(&self, _: DagCborCodec, w: &mut ByteCursor) -> Result<(), String>
Encodes
Self using codec C into the mutable bytecursor
w. Returns Ok if the encoding process succeeded. Read moreSource§impl From<DagCborCodec> for u64
impl From<DagCborCodec> for u64
Source§fn from(_: DagCborCodec) -> Self
fn from(_: DagCborCodec) -> Self
Converts to this type from the input type.
Source§impl Ord for DagCborCodec
impl Ord for DagCborCodec
Source§fn cmp(&self, other: &DagCborCodec) -> Ordering
fn cmp(&self, other: &DagCborCodec) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DagCborCodec
impl PartialEq for DagCborCodec
Source§impl PartialOrd for DagCborCodec
impl PartialOrd for DagCborCodec
Source§impl References<DagCborCodec> for Ipld
impl References<DagCborCodec> for Ipld
Source§fn references<E: Extend<Cid>>(
c: DagCborCodec,
r: &mut ByteCursor,
set: &mut E,
) -> Result<(), String>
fn references<E: Extend<Cid>>( c: DagCborCodec, r: &mut ByteCursor, set: &mut E, ) -> Result<(), String>
Extends
set with any Cid references found in the encoding
of the type in r with the codec C Read moreSource§impl SkipOne for DagCborCodec
impl SkipOne for DagCborCodec
Source§impl TryFrom<u64> for DagCborCodec
impl TryFrom<u64> for DagCborCodec
impl Copy for DagCborCodec
impl Eq for DagCborCodec
impl StructuralPartialEq for DagCborCodec
Auto Trait Implementations§
impl Freeze for DagCborCodec
impl RefUnwindSafe for DagCborCodec
impl Send for DagCborCodec
impl Sync for DagCborCodec
impl Unpin for DagCborCodec
impl UnwindSafe for DagCborCodec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more