pub trait Encoder {
type Codec: Codec;
type Hash: Multihasher<Code>;
// Required method
fn encode<T: Encode<Self::Codec>>(&self, value: &T) -> Result<Block>;
}Expand description
Encoder trait.
Required Associated Types§
Required Methods§
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.