pub trait NotEnoughBytesErr {
// Required method
fn not_enough_bytes(
context: &'static str,
received: usize,
expected: usize,
) -> Self;
}
Expand description
Trait for creating “not enough bytes” errors.
Required Methods§
Sourcefn not_enough_bytes(
context: &'static str,
received: usize,
expected: usize,
) -> Self
fn not_enough_bytes( context: &'static str, received: usize, expected: usize, ) -> Self
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.