pub trait DecodeLength {
// Required method
fn len(self_encoded: &[u8]) -> Result<usize, Error>;
}
Expand description
Trait that allows the length of a collection to be read, without having to read and decode the entire elements.
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.