Struct bird_protocol::types::VarLong
source · [−]pub struct VarLong(pub i64);Tuple Fields
0: i64Trait Implementations
sourceimpl PacketReadable for VarLong
impl PacketReadable for VarLong
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 VarLong
impl PacketWritable for VarLong
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 VarLong
impl USizePossible for VarLong
fn into_usize(self) -> usize
fn from_usize(value: usize) -> Self
impl Copy for VarLong
Auto Trait Implementations
impl RefUnwindSafe for VarLong
impl Send for VarLong
impl Sync for VarLong
impl Unpin for VarLong
impl UnwindSafe for VarLong
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