[−][src]Struct extended_primitives::varint::VarInt
Methods
impl VarInt
[src]
pub fn encoded_size(&self) -> u32
[src]
pub fn to_u64(self) -> u64
[src]
pub fn as_u64(&self) -> u64
[src]
Trait Implementations
impl Clone for VarInt
[src]
impl Debug for VarInt
[src]
impl Eq for VarInt
[src]
impl From<u16> for VarInt
[src]
impl From<u32> for VarInt
[src]
impl From<u64> for VarInt
[src]
impl From<u8> for VarInt
[src]
impl From<usize> for VarInt
[src]
impl Ord for VarInt
[src]
fn cmp(&self, other: &VarInt) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<VarInt> for VarInt
[src]
impl PartialOrd<VarInt> for VarInt
[src]
fn partial_cmp(&self, other: &VarInt) -> Option<Ordering>
[src]
fn lt(&self, other: &VarInt) -> bool
[src]
fn le(&self, other: &VarInt) -> bool
[src]
fn gt(&self, other: &VarInt) -> bool
[src]
fn ge(&self, other: &VarInt) -> bool
[src]
impl StructuralEq for VarInt
[src]
impl StructuralPartialEq for VarInt
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,