wiwi::encoding

Trait Encoding

Source
pub trait Encoding
where 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§

Provided Methods§

Source

fn encode<T>(value: T) -> Self::EncodeOutput
where T: Encodable<Self>,

Source

fn decode<T>(value: T) -> Self::DecodeOutput
where 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.

Implementors§