azalea_buf

Trait McBufVarReadable

Source
pub trait McBufVarReadable
where Self: Sized,
{ // Required method fn var_read_from(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>; }

Required Methods§

Source

fn var_read_from(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>

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 McBufVarReadable for i32

Source§

fn var_read_from(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>

Read a single varint from the reader and return the value

Source§

impl McBufVarReadable for i64

Source§

fn var_read_from(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>

Source§

impl McBufVarReadable for u16

Source§

fn var_read_from(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>

Source§

impl McBufVarReadable for u32

Source§

fn var_read_from(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>

Source§

impl McBufVarReadable for u64

Source§

fn var_read_from(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>

Source§

impl<K: McBufReadable + Send + Eq + Hash, V: McBufVarReadable + Send> McBufVarReadable for HashMap<K, V>

Source§

fn var_read_from(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>

Source§

impl<T: McBufVarReadable> McBufVarReadable for Option<T>

Source§

fn var_read_from(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>

Source§

impl<T: McBufVarReadable> McBufVarReadable for Vec<T>

Source§

fn var_read_from(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>

Implementors§