pub trait Decode: Read {
// Provided method
fn decode_cfg(buf: impl Input, cfg: &Self::Cfg) -> Result<Self, Error> { ... }
}Expand description
Trait combining Read with a check for remaining bytes.
Ensures that all bytes from the input buffer were consumed during decoding.
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".