Struct libipld_pb::DagPbCodec
source · pub struct DagPbCodec;
Expand description
Protobuf codec.
Trait Implementations§
source§impl Clone for DagPbCodec
impl Clone for DagPbCodec
source§fn clone(&self) -> DagPbCodec
fn clone(&self) -> DagPbCodec
Returns a copy 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 DagPbCodec
impl Codec for DagPbCodec
source§fn encode<T>(&self, obj: &T) -> Result<Vec<u8, Global>, Error>where
T: Encode<Self> + ?Sized,
fn encode<T>(&self, obj: &T) -> Result<Vec<u8, Global>, Error>where
T: Encode<Self> + ?Sized,
Encodes an encodable type.
source§fn decode<T>(&self, bytes: &[u8]) -> Result<T, Error>where
T: Decode<Self>,
fn decode<T>(&self, bytes: &[u8]) -> Result<T, Error>where
T: Decode<Self>,
Decodes a decodable type.
source§fn references<T, E>(&self, bytes: &[u8], set: &mut E) -> Result<(), Error>where
T: References<Self>,
E: Extend<Cid<64>>,
fn references<T, E>(&self, bytes: &[u8], set: &mut E) -> Result<(), Error>where
T: References<Self>,
E: Extend<Cid<64>>,
Scrapes the references.
source§impl Debug for DagPbCodec
impl Debug for DagPbCodec
source§impl Decode<DagPbCodec> for Ipld
impl Decode<DagPbCodec> for Ipld
source§impl Encode<DagPbCodec> for Ipld
impl Encode<DagPbCodec> for Ipld
source§impl From<DagPbCodec> for u64
impl From<DagPbCodec> for u64
source§fn from(_: DagPbCodec) -> Self
fn from(_: DagPbCodec) -> Self
Converts to this type from the input type.
source§impl Ord for DagPbCodec
impl Ord for DagPbCodec
source§fn cmp(&self, other: &DagPbCodec) -> Ordering
fn cmp(&self, other: &DagPbCodec) -> 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<DagPbCodec> for DagPbCodec
impl PartialEq<DagPbCodec> for DagPbCodec
source§fn eq(&self, other: &DagPbCodec) -> bool
fn eq(&self, other: &DagPbCodec) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<DagPbCodec> for DagPbCodec
impl PartialOrd<DagPbCodec> for DagPbCodec
source§fn partial_cmp(&self, other: &DagPbCodec) -> Option<Ordering>
fn partial_cmp(&self, other: &DagPbCodec) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more