Struct VarLong
pub struct VarLong(pub i64);Expand description
An i64 written as a VarLong.
Tuple Fields§
§0: i64Trait Implementations§
impl Copy for VarLong
impl Eq for VarLong
§impl PayloadCodec for VarLong
impl PayloadCodec for VarLong
§fn encode(&self, out: &mut PayloadWriter)
fn encode(&self, out: &mut PayloadWriter)
Writes the value. A failure is recorded on the writer.
§fn decode(input: &mut PayloadReader<'_>) -> Result<VarLong, PayloadDecodeError>
fn decode(input: &mut PayloadReader<'_>) -> Result<VarLong, PayloadDecodeError>
Reads one value, leaving any following bytes to the caller.
impl StructuralPartialEq for VarLong
Auto Trait Implementations§
impl Freeze for VarLong
impl RefUnwindSafe for VarLong
impl Send for VarLong
impl Sync for VarLong
impl Unpin for VarLong
impl UnsafeUnpin for VarLong
impl UnwindSafe for VarLong
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more