Struct uint_zigzag::Uint
source · [−]pub struct Uint(pub u128);Expand description
Uint implements zig-zag encoding to represent integers as binary sequences
Tuple Fields
0: u128Implementations
sourceimpl Uint
impl Uint
sourcepub fn peek(value: &[u8]) -> Option<usize>
pub fn peek(value: &[u8]) -> Option<usize>
Peek returns the number of bytes that would be read or None if no Uint cannot be read
use uint_zigzag::Uint;
let buffer = [0x34u8];
let out = Uint::peek(&buffer);
assert!(out.is_some());
let out = Uint::peek(&[]);
assert!(out.is_none());sourcepub fn to_bytes<M: AsMut<[u8]>>(&self, buffer: M)
pub fn to_bytes<M: AsMut<[u8]>>(&self, buffer: M)
Zig-zag encoding, any length from 1 to MAX_BYTES into buffer buffer must be big enough to hold the result
use uint_zigzag::Uint;
let mut buffer = [0u8, 0u8];
let mut u = Uint::from(127);
u.to_bytes(&mut buffer);
assert_eq!(buffer, [0x7Fu8, 0u8]);
u = Uint::from(128);
u.to_bytes(&mut buffer);
assert_eq!(buffer, [0x80u8, 1u8]);sourcepub fn to_bytes_with_length(self, buffer: &mut [u8]) -> usize
pub fn to_bytes_with_length(self, buffer: &mut [u8]) -> usize
Same as to_bytes except it returns how many bytes were actually used
sourcepub fn to_vec(&self) -> Vec<u8>
Available on crate features alloc or std only.
pub fn to_vec(&self) -> Vec<u8>
alloc or std only.Zig-zag encoding, any length from 1 to MAX_BYTES
use uint_zigzag::Uint;
let u = Uint(345678);
let out = u.to_vec();
assert_eq!(out.as_slice(), &[206, 140, 21]);
let u = Uint(2048);
let out = u.to_vec();
assert_eq!(out.as_slice(), &[128, 16]);Trait Implementations
sourceimpl AddAssign<Uint> for Uint
impl AddAssign<Uint> for Uint
sourcefn add_assign(&mut self, rhs: Uint)
fn add_assign(&mut self, rhs: Uint)
Performs the += operation. Read more
sourceimpl AddAssign<i128> for Uint
impl AddAssign<i128> for Uint
sourcefn add_assign(&mut self, rhs: i128)
fn add_assign(&mut self, rhs: i128)
Performs the += operation. Read more
sourceimpl AddAssign<i16> for Uint
impl AddAssign<i16> for Uint
sourcefn add_assign(&mut self, rhs: i16)
fn add_assign(&mut self, rhs: i16)
Performs the += operation. Read more
sourceimpl AddAssign<i32> for Uint
impl AddAssign<i32> for Uint
sourcefn add_assign(&mut self, rhs: i32)
fn add_assign(&mut self, rhs: i32)
Performs the += operation. Read more
sourceimpl AddAssign<i64> for Uint
impl AddAssign<i64> for Uint
sourcefn add_assign(&mut self, rhs: i64)
fn add_assign(&mut self, rhs: i64)
Performs the += operation. Read more
sourceimpl AddAssign<i8> for Uint
impl AddAssign<i8> for Uint
sourcefn add_assign(&mut self, rhs: i8)
fn add_assign(&mut self, rhs: i8)
Performs the += operation. Read more
sourceimpl AddAssign<isize> for Uint
impl AddAssign<isize> for Uint
sourcefn add_assign(&mut self, rhs: isize)
fn add_assign(&mut self, rhs: isize)
Performs the += operation. Read more
sourceimpl AddAssign<u128> for Uint
impl AddAssign<u128> for Uint
sourcefn add_assign(&mut self, rhs: u128)
fn add_assign(&mut self, rhs: u128)
Performs the += operation. Read more
sourceimpl AddAssign<u16> for Uint
impl AddAssign<u16> for Uint
sourcefn add_assign(&mut self, rhs: u16)
fn add_assign(&mut self, rhs: u16)
Performs the += operation. Read more
sourceimpl AddAssign<u32> for Uint
impl AddAssign<u32> for Uint
sourcefn add_assign(&mut self, rhs: u32)
fn add_assign(&mut self, rhs: u32)
Performs the += operation. Read more
sourceimpl AddAssign<u64> for Uint
impl AddAssign<u64> for Uint
sourcefn add_assign(&mut self, rhs: u64)
fn add_assign(&mut self, rhs: u64)
Performs the += operation. Read more
sourceimpl AddAssign<u8> for Uint
impl AddAssign<u8> for Uint
sourcefn add_assign(&mut self, rhs: u8)
fn add_assign(&mut self, rhs: u8)
Performs the += operation. Read more
sourceimpl AddAssign<usize> for Uint
impl AddAssign<usize> for Uint
sourcefn add_assign(&mut self, rhs: usize)
fn add_assign(&mut self, rhs: usize)
Performs the += operation. Read more
sourceimpl BitAndAssign<Uint> for Uint
impl BitAndAssign<Uint> for Uint
sourcefn bitand_assign(&mut self, rhs: Uint)
fn bitand_assign(&mut self, rhs: Uint)
Performs the &= operation. Read more
sourceimpl BitAndAssign<i128> for Uint
impl BitAndAssign<i128> for Uint
sourcefn bitand_assign(&mut self, rhs: i128)
fn bitand_assign(&mut self, rhs: i128)
Performs the &= operation. Read more
sourceimpl BitAndAssign<i16> for Uint
impl BitAndAssign<i16> for Uint
sourcefn bitand_assign(&mut self, rhs: i16)
fn bitand_assign(&mut self, rhs: i16)
Performs the &= operation. Read more
sourceimpl BitAndAssign<i32> for Uint
impl BitAndAssign<i32> for Uint
sourcefn bitand_assign(&mut self, rhs: i32)
fn bitand_assign(&mut self, rhs: i32)
Performs the &= operation. Read more
sourceimpl BitAndAssign<i64> for Uint
impl BitAndAssign<i64> for Uint
sourcefn bitand_assign(&mut self, rhs: i64)
fn bitand_assign(&mut self, rhs: i64)
Performs the &= operation. Read more
sourceimpl BitAndAssign<i8> for Uint
impl BitAndAssign<i8> for Uint
sourcefn bitand_assign(&mut self, rhs: i8)
fn bitand_assign(&mut self, rhs: i8)
Performs the &= operation. Read more
sourceimpl BitAndAssign<isize> for Uint
impl BitAndAssign<isize> for Uint
sourcefn bitand_assign(&mut self, rhs: isize)
fn bitand_assign(&mut self, rhs: isize)
Performs the &= operation. Read more
sourceimpl BitAndAssign<u128> for Uint
impl BitAndAssign<u128> for Uint
sourcefn bitand_assign(&mut self, rhs: u128)
fn bitand_assign(&mut self, rhs: u128)
Performs the &= operation. Read more
sourceimpl BitAndAssign<u16> for Uint
impl BitAndAssign<u16> for Uint
sourcefn bitand_assign(&mut self, rhs: u16)
fn bitand_assign(&mut self, rhs: u16)
Performs the &= operation. Read more
sourceimpl BitAndAssign<u32> for Uint
impl BitAndAssign<u32> for Uint
sourcefn bitand_assign(&mut self, rhs: u32)
fn bitand_assign(&mut self, rhs: u32)
Performs the &= operation. Read more
sourceimpl BitAndAssign<u64> for Uint
impl BitAndAssign<u64> for Uint
sourcefn bitand_assign(&mut self, rhs: u64)
fn bitand_assign(&mut self, rhs: u64)
Performs the &= operation. Read more
sourceimpl BitAndAssign<u8> for Uint
impl BitAndAssign<u8> for Uint
sourcefn bitand_assign(&mut self, rhs: u8)
fn bitand_assign(&mut self, rhs: u8)
Performs the &= operation. Read more
sourceimpl BitAndAssign<usize> for Uint
impl BitAndAssign<usize> for Uint
sourcefn bitand_assign(&mut self, rhs: usize)
fn bitand_assign(&mut self, rhs: usize)
Performs the &= operation. Read more
sourceimpl BitOrAssign<Uint> for Uint
impl BitOrAssign<Uint> for Uint
sourcefn bitor_assign(&mut self, rhs: Uint)
fn bitor_assign(&mut self, rhs: Uint)
Performs the |= operation. Read more
sourceimpl BitOrAssign<i128> for Uint
impl BitOrAssign<i128> for Uint
sourcefn bitor_assign(&mut self, rhs: i128)
fn bitor_assign(&mut self, rhs: i128)
Performs the |= operation. Read more
sourceimpl BitOrAssign<i16> for Uint
impl BitOrAssign<i16> for Uint
sourcefn bitor_assign(&mut self, rhs: i16)
fn bitor_assign(&mut self, rhs: i16)
Performs the |= operation. Read more
sourceimpl BitOrAssign<i32> for Uint
impl BitOrAssign<i32> for Uint
sourcefn bitor_assign(&mut self, rhs: i32)
fn bitor_assign(&mut self, rhs: i32)
Performs the |= operation. Read more
sourceimpl BitOrAssign<i64> for Uint
impl BitOrAssign<i64> for Uint
sourcefn bitor_assign(&mut self, rhs: i64)
fn bitor_assign(&mut self, rhs: i64)
Performs the |= operation. Read more
sourceimpl BitOrAssign<i8> for Uint
impl BitOrAssign<i8> for Uint
sourcefn bitor_assign(&mut self, rhs: i8)
fn bitor_assign(&mut self, rhs: i8)
Performs the |= operation. Read more
sourceimpl BitOrAssign<isize> for Uint
impl BitOrAssign<isize> for Uint
sourcefn bitor_assign(&mut self, rhs: isize)
fn bitor_assign(&mut self, rhs: isize)
Performs the |= operation. Read more
sourceimpl BitOrAssign<u128> for Uint
impl BitOrAssign<u128> for Uint
sourcefn bitor_assign(&mut self, rhs: u128)
fn bitor_assign(&mut self, rhs: u128)
Performs the |= operation. Read more
sourceimpl BitOrAssign<u16> for Uint
impl BitOrAssign<u16> for Uint
sourcefn bitor_assign(&mut self, rhs: u16)
fn bitor_assign(&mut self, rhs: u16)
Performs the |= operation. Read more
sourceimpl BitOrAssign<u32> for Uint
impl BitOrAssign<u32> for Uint
sourcefn bitor_assign(&mut self, rhs: u32)
fn bitor_assign(&mut self, rhs: u32)
Performs the |= operation. Read more
sourceimpl BitOrAssign<u64> for Uint
impl BitOrAssign<u64> for Uint
sourcefn bitor_assign(&mut self, rhs: u64)
fn bitor_assign(&mut self, rhs: u64)
Performs the |= operation. Read more
sourceimpl BitOrAssign<u8> for Uint
impl BitOrAssign<u8> for Uint
sourcefn bitor_assign(&mut self, rhs: u8)
fn bitor_assign(&mut self, rhs: u8)
Performs the |= operation. Read more
sourceimpl BitOrAssign<usize> for Uint
impl BitOrAssign<usize> for Uint
sourcefn bitor_assign(&mut self, rhs: usize)
fn bitor_assign(&mut self, rhs: usize)
Performs the |= operation. Read more
sourceimpl BitXorAssign<Uint> for Uint
impl BitXorAssign<Uint> for Uint
sourcefn bitxor_assign(&mut self, rhs: Uint)
fn bitxor_assign(&mut self, rhs: Uint)
Performs the ^= operation. Read more
sourceimpl BitXorAssign<i128> for Uint
impl BitXorAssign<i128> for Uint
sourcefn bitxor_assign(&mut self, rhs: i128)
fn bitxor_assign(&mut self, rhs: i128)
Performs the ^= operation. Read more
sourceimpl BitXorAssign<i16> for Uint
impl BitXorAssign<i16> for Uint
sourcefn bitxor_assign(&mut self, rhs: i16)
fn bitxor_assign(&mut self, rhs: i16)
Performs the ^= operation. Read more
sourceimpl BitXorAssign<i32> for Uint
impl BitXorAssign<i32> for Uint
sourcefn bitxor_assign(&mut self, rhs: i32)
fn bitxor_assign(&mut self, rhs: i32)
Performs the ^= operation. Read more
sourceimpl BitXorAssign<i64> for Uint
impl BitXorAssign<i64> for Uint
sourcefn bitxor_assign(&mut self, rhs: i64)
fn bitxor_assign(&mut self, rhs: i64)
Performs the ^= operation. Read more
sourceimpl BitXorAssign<i8> for Uint
impl BitXorAssign<i8> for Uint
sourcefn bitxor_assign(&mut self, rhs: i8)
fn bitxor_assign(&mut self, rhs: i8)
Performs the ^= operation. Read more
sourceimpl BitXorAssign<isize> for Uint
impl BitXorAssign<isize> for Uint
sourcefn bitxor_assign(&mut self, rhs: isize)
fn bitxor_assign(&mut self, rhs: isize)
Performs the ^= operation. Read more
sourceimpl BitXorAssign<u128> for Uint
impl BitXorAssign<u128> for Uint
sourcefn bitxor_assign(&mut self, rhs: u128)
fn bitxor_assign(&mut self, rhs: u128)
Performs the ^= operation. Read more
sourceimpl BitXorAssign<u16> for Uint
impl BitXorAssign<u16> for Uint
sourcefn bitxor_assign(&mut self, rhs: u16)
fn bitxor_assign(&mut self, rhs: u16)
Performs the ^= operation. Read more
sourceimpl BitXorAssign<u32> for Uint
impl BitXorAssign<u32> for Uint
sourcefn bitxor_assign(&mut self, rhs: u32)
fn bitxor_assign(&mut self, rhs: u32)
Performs the ^= operation. Read more
sourceimpl BitXorAssign<u64> for Uint
impl BitXorAssign<u64> for Uint
sourcefn bitxor_assign(&mut self, rhs: u64)
fn bitxor_assign(&mut self, rhs: u64)
Performs the ^= operation. Read more
sourceimpl BitXorAssign<u8> for Uint
impl BitXorAssign<u8> for Uint
sourcefn bitxor_assign(&mut self, rhs: u8)
fn bitxor_assign(&mut self, rhs: u8)
Performs the ^= operation. Read more
sourceimpl BitXorAssign<usize> for Uint
impl BitXorAssign<usize> for Uint
sourcefn bitxor_assign(&mut self, rhs: usize)
fn bitxor_assign(&mut self, rhs: usize)
Performs the ^= operation. Read more
sourceimpl<'de> Deserialize<'de> for Uint
Available on crate feature serde only.
impl<'de> Deserialize<'de> for Uint
serde only.sourcefn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
sourceimpl DivAssign<Uint> for Uint
impl DivAssign<Uint> for Uint
sourcefn div_assign(&mut self, rhs: Uint)
fn div_assign(&mut self, rhs: Uint)
Performs the /= operation. Read more
sourceimpl DivAssign<i128> for Uint
impl DivAssign<i128> for Uint
sourcefn div_assign(&mut self, rhs: i128)
fn div_assign(&mut self, rhs: i128)
Performs the /= operation. Read more
sourceimpl DivAssign<i16> for Uint
impl DivAssign<i16> for Uint
sourcefn div_assign(&mut self, rhs: i16)
fn div_assign(&mut self, rhs: i16)
Performs the /= operation. Read more
sourceimpl DivAssign<i32> for Uint
impl DivAssign<i32> for Uint
sourcefn div_assign(&mut self, rhs: i32)
fn div_assign(&mut self, rhs: i32)
Performs the /= operation. Read more
sourceimpl DivAssign<i64> for Uint
impl DivAssign<i64> for Uint
sourcefn div_assign(&mut self, rhs: i64)
fn div_assign(&mut self, rhs: i64)
Performs the /= operation. Read more
sourceimpl DivAssign<i8> for Uint
impl DivAssign<i8> for Uint
sourcefn div_assign(&mut self, rhs: i8)
fn div_assign(&mut self, rhs: i8)
Performs the /= operation. Read more
sourceimpl DivAssign<isize> for Uint
impl DivAssign<isize> for Uint
sourcefn div_assign(&mut self, rhs: isize)
fn div_assign(&mut self, rhs: isize)
Performs the /= operation. Read more
sourceimpl DivAssign<u128> for Uint
impl DivAssign<u128> for Uint
sourcefn div_assign(&mut self, rhs: u128)
fn div_assign(&mut self, rhs: u128)
Performs the /= operation. Read more
sourceimpl DivAssign<u16> for Uint
impl DivAssign<u16> for Uint
sourcefn div_assign(&mut self, rhs: u16)
fn div_assign(&mut self, rhs: u16)
Performs the /= operation. Read more
sourceimpl DivAssign<u32> for Uint
impl DivAssign<u32> for Uint
sourcefn div_assign(&mut self, rhs: u32)
fn div_assign(&mut self, rhs: u32)
Performs the /= operation. Read more
sourceimpl DivAssign<u64> for Uint
impl DivAssign<u64> for Uint
sourcefn div_assign(&mut self, rhs: u64)
fn div_assign(&mut self, rhs: u64)
Performs the /= operation. Read more
sourceimpl DivAssign<u8> for Uint
impl DivAssign<u8> for Uint
sourcefn div_assign(&mut self, rhs: u8)
fn div_assign(&mut self, rhs: u8)
Performs the /= operation. Read more
sourceimpl DivAssign<usize> for Uint
impl DivAssign<usize> for Uint
sourcefn div_assign(&mut self, rhs: usize)
fn div_assign(&mut self, rhs: usize)
Performs the /= operation. Read more
sourceimpl MulAssign<Uint> for Uint
impl MulAssign<Uint> for Uint
sourcefn mul_assign(&mut self, rhs: Uint)
fn mul_assign(&mut self, rhs: Uint)
Performs the *= operation. Read more
sourceimpl MulAssign<i128> for Uint
impl MulAssign<i128> for Uint
sourcefn mul_assign(&mut self, rhs: i128)
fn mul_assign(&mut self, rhs: i128)
Performs the *= operation. Read more
sourceimpl MulAssign<i16> for Uint
impl MulAssign<i16> for Uint
sourcefn mul_assign(&mut self, rhs: i16)
fn mul_assign(&mut self, rhs: i16)
Performs the *= operation. Read more
sourceimpl MulAssign<i32> for Uint
impl MulAssign<i32> for Uint
sourcefn mul_assign(&mut self, rhs: i32)
fn mul_assign(&mut self, rhs: i32)
Performs the *= operation. Read more
sourceimpl MulAssign<i64> for Uint
impl MulAssign<i64> for Uint
sourcefn mul_assign(&mut self, rhs: i64)
fn mul_assign(&mut self, rhs: i64)
Performs the *= operation. Read more
sourceimpl MulAssign<i8> for Uint
impl MulAssign<i8> for Uint
sourcefn mul_assign(&mut self, rhs: i8)
fn mul_assign(&mut self, rhs: i8)
Performs the *= operation. Read more
sourceimpl MulAssign<isize> for Uint
impl MulAssign<isize> for Uint
sourcefn mul_assign(&mut self, rhs: isize)
fn mul_assign(&mut self, rhs: isize)
Performs the *= operation. Read more
sourceimpl MulAssign<u128> for Uint
impl MulAssign<u128> for Uint
sourcefn mul_assign(&mut self, rhs: u128)
fn mul_assign(&mut self, rhs: u128)
Performs the *= operation. Read more
sourceimpl MulAssign<u16> for Uint
impl MulAssign<u16> for Uint
sourcefn mul_assign(&mut self, rhs: u16)
fn mul_assign(&mut self, rhs: u16)
Performs the *= operation. Read more
sourceimpl MulAssign<u32> for Uint
impl MulAssign<u32> for Uint
sourcefn mul_assign(&mut self, rhs: u32)
fn mul_assign(&mut self, rhs: u32)
Performs the *= operation. Read more
sourceimpl MulAssign<u64> for Uint
impl MulAssign<u64> for Uint
sourcefn mul_assign(&mut self, rhs: u64)
fn mul_assign(&mut self, rhs: u64)
Performs the *= operation. Read more
sourceimpl MulAssign<u8> for Uint
impl MulAssign<u8> for Uint
sourcefn mul_assign(&mut self, rhs: u8)
fn mul_assign(&mut self, rhs: u8)
Performs the *= operation. Read more
sourceimpl MulAssign<usize> for Uint
impl MulAssign<usize> for Uint
sourcefn mul_assign(&mut self, rhs: usize)
fn mul_assign(&mut self, rhs: usize)
Performs the *= operation. Read more
sourceimpl Ord for Uint
impl Ord for Uint
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<Uint> for Uint
impl PartialEq<Uint> for Uint
sourceimpl PartialOrd<Uint> for Uint
impl PartialOrd<Uint> for Uint
sourcefn partial_cmp(&self, other: &Uint) -> Option<Ordering>
fn partial_cmp(&self, other: &Uint) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
sourceimpl RemAssign<Uint> for Uint
impl RemAssign<Uint> for Uint
sourcefn rem_assign(&mut self, rhs: Uint)
fn rem_assign(&mut self, rhs: Uint)
Performs the %= operation. Read more
sourceimpl RemAssign<i128> for Uint
impl RemAssign<i128> for Uint
sourcefn rem_assign(&mut self, rhs: i128)
fn rem_assign(&mut self, rhs: i128)
Performs the %= operation. Read more
sourceimpl RemAssign<i16> for Uint
impl RemAssign<i16> for Uint
sourcefn rem_assign(&mut self, rhs: i16)
fn rem_assign(&mut self, rhs: i16)
Performs the %= operation. Read more
sourceimpl RemAssign<i32> for Uint
impl RemAssign<i32> for Uint
sourcefn rem_assign(&mut self, rhs: i32)
fn rem_assign(&mut self, rhs: i32)
Performs the %= operation. Read more
sourceimpl RemAssign<i64> for Uint
impl RemAssign<i64> for Uint
sourcefn rem_assign(&mut self, rhs: i64)
fn rem_assign(&mut self, rhs: i64)
Performs the %= operation. Read more
sourceimpl RemAssign<i8> for Uint
impl RemAssign<i8> for Uint
sourcefn rem_assign(&mut self, rhs: i8)
fn rem_assign(&mut self, rhs: i8)
Performs the %= operation. Read more
sourceimpl RemAssign<isize> for Uint
impl RemAssign<isize> for Uint
sourcefn rem_assign(&mut self, rhs: isize)
fn rem_assign(&mut self, rhs: isize)
Performs the %= operation. Read more
sourceimpl RemAssign<u128> for Uint
impl RemAssign<u128> for Uint
sourcefn rem_assign(&mut self, rhs: u128)
fn rem_assign(&mut self, rhs: u128)
Performs the %= operation. Read more
sourceimpl RemAssign<u16> for Uint
impl RemAssign<u16> for Uint
sourcefn rem_assign(&mut self, rhs: u16)
fn rem_assign(&mut self, rhs: u16)
Performs the %= operation. Read more
sourceimpl RemAssign<u32> for Uint
impl RemAssign<u32> for Uint
sourcefn rem_assign(&mut self, rhs: u32)
fn rem_assign(&mut self, rhs: u32)
Performs the %= operation. Read more
sourceimpl RemAssign<u64> for Uint
impl RemAssign<u64> for Uint
sourcefn rem_assign(&mut self, rhs: u64)
fn rem_assign(&mut self, rhs: u64)
Performs the %= operation. Read more
sourceimpl RemAssign<u8> for Uint
impl RemAssign<u8> for Uint
sourcefn rem_assign(&mut self, rhs: u8)
fn rem_assign(&mut self, rhs: u8)
Performs the %= operation. Read more
sourceimpl RemAssign<usize> for Uint
impl RemAssign<usize> for Uint
sourcefn rem_assign(&mut self, rhs: usize)
fn rem_assign(&mut self, rhs: usize)
Performs the %= operation. Read more
sourceimpl ShlAssign<Uint> for Uint
impl ShlAssign<Uint> for Uint
sourcefn shl_assign(&mut self, rhs: Uint)
fn shl_assign(&mut self, rhs: Uint)
Performs the <<= operation. Read more
sourceimpl ShlAssign<i128> for Uint
impl ShlAssign<i128> for Uint
sourcefn shl_assign(&mut self, rhs: i128)
fn shl_assign(&mut self, rhs: i128)
Performs the <<= operation. Read more
sourceimpl ShlAssign<i16> for Uint
impl ShlAssign<i16> for Uint
sourcefn shl_assign(&mut self, rhs: i16)
fn shl_assign(&mut self, rhs: i16)
Performs the <<= operation. Read more
sourceimpl ShlAssign<i32> for Uint
impl ShlAssign<i32> for Uint
sourcefn shl_assign(&mut self, rhs: i32)
fn shl_assign(&mut self, rhs: i32)
Performs the <<= operation. Read more
sourceimpl ShlAssign<i64> for Uint
impl ShlAssign<i64> for Uint
sourcefn shl_assign(&mut self, rhs: i64)
fn shl_assign(&mut self, rhs: i64)
Performs the <<= operation. Read more
sourceimpl ShlAssign<i8> for Uint
impl ShlAssign<i8> for Uint
sourcefn shl_assign(&mut self, rhs: i8)
fn shl_assign(&mut self, rhs: i8)
Performs the <<= operation. Read more
sourceimpl ShlAssign<isize> for Uint
impl ShlAssign<isize> for Uint
sourcefn shl_assign(&mut self, rhs: isize)
fn shl_assign(&mut self, rhs: isize)
Performs the <<= operation. Read more
sourceimpl ShlAssign<u128> for Uint
impl ShlAssign<u128> for Uint
sourcefn shl_assign(&mut self, rhs: u128)
fn shl_assign(&mut self, rhs: u128)
Performs the <<= operation. Read more
sourceimpl ShlAssign<u16> for Uint
impl ShlAssign<u16> for Uint
sourcefn shl_assign(&mut self, rhs: u16)
fn shl_assign(&mut self, rhs: u16)
Performs the <<= operation. Read more
sourceimpl ShlAssign<u32> for Uint
impl ShlAssign<u32> for Uint
sourcefn shl_assign(&mut self, rhs: u32)
fn shl_assign(&mut self, rhs: u32)
Performs the <<= operation. Read more
sourceimpl ShlAssign<u64> for Uint
impl ShlAssign<u64> for Uint
sourcefn shl_assign(&mut self, rhs: u64)
fn shl_assign(&mut self, rhs: u64)
Performs the <<= operation. Read more
sourceimpl ShlAssign<u8> for Uint
impl ShlAssign<u8> for Uint
sourcefn shl_assign(&mut self, rhs: u8)
fn shl_assign(&mut self, rhs: u8)
Performs the <<= operation. Read more
sourceimpl ShlAssign<usize> for Uint
impl ShlAssign<usize> for Uint
sourcefn shl_assign(&mut self, rhs: usize)
fn shl_assign(&mut self, rhs: usize)
Performs the <<= operation. Read more
sourceimpl ShrAssign<Uint> for Uint
impl ShrAssign<Uint> for Uint
sourcefn shr_assign(&mut self, rhs: Uint)
fn shr_assign(&mut self, rhs: Uint)
Performs the >>= operation. Read more
sourceimpl ShrAssign<i128> for Uint
impl ShrAssign<i128> for Uint
sourcefn shr_assign(&mut self, rhs: i128)
fn shr_assign(&mut self, rhs: i128)
Performs the >>= operation. Read more
sourceimpl ShrAssign<i16> for Uint
impl ShrAssign<i16> for Uint
sourcefn shr_assign(&mut self, rhs: i16)
fn shr_assign(&mut self, rhs: i16)
Performs the >>= operation. Read more
sourceimpl ShrAssign<i32> for Uint
impl ShrAssign<i32> for Uint
sourcefn shr_assign(&mut self, rhs: i32)
fn shr_assign(&mut self, rhs: i32)
Performs the >>= operation. Read more
sourceimpl ShrAssign<i64> for Uint
impl ShrAssign<i64> for Uint
sourcefn shr_assign(&mut self, rhs: i64)
fn shr_assign(&mut self, rhs: i64)
Performs the >>= operation. Read more
sourceimpl ShrAssign<i8> for Uint
impl ShrAssign<i8> for Uint
sourcefn shr_assign(&mut self, rhs: i8)
fn shr_assign(&mut self, rhs: i8)
Performs the >>= operation. Read more
sourceimpl ShrAssign<isize> for Uint
impl ShrAssign<isize> for Uint
sourcefn shr_assign(&mut self, rhs: isize)
fn shr_assign(&mut self, rhs: isize)
Performs the >>= operation. Read more
sourceimpl ShrAssign<u128> for Uint
impl ShrAssign<u128> for Uint
sourcefn shr_assign(&mut self, rhs: u128)
fn shr_assign(&mut self, rhs: u128)
Performs the >>= operation. Read more
sourceimpl ShrAssign<u16> for Uint
impl ShrAssign<u16> for Uint
sourcefn shr_assign(&mut self, rhs: u16)
fn shr_assign(&mut self, rhs: u16)
Performs the >>= operation. Read more
sourceimpl ShrAssign<u32> for Uint
impl ShrAssign<u32> for Uint
sourcefn shr_assign(&mut self, rhs: u32)
fn shr_assign(&mut self, rhs: u32)
Performs the >>= operation. Read more
sourceimpl ShrAssign<u64> for Uint
impl ShrAssign<u64> for Uint
sourcefn shr_assign(&mut self, rhs: u64)
fn shr_assign(&mut self, rhs: u64)
Performs the >>= operation. Read more
sourceimpl ShrAssign<u8> for Uint
impl ShrAssign<u8> for Uint
sourcefn shr_assign(&mut self, rhs: u8)
fn shr_assign(&mut self, rhs: u8)
Performs the >>= operation. Read more
sourceimpl ShrAssign<usize> for Uint
impl ShrAssign<usize> for Uint
sourcefn shr_assign(&mut self, rhs: usize)
fn shr_assign(&mut self, rhs: usize)
Performs the >>= operation. Read more
sourceimpl SubAssign<Uint> for Uint
impl SubAssign<Uint> for Uint
sourcefn sub_assign(&mut self, rhs: Uint)
fn sub_assign(&mut self, rhs: Uint)
Performs the -= operation. Read more
sourceimpl SubAssign<i128> for Uint
impl SubAssign<i128> for Uint
sourcefn sub_assign(&mut self, rhs: i128)
fn sub_assign(&mut self, rhs: i128)
Performs the -= operation. Read more
sourceimpl SubAssign<i16> for Uint
impl SubAssign<i16> for Uint
sourcefn sub_assign(&mut self, rhs: i16)
fn sub_assign(&mut self, rhs: i16)
Performs the -= operation. Read more
sourceimpl SubAssign<i32> for Uint
impl SubAssign<i32> for Uint
sourcefn sub_assign(&mut self, rhs: i32)
fn sub_assign(&mut self, rhs: i32)
Performs the -= operation. Read more
sourceimpl SubAssign<i64> for Uint
impl SubAssign<i64> for Uint
sourcefn sub_assign(&mut self, rhs: i64)
fn sub_assign(&mut self, rhs: i64)
Performs the -= operation. Read more
sourceimpl SubAssign<i8> for Uint
impl SubAssign<i8> for Uint
sourcefn sub_assign(&mut self, rhs: i8)
fn sub_assign(&mut self, rhs: i8)
Performs the -= operation. Read more
sourceimpl SubAssign<isize> for Uint
impl SubAssign<isize> for Uint
sourcefn sub_assign(&mut self, rhs: isize)
fn sub_assign(&mut self, rhs: isize)
Performs the -= operation. Read more
sourceimpl SubAssign<u128> for Uint
impl SubAssign<u128> for Uint
sourcefn sub_assign(&mut self, rhs: u128)
fn sub_assign(&mut self, rhs: u128)
Performs the -= operation. Read more
sourceimpl SubAssign<u16> for Uint
impl SubAssign<u16> for Uint
sourcefn sub_assign(&mut self, rhs: u16)
fn sub_assign(&mut self, rhs: u16)
Performs the -= operation. Read more
sourceimpl SubAssign<u32> for Uint
impl SubAssign<u32> for Uint
sourcefn sub_assign(&mut self, rhs: u32)
fn sub_assign(&mut self, rhs: u32)
Performs the -= operation. Read more
sourceimpl SubAssign<u64> for Uint
impl SubAssign<u64> for Uint
sourcefn sub_assign(&mut self, rhs: u64)
fn sub_assign(&mut self, rhs: u64)
Performs the -= operation. Read more
sourceimpl SubAssign<u8> for Uint
impl SubAssign<u8> for Uint
sourcefn sub_assign(&mut self, rhs: u8)
fn sub_assign(&mut self, rhs: u8)
Performs the -= operation. Read more
sourceimpl SubAssign<usize> for Uint
impl SubAssign<usize> for Uint
sourcefn sub_assign(&mut self, rhs: usize)
fn sub_assign(&mut self, rhs: usize)
Performs the -= operation. Read more
impl Copy for Uint
impl Eq for Uint
impl StructuralEq for Uint
impl StructuralPartialEq for Uint
Auto Trait Implementations
impl RefUnwindSafe for Uint
impl Send for Uint
impl Sync for Uint
impl Unpin for Uint
impl UnwindSafe for Uint
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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