pub trait Encodingwhere
Self: Sized + Sealed,{
type EncodeOutput;
type DecodeOutput;
// Provided methods
fn encode<T>(value: T) -> Self::EncodeOutput
where T: Encodable<Self> { ... }
fn decode<T>(value: T) -> Self::DecodeOutput
where T: Decodable<Self> { ... }
}
Required Associated Types§
type EncodeOutput
type DecodeOutput
Provided Methods§
fn encode<T>(value: T) -> Self::EncodeOutputwhere
T: Encodable<Self>,
fn decode<T>(value: T) -> Self::DecodeOutputwhere
T: Decodable<Self>,
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.