pub struct varu64(pub u64);
Expand description
A variable length integer type that can be up to 64 bits.
This is a helper type for deriving the BinaryIo
trait.
You should not use this type directly, if you are reading or writing a variable length integer, use the
ByteWriter
orByteReader
and use the correspondingread_var_u64
orwrite_var_u64
methods.
Tuple Fields§
§0: u64
Implementations§
Trait Implementations§
Source§impl Ord for varu64
impl Ord for varu64
Source§impl PartialOrd for varu64
impl PartialOrd for varu64
Source§impl Writer for varu64
impl Writer for varu64
Source§fn write_to_bytes(&self) -> Result<ByteWriter, Error>
fn write_to_bytes(&self) -> Result<ByteWriter, Error>
This is a utility function to write
Self
to a ByteWriter
without
needing to create a ByteWriter
first.impl Copy for varu64
impl Eq for varu64
impl StructuralPartialEq for varu64
Auto Trait Implementations§
impl Freeze for varu64
impl RefUnwindSafe for varu64
impl Send for varu64
impl Sync for varu64
impl Unpin for varu64
impl UnwindSafe for varu64
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