pub struct GenericCodec<C, H> { /* private fields */ }Expand description
Generic ipld codec.
Implementations§
Source§impl<C, H> GenericCodec<C, H>
impl<C, H> GenericCodec<C, H>
Trait Implementations§
Source§impl<C: Clone, H: Clone> Clone for GenericCodec<C, H>
impl<C: Clone, H: Clone> Clone for GenericCodec<C, H>
Source§fn clone(&self) -> GenericCodec<C, H>
fn clone(&self) -> GenericCodec<C, H>
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<C: Codec, H> Decoder for GenericCodec<C, H>
impl<C: Codec, H> Decoder for GenericCodec<C, H>
Source§impl<C: Default, H: Default> Default for GenericCodec<C, H>
impl<C: Default, H: Default> Default for GenericCodec<C, H>
Source§fn default() -> GenericCodec<C, H>
fn default() -> GenericCodec<C, H>
Returns the “default value” for a type. Read more
Source§impl<C: Codec, H: Multihasher<Code>> Encoder for GenericCodec<C, H>
impl<C: Codec, H: Multihasher<Code>> Encoder for GenericCodec<C, H>
Source§impl<C, H> IpldDecoder for GenericCodec<C, H>
impl<C, H> IpldDecoder for GenericCodec<C, H>
Auto Trait Implementations§
impl<C, H> Freeze for GenericCodec<C, H>
impl<C, H> RefUnwindSafe for GenericCodec<C, H>where
C: RefUnwindSafe,
H: RefUnwindSafe,
impl<C, H> Send for GenericCodec<C, H>
impl<C, H> Sync for GenericCodec<C, H>
impl<C, H> Unpin for GenericCodec<C, H>
impl<C, H> UnwindSafe for GenericCodec<C, H>where
C: UnwindSafe,
H: UnwindSafe,
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