pub trait EncDecOwned<E = Error>: Encode<Error = E> + DecodeOwned<Output = Self, Error = E> { }Expand description
Composite trait requiring an object is reversibly encodable and decodable into owned types, useful for simplifying type bounds / generics.
(ie. Self == <Self as Decode>::Output, <Self as Encode::Error> == <Self as DecodeOwned::Error>)
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.