[][src]Struct ipld_block_builder::GenericCodec

pub struct GenericCodec<C, H> { /* fields omitted */ }

Generic ipld codec.

Implementations

impl<C, H> GenericCodec<C, H>[src]

pub fn new() -> Self[src]

Create a new generic codec.

Trait Implementations

impl<C: Clone, H: Clone> Clone for GenericCodec<C, H>[src]

impl<C: Codec, H> Decoder for GenericCodec<C, H>[src]

type Codec = C

Ipld codec.

impl<C: Default, H: Default> Default for GenericCodec<C, H>[src]

impl<C: Codec, H: Multihasher<Code>> Encoder for GenericCodec<C, H>[src]

type Codec = C

Ipld codec.

type Hash = H

Hasher.

impl<C, H> IpldDecoder for GenericCodec<C, H>[src]

Auto Trait Implementations

impl<C, H> RefUnwindSafe for GenericCodec<C, H> where
    C: RefUnwindSafe,
    H: RefUnwindSafe

impl<C, H> Send for GenericCodec<C, H> where
    C: Send,
    H: Send

impl<C, H> Sync for GenericCodec<C, H> where
    C: Sync,
    H: Sync

impl<C, H> Unpin for GenericCodec<C, H> where
    C: Unpin,
    H: Unpin

impl<C, H> UnwindSafe for GenericCodec<C, H> where
    C: UnwindSafe,
    H: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.