DecodeVarInt

Trait DecodeVarInt 

Source
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§

Source

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.

Implementors§

Source§

impl<T: From<i32>> DecodeVarInt for T