Trait bdk_chain::bitcoin::consensus::serde::ByteEncoder

pub trait ByteEncoder: Default {
    type Encoder: EncodeBytes + From<Self>;
}
Expand description

Provides an instance of byte-to-string encoder.

This is basically a type constructor used in places where value arguments are not accepted. Such as the generic serialize.

Required Associated Types§

type Encoder: EncodeBytes + From<Self>

The encoder state.

Object Safety§

This trait is not object safe.

Implementors§

§

impl<C> ByteEncoder for Hex<C>
where C: Case,

§

type Encoder = Encoder<C>