pub trait EncDec<'a>: Encode + Decode<'a, Output = Self> { }
Expand description

Composite trait requiring an object is reversibly encodable and decodable, useful for simplifying type bounds / generics.

(ie. Self == <Self as Decode>::Output)

Implementors

Automatic implementation for types implementing Encode and Decode