pub trait DecodeVarInt: Sized {
// Required method
fn decode_var_int<F: FnMut(usize) -> Result<Option<u8>, E>, E: Display>(
reader: F,
) -> Result<(Self, usize), DecodeVarIntError<E>>;
}Required Methods§
fn decode_var_int<F: FnMut(usize) -> Result<Option<u8>, E>, E: Display>( reader: F, ) -> Result<(Self, usize), DecodeVarIntError<E>>
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.