pub struct VariableByteInt(pub u32);
Tuple Fields§
§0: u32
Implementations§
Source§impl VariableByteInt
impl VariableByteInt
pub fn encode_to_bytes(&self, bytes: &mut BytesMut)
pub fn calculate_size(&self, protocol_version: ProtocolVersion) -> u32
Trait Implementations§
Source§impl Clone for VariableByteInt
impl Clone for VariableByteInt
Source§fn clone(&self) -> VariableByteInt
fn clone(&self) -> VariableByteInt
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for VariableByteInt
impl Debug for VariableByteInt
Source§impl PartialEq for VariableByteInt
impl PartialEq for VariableByteInt
impl StructuralPartialEq for VariableByteInt
Auto Trait Implementations§
impl Freeze for VariableByteInt
impl RefUnwindSafe for VariableByteInt
impl Send for VariableByteInt
impl Sync for VariableByteInt
impl Unpin for VariableByteInt
impl UnwindSafe for VariableByteInt
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