[−][src]Struct eosio::SignedInt
Variable Length Signed Integer. This provides more efficient serialization
of 32-bit signed int. It serializes a 32-bit signed integer in as few bytes
as possible. SignedInt is signed and uses
Zig-Zag encoding
https://github.com/EOSIO/eosio.cdt/blob/4985359a30da1f883418b7133593f835927b8046/libraries/eosiolib/core/eosio/varint.hpp#L239-L465
Trait Implementations
impl Clone for SignedInt[src]
fn clone(&self) -> SignedInt[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for SignedInt[src]
impl Default for SignedInt[src]
impl Eq for SignedInt[src]
impl From<SignedInt> for isize[src]
impl From<SignedInt> for i32[src]
impl From<i16> for SignedInt[src]
impl From<i32> for SignedInt[src]
impl From<i8> for SignedInt[src]
impl From<isize> for SignedInt[src]
impl Hash for SignedInt[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 SignedInt[src]
impl Ord for SignedInt[src]
fn cmp(&self, other: &SignedInt) -> Ordering[src]
fn max(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> Self1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self[src]
impl PartialEq<SignedInt> for SignedInt[src]
impl PartialOrd<SignedInt> for SignedInt[src]
fn partial_cmp(&self, other: &SignedInt) -> Option<Ordering>[src]
fn lt(&self, other: &SignedInt) -> bool[src]
fn le(&self, other: &SignedInt) -> bool[src]
fn gt(&self, other: &SignedInt) -> bool[src]
fn ge(&self, other: &SignedInt) -> bool[src]
impl Read for SignedInt[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 SignedInt[src]
impl StructuralPartialEq for SignedInt[src]
impl Write for SignedInt[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>,