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