pub trait Decode: TextDecode + BinaryDecode {
// Provided method
fn decode(data: &[u8], format: Format) -> Result<Self, Error> { ... }
}Expand description
Combined decoding trait that supports both formats.
Provided 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.