[−][src]Struct eosio::UnsignedInt
Variable Length Unsigned Integer. This provides more efficient
serialization of 32-bit unsigned int. It serialuzes a 32-bit unsigned
integer in as few bytes as possible. UnsignedInt
is unsigned and uses
VLQ or Base-128 encoding
https://github.com/EOSIO/eosio.cdt/blob/4985359a30da1f883418b7133593f835927b8046/libraries/eosiolib/core/eosio/varint.hpp#L15-L237
Trait Implementations
impl Clone for UnsignedInt
[src]
fn clone(&self) -> UnsignedInt
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for UnsignedInt
[src]
impl Default for UnsignedInt
[src]
fn default() -> UnsignedInt
[src]
impl Eq for UnsignedInt
[src]
impl From<UnsignedInt> for usize
[src]
#[must_use]
fn from(v: UnsignedInt) -> Self
[src]
impl From<u16> for UnsignedInt
[src]
impl From<u32> for UnsignedInt
[src]
impl From<u8> for UnsignedInt
[src]
impl From<usize> for UnsignedInt
[src]
impl Hash for UnsignedInt
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl NumBytes for UnsignedInt
[src]
impl Ord for UnsignedInt
[src]
fn cmp(&self, other: &UnsignedInt) -> Ordering
[src]
#[must_use]
fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]
fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<UnsignedInt> for UnsignedInt
[src]
fn eq(&self, other: &UnsignedInt) -> bool
[src]
fn ne(&self, other: &UnsignedInt) -> bool
[src]
impl PartialOrd<UnsignedInt> for UnsignedInt
[src]
fn partial_cmp(&self, other: &UnsignedInt) -> Option<Ordering>
[src]
fn lt(&self, other: &UnsignedInt) -> bool
[src]
fn le(&self, other: &UnsignedInt) -> bool
[src]
fn gt(&self, other: &UnsignedInt) -> bool
[src]
fn ge(&self, other: &UnsignedInt) -> bool
[src]
impl Read for UnsignedInt
[src]
fn read(bytes: &[u8], pos: &mut usize) -> Result<Self, ReadError>
[src]
fn unpack<T: AsRef<[u8]>>(bytes: T) -> Result<Self, ReadError>
[src]
impl StructuralEq for UnsignedInt
[src]
impl StructuralPartialEq for UnsignedInt
[src]
impl Write for UnsignedInt
[src]
fn write(&self, bytes: &mut [u8], pos: &mut usize) -> Result<(), WriteError>
[src]
fn pack(&self) -> Result<Vec<u8>, WriteError>
[src]
Auto Trait Implementations
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>,