Trait DecoderVarInt

Source
pub trait DecoderVarInt {
    // Required method
    fn decode_varint<T>(&mut self, src: &mut T) -> Result<(), Error>
       where T: Buf;
}

Required Methods§

Source

fn decode_varint<T>(&mut self, src: &mut T) -> Result<(), Error>
where T: Buf,

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.

Implementations on Foreign Types§

Source§

impl DecoderVarInt for Option<Vec<u8>>

Source§

fn decode_varint<T>(&mut self, src: &mut T) -> Result<(), Error>
where T: Buf,

Source§

impl DecoderVarInt for i64

Source§

fn decode_varint<T>(&mut self, src: &mut T) -> Result<(), Error>
where T: Buf,

Source§

impl DecoderVarInt for Vec<u8>

Source§

fn decode_varint<T>(&mut self, src: &mut T) -> Result<(), Error>
where T: Buf,

Implementors§