pub trait DecodeWithVersion: Sized {
// Required method
fn decode_with_version<I: Input>(
extension_version: u8,
input: &mut I,
) -> Result<Self, Error>;
}Expand description
A type that can be decoded from a specific version and a codec::Input.
Required 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.