pub trait AzaleaReadVarwhere
Self: Sized,{
// Required method
fn azalea_read_var(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>;
}
Required Methods§
fn azalea_read_var(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 AzaleaReadVar for i32
impl AzaleaReadVar for i32
Source§fn azalea_read_var(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>
fn azalea_read_var(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>
Read a single varint from the reader and return the value