pub struct UnsignedInt(/* private fields */);
Expand description
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§
Source§impl Clone for UnsignedInt
impl Clone for UnsignedInt
Source§fn clone(&self) -> UnsignedInt
fn clone(&self) -> UnsignedInt
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 UnsignedInt
impl Debug for UnsignedInt
Source§impl Default for UnsignedInt
impl Default for UnsignedInt
Source§fn default() -> UnsignedInt
fn default() -> UnsignedInt
Returns the “default value” for a type. Read more
Source§impl From<UnsignedInt> for usize
impl From<UnsignedInt> for usize
Source§fn from(v: UnsignedInt) -> Self
fn from(v: UnsignedInt) -> Self
Converts to this type from the input type.
Source§impl From<u16> for UnsignedInt
impl From<u16> for UnsignedInt
Source§impl From<u32> for UnsignedInt
impl From<u32> for UnsignedInt
Source§impl From<u8> for UnsignedInt
impl From<u8> for UnsignedInt
Source§impl From<usize> for UnsignedInt
impl From<usize> for UnsignedInt
Source§impl Hash for UnsignedInt
impl Hash for UnsignedInt
Source§impl NumBytes for UnsignedInt
impl NumBytes for UnsignedInt
Source§impl Ord for UnsignedInt
impl Ord for UnsignedInt
Source§fn cmp(&self, other: &UnsignedInt) -> Ordering
fn cmp(&self, other: &UnsignedInt) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for UnsignedInt
impl PartialEq for UnsignedInt
Source§impl PartialOrd for UnsignedInt
impl PartialOrd for UnsignedInt
Source§impl Read for UnsignedInt
impl Read for UnsignedInt
Source§impl Write for UnsignedInt
impl Write for UnsignedInt
impl Eq for UnsignedInt
impl StructuralPartialEq for UnsignedInt
Auto Trait Implementations§
impl Freeze for UnsignedInt
impl RefUnwindSafe for UnsignedInt
impl Send for UnsignedInt
impl Sync for UnsignedInt
impl Unpin for UnsignedInt
impl UnwindSafe for UnsignedInt
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