Trait bitcoin::consensus::serde::ByteEncoder
source · pub trait ByteEncoder: Default {
type Encoder: EncodeBytes + From<Self>;
}
Available on crate feature
serde
only.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§
sourcetype Encoder: EncodeBytes + From<Self>
type Encoder: EncodeBytes + From<Self>
The encoder state.
Object Safety§
This trait is not object safe.