Struct cubic_protocol::types::VarInt
source · [−]pub struct VarInt(pub i32);
Tuple Fields
0: i32
Trait Implementations
sourceimpl PacketReadable for VarInt
impl PacketReadable for VarInt
fn read<'life0, 'async_trait>(
input: &'life0 mut impl 'async_trait + InputPacketBytes
) -> Pin<Box<dyn Future<Output = PacketReadableResult<Self>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
sourceimpl PacketWritable for VarInt
impl PacketWritable for VarInt
fn write<'life0, 'async_trait>(
self,
output: &'life0 mut impl 'async_trait + OutputPacketBytes
) -> Pin<Box<dyn Future<Output = PacketWritableResult> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
sourceimpl USizePossible for VarInt
impl USizePossible for VarInt
fn into_usize(self) -> usize
fn from_usize(value: usize) -> Self
impl Copy for VarInt
Auto Trait Implementations
impl RefUnwindSafe for VarInt
impl Send for VarInt
impl Sync for VarInt
impl Unpin for VarInt
impl UnwindSafe for VarInt
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more