bdk_chain::bitcoin::consensus::serde

Trait 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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

§

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

§

type Encoder = Encoder<C>