forge::revm::interpreter::primitives::alloy_primitives

Struct Signed

pub struct Signed<const BITS: usize, const LIMBS: usize>(pub(crate) Uint<BITS, LIMBS>);
Expand description

Signed integer wrapping a ruint::Uint.

This signed integer implementation is fully abstract across the number of bits. It wraps a ruint::Uint, and co-opts the most significant bit to represent the sign. The number is represented in two’s complement, using the underlying Uint’s u64 limbs. The limbs can be accessed via the Signed::as_limbs() method, and are least-significant first.

§Aliases

We provide aliases for every bit-width divisble by 8, from 8 to 256. These are located in crate::aliases and are named I256, I248 etc. Most users will want crate::I256.

§Usage

// Instantiate from a number
let a = I256::unchecked_from(1);
// Use `try_from` if you're not sure it'll fit
let b = I256::try_from(200000382).unwrap();

// Or parse from a string :)
let c = "100".parse::<I256>().unwrap();
let d = "-0x138f".parse::<I256>().unwrap();

// Preceding plus is allowed but not recommended
let e = "+0xdeadbeef".parse::<I256>().unwrap();

// Underscores are ignored
let f = "1_000_000".parse::<I256>().unwrap();

// But invalid chars are not
assert!("^31".parse::<I256>().is_err());

// Math works great :)
let g = a * b + c - d;

// And so do comparisons!
assert!(e > a);

// We have some useful constants too
assert_eq!(I256::ZERO, I256::unchecked_from(0));
assert_eq!(I256::ONE, I256::unchecked_from(1));
assert_eq!(I256::MINUS_ONE, I256::unchecked_from(-1));

Tuple Fields§

§0: Uint<BITS, LIMBS>

Implementations§

§

impl<const BITS: usize, const LIMBS: usize> Signed<BITS, LIMBS>

pub const fn low_u8(&self) -> u8

Low word.

pub fn as_u8(&self) -> u8

Conversion to u8 with overflow checking.

§Panics

Panics if the number is outside the u8 valid range.

pub const fn low_i8(&self) -> i8

Low word.

pub fn as_i8(&self) -> i8

Conversion to i8 with overflow checking.

§Panics

Panics if the number is outside the i8 valid range.

pub const fn low_u16(&self) -> u16

Low word.

pub fn as_u16(&self) -> u16

Conversion to u16 with overflow checking.

§Panics

Panics if the number is outside the u16 valid range.

pub const fn low_i16(&self) -> i16

Low word.

pub fn as_i16(&self) -> i16

Conversion to i16 with overflow checking.

§Panics

Panics if the number is outside the i16 valid range.

pub const fn low_u32(&self) -> u32

Low word.

pub fn as_u32(&self) -> u32

Conversion to u32 with overflow checking.

§Panics

Panics if the number is outside the u32 valid range.

pub const fn low_i32(&self) -> i32

Low word.

pub fn as_i32(&self) -> i32

Conversion to i32 with overflow checking.

§Panics

Panics if the number is outside the i32 valid range.

pub const fn low_u64(&self) -> u64

Low word.

pub fn as_u64(&self) -> u64

Conversion to u64 with overflow checking.

§Panics

Panics if the number is outside the u64 valid range.

pub const fn low_i64(&self) -> i64

Low word.

pub fn as_i64(&self) -> i64

Conversion to i64 with overflow checking.

§Panics

Panics if the number is outside the i64 valid range.

pub const fn low_usize(&self) -> usize

Low word.

pub fn as_usize(&self) -> usize

Conversion to usize with overflow checking.

§Panics

Panics if the number is outside the usize valid range.

pub const fn low_isize(&self) -> isize

Low word.

pub fn as_isize(&self) -> isize

Conversion to isize with overflow checking.

§Panics

Panics if the number is outside the isize valid range.

§

impl<const BITS: usize, const LIMBS: usize> Signed<BITS, LIMBS>

pub const BITS: usize = BITS

Number of bits.

pub const BYTES: usize = Uint<BITS, LIMBS>::BYTES

The size of this integer type in bytes. Note that some bits may be forced zero if BITS is not cleanly divisible by eight.

pub const MIN: Signed<BITS, LIMBS>

The minimum value.

pub const MAX: Signed<BITS, LIMBS>

The maximum value.

pub const ZERO: Signed<BITS, LIMBS>

Zero (additive identity) of this type.

pub const ONE: Signed<BITS, LIMBS>

One (multiplicative identity) of this type.

pub const MINUS_ONE: Signed<BITS, LIMBS>

Minus one (multiplicative inverse) of this type.

pub const fn from_raw(val: Uint<BITS, LIMBS>) -> Signed<BITS, LIMBS>

Coerces an unsigned integer into a signed one. If the unsigned integer is greater than or equal to 1 << 255, then the result will overflow into a negative value.

pub fn unchecked_from<T>(val: T) -> Signed<BITS, LIMBS>
where T: TryInto<Signed<BITS, LIMBS>>, <T as TryInto<Signed<BITS, LIMBS>>>::Error: Debug,

Shortcut for val.try_into().unwrap().

§Panics

Panics if the conversion fails.

pub fn unchecked_into<T>(self) -> T
where Signed<BITS, LIMBS>: TryInto<T>, <Signed<BITS, LIMBS> as TryInto<T>>::Error: Debug,

Shortcut for self.try_into().unwrap().

§Panics

Panics if the conversion fails.

pub const fn into_raw(self) -> Uint<BITS, LIMBS>

Returns the signed integer as a unsigned integer. If the value of self negative, then the two’s complement of its absolute value will be returned.

pub const fn sign(&self) -> Sign

Returns the sign of self.

pub const fn is_odd(&self) -> bool

Determines if the integer is odd.

pub const fn const_eq(&self, other: &Signed<BITS, LIMBS>) -> bool

Compile-time equality. NOT constant-time equality.

pub const fn is_zero(&self) -> bool

Returns true if self is zero and false if the number is negative or positive.

pub const fn is_positive(&self) -> bool

Returns true if self is positive and false if the number is zero or negative.

pub const fn is_negative(&self) -> bool

Returns true if self is negative and false if the number is zero or positive.

pub fn count_ones(&self) -> usize

Returns the number of ones in the binary representation of self.

pub fn count_zeros(&self) -> usize

Returns the number of zeros in the binary representation of self.

pub fn leading_zeros(&self) -> usize

Returns the number of leading zeros in the binary representation of self.

pub fn trailing_zeros(&self) -> usize

Returns the number of leading zeros in the binary representation of self.

pub fn trailing_ones(&self) -> usize

Returns the number of leading ones in the binary representation of self.

pub const fn bit(&self, index: usize) -> bool

Returns whether a specific bit is set.

Returns false if index exceeds the bit width of the number.

pub const fn byte(&self, index: usize) -> u8

Returns a specific byte. The byte at index 0 is the least significant byte (little endian).

§Panics

Panics if index exceeds the byte width of the number.

pub fn bits(&self) -> u32

Return the least number of bits needed to represent the number.

pub fn overflowing_from_sign_and_abs( sign: Sign, abs: Uint<BITS, LIMBS>, ) -> (Signed<BITS, LIMBS>, bool)

Creates a Signed from a sign and an absolute value. Returns the value and a bool that is true if the conversion caused an overflow.

pub fn checked_from_sign_and_abs( sign: Sign, abs: Uint<BITS, LIMBS>, ) -> Option<Signed<BITS, LIMBS>>

Creates a Signed from an absolute value and a negative flag. Returns None if it would overflow as Signed.

pub fn from_dec_str( value: &str, ) -> Result<Signed<BITS, LIMBS>, ParseSignedError>

Convert from a decimal string.

pub fn to_dec_string(&self) -> String

Convert to a decimal string.

pub fn from_hex_str( value: &str, ) -> Result<Signed<BITS, LIMBS>, ParseSignedError>

Convert from a hex string.

pub fn to_hex_string(&self) -> String

Convert to a hex string.

pub fn into_sign_and_abs(&self) -> (Sign, Uint<BITS, LIMBS>)

Splits a Signed into its absolute value and negative flag.

pub const fn to_be_bytes<const BYTES: usize>(&self) -> [u8; BYTES]

Converts self to a big-endian byte array of size exactly Self::BYTES.

§Panics

Panics if the generic parameter BYTES is not exactly Self::BYTES. Ideally this would be a compile time error, but this is blocked by Rust issue #60551.

pub const fn to_le_bytes<const BYTES: usize>(&self) -> [u8; BYTES]

Converts self to a little-endian byte array of size exactly Self::BYTES.

§Panics

Panics if the generic parameter BYTES is not exactly Self::BYTES. Ideally this would be a compile time error, but this is blocked by Rust issue #60551.

pub const fn from_be_bytes<const BYTES: usize>( bytes: [u8; BYTES], ) -> Signed<BITS, LIMBS>

Converts a big-endian byte array of size exactly Self::BYTES.

§Panics

Panics if the generic parameter BYTES is not exactly Self::BYTES. Ideally this would be a compile time error, but this is blocked by Rust issue #60551.

Panics if the value is too large for the bit-size of the Uint.

pub const fn from_le_bytes<const BYTES: usize>( bytes: [u8; BYTES], ) -> Signed<BITS, LIMBS>

Convert from an array in LE format

§Panics

Panics if the given array is not the correct length.

pub fn try_from_be_slice(slice: &[u8]) -> Option<Signed<BITS, LIMBS>>

Creates a new integer from a big endian slice of bytes.

The slice is interpreted as a big endian number. Leading zeros are ignored. The slice can be any length.

Returns None if the value is larger than fits the Uint.

pub fn try_from_le_slice(slice: &[u8]) -> Option<Signed<BITS, LIMBS>>

Creates a new integer from a little endian slice of bytes.

The slice is interpreted as a big endian number. Leading zeros are ignored. The slice can be any length.

Returns None if the value is larger than fits the Uint.

pub const fn as_limbs(&self) -> &[u64; LIMBS]

View the array of limbs.

pub const fn into_limbs(self) -> [u64; LIMBS]

Convert to a array of limbs.

Limbs are least significant first.

pub const fn from_limbs(limbs: [u64; LIMBS]) -> Signed<BITS, LIMBS>

Construct a new integer from little-endian a array of limbs.

§Panics

Panics if LIMBS is not equal to nlimbs(BITS).

Panics if the value is to large for the bit-size of the Uint.

pub fn from_base_be<I>( base: u64, digits: I, ) -> Result<Signed<BITS, LIMBS>, BaseConvertError>
where I: IntoIterator<Item = u64>,

Constructs the Signed from digits in the base base in big-endian. Wrapper around ruint’s from_base_be

§Errors
§

impl<const BITS: usize, const LIMBS: usize> Signed<BITS, LIMBS>

pub fn abs(self) -> Signed<BITS, LIMBS>

Computes the absolute value of self.

§Overflow behavior

The absolute value of Self::MIN cannot be represented as Self and attempting to calculate it will cause an overflow. This means that code in debug mode will trigger a panic on this case and optimized code will return Self::MIN without a panic.

pub fn overflowing_abs(self) -> (Signed<BITS, LIMBS>, bool)

Computes the absolute value of self.

Returns a tuple of the absolute version of self along with a boolean indicating whether an overflow happened. If self is the minimum value then the minimum value will be returned again and true will be returned for an overflow happening.

pub fn checked_abs(self) -> Option<Signed<BITS, LIMBS>>

Checked absolute value. Computes self.abs(), returning None if self == MIN.

pub fn saturating_abs(self) -> Signed<BITS, LIMBS>

Saturating absolute value. Computes self.abs(), returning MAX if self == MIN instead of overflowing.

pub fn wrapping_abs(self) -> Signed<BITS, LIMBS>

Wrapping absolute value. Computes self.abs(), wrapping around at the boundary of the type.

pub fn unsigned_abs(self) -> Uint<BITS, LIMBS>

Computes the absolute value of self without any wrapping or panicking.

pub fn overflowing_neg(self) -> (Signed<BITS, LIMBS>, bool)

Negates self, overflowing if this is equal to the minimum value.

Returns a tuple of the negated version of self along with a boolean indicating whether an overflow happened. If self is the minimum value, then the minimum value will be returned again and true will be returned for an overflow happening.

pub fn checked_neg(self) -> Option<Signed<BITS, LIMBS>>

Checked negation. Computes -self, returning None if self == MIN.

pub fn saturating_neg(self) -> Signed<BITS, LIMBS>

Saturating negation. Computes -self, returning MAX if self == MIN instead of overflowing.

pub fn wrapping_neg(self) -> Signed<BITS, LIMBS>

Wrapping (modular) negation. Computes -self, wrapping around at the boundary of the type.

The only case where such wrapping can occur is when one negates MIN on a signed type (where MIN is the negative minimal value for the type); this is a positive value that is too large to represent in the type. In such a case, this function returns MIN itself.

pub const fn overflowing_add( self, rhs: Signed<BITS, LIMBS>, ) -> (Signed<BITS, LIMBS>, bool)

Calculates self + rhs

Returns a tuple of the addition along with a boolean indicating whether an arithmetic overflow would occur. If an overflow would have occurred then the wrapped value is returned.

pub const fn checked_add( self, rhs: Signed<BITS, LIMBS>, ) -> Option<Signed<BITS, LIMBS>>

Checked integer addition. Computes self + rhs, returning None if overflow occurred.

pub const fn saturating_add( self, rhs: Signed<BITS, LIMBS>, ) -> Signed<BITS, LIMBS>

Saturating integer addition. Computes self + rhs, saturating at the numeric bounds instead of overflowing.

pub const fn wrapping_add(self, rhs: Signed<BITS, LIMBS>) -> Signed<BITS, LIMBS>

Wrapping (modular) addition. Computes self + rhs, wrapping around at the boundary of the type.

pub const fn overflowing_sub( self, rhs: Signed<BITS, LIMBS>, ) -> (Signed<BITS, LIMBS>, bool)

Calculates self - rhs

Returns a tuple of the subtraction along with a boolean indicating whether an arithmetic overflow would occur. If an overflow would have occurred then the wrapped value is returned.

pub const fn checked_sub( self, rhs: Signed<BITS, LIMBS>, ) -> Option<Signed<BITS, LIMBS>>

Checked integer subtraction. Computes self - rhs, returning None if overflow occurred.

pub const fn saturating_sub( self, rhs: Signed<BITS, LIMBS>, ) -> Signed<BITS, LIMBS>

Saturating integer subtraction. Computes self - rhs, saturating at the numeric bounds instead of overflowing.

pub const fn wrapping_sub(self, rhs: Signed<BITS, LIMBS>) -> Signed<BITS, LIMBS>

Wrapping (modular) subtraction. Computes self - rhs, wrapping around at the boundary of the type.

pub fn overflowing_mul( self, rhs: Signed<BITS, LIMBS>, ) -> (Signed<BITS, LIMBS>, bool)

Calculates self * rhs

Returns a tuple of the multiplication along with a boolean indicating whether an arithmetic overflow would occur. If an overflow would have occurred then the wrapped value is returned.

pub fn checked_mul( self, rhs: Signed<BITS, LIMBS>, ) -> Option<Signed<BITS, LIMBS>>

Checked integer multiplication. Computes self * rhs, returning None if overflow occurred.

pub fn saturating_mul(self, rhs: Signed<BITS, LIMBS>) -> Signed<BITS, LIMBS>

Saturating integer multiplication. Computes self * rhs, saturating at the numeric bounds instead of overflowing.

pub fn wrapping_mul(self, rhs: Signed<BITS, LIMBS>) -> Signed<BITS, LIMBS>

Wrapping (modular) multiplication. Computes self * rhs, wrapping around at the boundary of the type.

pub fn overflowing_div( self, rhs: Signed<BITS, LIMBS>, ) -> (Signed<BITS, LIMBS>, bool)

Calculates self / rhs

Returns a tuple of the divisor along with a boolean indicating whether an arithmetic overflow would occur. If an overflow would occur then self is returned.

§Panics

If rhs is 0.

pub fn checked_div( self, rhs: Signed<BITS, LIMBS>, ) -> Option<Signed<BITS, LIMBS>>

Checked integer division. Computes self / rhs, returning None if rhs == 0 or the division results in overflow.

pub fn saturating_div(self, rhs: Signed<BITS, LIMBS>) -> Signed<BITS, LIMBS>

Saturating integer division. Computes self / rhs, saturating at the numeric bounds instead of overflowing.

§Panics

If rhs is 0.

pub fn wrapping_div(self, rhs: Signed<BITS, LIMBS>) -> Signed<BITS, LIMBS>

Wrapping (modular) division. Computes self / rhs, wrapping around at the boundary of the type.

The only case where such wrapping can occur is when one divides MIN / -1 on a signed type (where MIN is the negative minimal value for the type); this is equivalent to -MIN, a positive value that is too large to represent in the type. In such a case, this function returns MIN itself.

§Panics

If rhs is 0.

pub fn overflowing_rem( self, rhs: Signed<BITS, LIMBS>, ) -> (Signed<BITS, LIMBS>, bool)

Calculates self % rhs

Returns a tuple of the remainder after dividing along with a boolean indicating whether an arithmetic overflow would occur. If an overflow would occur then 0 is returned.

§Panics

If rhs is 0.

pub fn checked_rem( self, rhs: Signed<BITS, LIMBS>, ) -> Option<Signed<BITS, LIMBS>>

Checked integer remainder. Computes self % rhs, returning None if rhs == 0 or the division results in overflow.

pub fn wrapping_rem(self, rhs: Signed<BITS, LIMBS>) -> Signed<BITS, LIMBS>

Wrapping (modular) remainder. Computes self % rhs, wrapping around at the boundary of the type.

Such wrap-around never actually occurs mathematically; implementation artifacts make x % y invalid for MIN / -1 on a signed type (where MIN is the negative minimal value). In such a case, this function returns 0.

§Panics

If rhs is 0.

pub fn div_euclid(self, rhs: Signed<BITS, LIMBS>) -> Signed<BITS, LIMBS>

Calculates the quotient of Euclidean division of self by rhs.

This computes the integer q such that self = q * rhs + r, with r = self.rem_euclid(rhs) and 0 <= r < abs(rhs).

In other words, the result is self / rhs rounded to the integer q such that self >= q * rhs. If self > 0, this is equal to round towards zero (the default in Rust); if self < 0, this is equal to round towards +/- infinity.

§Panics

If rhs is 0 or the division results in overflow.

pub fn overflowing_div_euclid( self, rhs: Signed<BITS, LIMBS>, ) -> (Signed<BITS, LIMBS>, bool)

Calculates the quotient of Euclidean division self.div_euclid(rhs).

Returns a tuple of the divisor along with a boolean indicating whether an arithmetic overflow would occur. If an overflow would occur then self is returned.

§Panics

If rhs is 0.

pub fn checked_div_euclid( self, rhs: Signed<BITS, LIMBS>, ) -> Option<Signed<BITS, LIMBS>>

Checked Euclidean division. Computes self.div_euclid(rhs), returning None if rhs == 0 or the division results in overflow.

pub fn wrapping_div_euclid( self, rhs: Signed<BITS, LIMBS>, ) -> Signed<BITS, LIMBS>

Wrapping Euclidean division. Computes self.div_euclid(rhs), wrapping around at the boundary of the type.

Wrapping will only occur in MIN / -1 on a signed type (where MIN is the negative minimal value for the type). This is equivalent to -MIN, a positive value that is too large to represent in the type. In this case, this method returns MIN itself.

§Panics

If rhs is 0.

pub fn rem_euclid(self, rhs: Signed<BITS, LIMBS>) -> Signed<BITS, LIMBS>

Calculates the least nonnegative remainder of self (mod rhs).

This is done as if by the Euclidean division algorithm – given r = self.rem_euclid(rhs), self = rhs * self.div_euclid(rhs) + r, and 0 <= r < abs(rhs).

§Panics

If rhs is 0 or the division results in overflow.

pub fn overflowing_rem_euclid( self, rhs: Signed<BITS, LIMBS>, ) -> (Signed<BITS, LIMBS>, bool)

Overflowing Euclidean remainder. Calculates self.rem_euclid(rhs).

Returns a tuple of the remainder after dividing along with a boolean indicating whether an arithmetic overflow would occur. If an overflow would occur then 0 is returned.

§Panics

If rhs is 0.

pub fn wrapping_rem_euclid( self, rhs: Signed<BITS, LIMBS>, ) -> Signed<BITS, LIMBS>

Wrapping Euclidean remainder. Computes self.rem_euclid(rhs), wrapping around at the boundary of the type.

Wrapping will only occur in MIN % -1 on a signed type (where MIN is the negative minimal value for the type). In this case, this method returns 0.

§Panics

If rhs is 0.

pub fn checked_rem_euclid( self, rhs: Signed<BITS, LIMBS>, ) -> Option<Signed<BITS, LIMBS>>

Checked Euclidean remainder. Computes self.rem_euclid(rhs), returning None if rhs == 0 or the division results in overflow.

pub fn exp10(n: usize) -> Signed<BITS, LIMBS>

Create 10**n as this type.

§Panics

If the result overflows the type.

pub fn pow(self, exp: Uint<BITS, LIMBS>) -> Signed<BITS, LIMBS>

Raises self to the power of exp, using exponentiation by squaring.

§Panics

If the result overflows the type in debug mode.

pub fn overflowing_pow( self, exp: Uint<BITS, LIMBS>, ) -> (Signed<BITS, LIMBS>, bool)

Raises self to the power of exp, using exponentiation by squaring.

Returns a tuple of the exponentiation along with a bool indicating whether an overflow happened.

pub fn checked_pow(self, exp: Uint<BITS, LIMBS>) -> Option<Signed<BITS, LIMBS>>

Checked exponentiation. Computes self.pow(exp), returning None if overflow occurred.

pub fn saturating_pow(self, exp: Uint<BITS, LIMBS>) -> Signed<BITS, LIMBS>

Saturating integer exponentiation. Computes self.pow(exp), saturating at the numeric bounds instead of overflowing.

pub fn wrapping_pow(self, exp: Uint<BITS, LIMBS>) -> Signed<BITS, LIMBS>

Raises self to the power of exp, wrapping around at the boundary of the type.

pub fn overflowing_shl(self, rhs: usize) -> (Signed<BITS, LIMBS>, bool)

Shifts self left by rhs bits.

Returns a tuple of the shifted version of self along with a boolean indicating whether the shift value was larger than or equal to the number of bits.

pub fn checked_shl(self, rhs: usize) -> Option<Signed<BITS, LIMBS>>

Checked shift left. Computes self << rhs, returning None if rhs is larger than or equal to the number of bits in self.

pub fn wrapping_shl(self, rhs: usize) -> Signed<BITS, LIMBS>

Wrapping shift left. Computes self << rhs, returning 0 if larger than or equal to the number of bits in self.

pub fn overflowing_shr(self, rhs: usize) -> (Signed<BITS, LIMBS>, bool)

Shifts self right by rhs bits.

Returns a tuple of the shifted version of self along with a boolean indicating whether the shift value was larger than or equal to the number of bits.

pub fn checked_shr(self, rhs: usize) -> Option<Signed<BITS, LIMBS>>

Checked shift right. Computes self >> rhs, returning None if rhs is larger than or equal to the number of bits in self.

pub fn wrapping_shr(self, rhs: usize) -> Signed<BITS, LIMBS>

Wrapping shift right. Computes self >> rhs, returning 0 if larger than or equal to the number of bits in self.

pub fn asr(self, rhs: usize) -> Signed<BITS, LIMBS>

Arithmetic shift right operation. Computes self >> rhs maintaining the original sign. If the number is positive this is the same as logic shift right.

pub fn asl(self, rhs: usize) -> Option<Signed<BITS, LIMBS>>

Arithmetic shift left operation. Computes self << rhs, checking for overflow on the final result.

Returns None if the operation overflowed (most significant bit changes).

pub fn twos_complement(self) -> Uint<BITS, LIMBS>

Compute the two’s complement of this number.

Trait Implementations§

§

impl<T, const BITS: usize, const LIMBS: usize> Add<T> for Signed<BITS, LIMBS>
where T: Into<Signed<BITS, LIMBS>>,

§

type Output = Signed<BITS, LIMBS>

The resulting type after applying the + operator.
§

fn add(self, rhs: T) -> <Signed<BITS, LIMBS> as Add<T>>::Output

Performs the + operation. Read more
§

impl<T, const BITS: usize, const LIMBS: usize> AddAssign<T> for Signed<BITS, LIMBS>
where T: Into<Signed<BITS, LIMBS>>,

§

fn add_assign(&mut self, rhs: T)

Performs the += operation. Read more
§

impl<'arbitrary, const BITS: usize, const LIMBS: usize> Arbitrary<'arbitrary> for Signed<BITS, LIMBS>

§

fn arbitrary( u: &mut Unstructured<'arbitrary>, ) -> Result<Signed<BITS, LIMBS>, Error>

Generate an arbitrary value of Self from the given unstructured data. Read more
§

fn arbitrary_take_rest( u: Unstructured<'arbitrary>, ) -> Result<Signed<BITS, LIMBS>, Error>

Generate an arbitrary value of Self from the entirety of the given unstructured data. Read more
§

fn size_hint(depth: usize) -> (usize, Option<usize>)

Get a size hint for how many bytes out of an Unstructured this type needs to construct itself. Read more
§

fn try_size_hint( depth: usize, ) -> Result<(usize, Option<usize>), MaxRecursionReached>

Get a size hint for how many bytes out of an Unstructured this type needs to construct itself. Read more
§

impl<const BITS: usize, const LIMBS: usize> Arbitrary for Signed<BITS, LIMBS>

§

type Parameters = <Uint<BITS, LIMBS> as Arbitrary>::Parameters

The type of parameters that arbitrary_with accepts for configuration of the generated Strategy. Parameters must implement Default.
§

type Strategy = Map<<Uint<BITS, LIMBS> as Arbitrary>::Strategy, fn(_: Uint<BITS, LIMBS>) -> Signed<BITS, LIMBS>>

The type of Strategy used to generate values of type Self.
§

fn arbitrary_with( _top: <Signed<BITS, LIMBS> as Arbitrary>::Parameters, ) -> <Signed<BITS, LIMBS> as Arbitrary>::Strategy

Generates a Strategy for producing arbitrary values of type the implementing type (Self). The strategy is passed the arguments given in args. Read more
§

fn arbitrary() -> Self::Strategy

Generates a Strategy for producing arbitrary values of type the implementing type (Self). Read more
§

impl<const BITS: usize, const LIMBS: usize> Binary for Signed<BITS, LIMBS>

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<const BITS: usize, const LIMBS: usize> BitAnd for Signed<BITS, LIMBS>

§

type Output = Signed<BITS, LIMBS>

The resulting type after applying the & operator.
§

fn bitand( self, rhs: Signed<BITS, LIMBS>, ) -> <Signed<BITS, LIMBS> as BitAnd>::Output

Performs the & operation. Read more
§

impl<const BITS: usize, const LIMBS: usize> BitAndAssign for Signed<BITS, LIMBS>

§

fn bitand_assign(&mut self, rhs: Signed<BITS, LIMBS>)

Performs the &= operation. Read more
§

impl<const BITS: usize, const LIMBS: usize> BitOr for Signed<BITS, LIMBS>

§

type Output = Signed<BITS, LIMBS>

The resulting type after applying the | operator.
§

fn bitor( self, rhs: Signed<BITS, LIMBS>, ) -> <Signed<BITS, LIMBS> as BitOr>::Output

Performs the | operation. Read more
§

impl<const BITS: usize, const LIMBS: usize> BitOrAssign for Signed<BITS, LIMBS>

§

fn bitor_assign(&mut self, rhs: Signed<BITS, LIMBS>)

Performs the |= operation. Read more
§

impl<const BITS: usize, const LIMBS: usize> BitXor for Signed<BITS, LIMBS>

§

type Output = Signed<BITS, LIMBS>

The resulting type after applying the ^ operator.
§

fn bitxor( self, rhs: Signed<BITS, LIMBS>, ) -> <Signed<BITS, LIMBS> as BitXor>::Output

Performs the ^ operation. Read more
§

impl<const BITS: usize, const LIMBS: usize> BitXorAssign for Signed<BITS, LIMBS>

§

fn bitxor_assign(&mut self, rhs: Signed<BITS, LIMBS>)

Performs the ^= operation. Read more
§

impl<const BITS: usize, const LIMBS: usize> Clone for Signed<BITS, LIMBS>

§

fn clone(&self) -> Signed<BITS, LIMBS>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl ConsoleFmt for Signed<256, 4>

§

fn fmt(&self, spec: FormatSpec) -> String

Formats a value using a [FormatSpec].
§

impl<const BITS: usize, const LIMBS: usize> Debug for Signed<BITS, LIMBS>

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<const BITS: usize, const LIMBS: usize> Default for Signed<BITS, LIMBS>

§

fn default() -> Signed<BITS, LIMBS>

Returns the “default value” for a type. Read more
§

impl<'de, const BITS: usize, const LIMBS: usize> Deserialize<'de> for Signed<BITS, LIMBS>

§

fn deserialize<D>( deserializer: D, ) -> Result<Signed<BITS, LIMBS>, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl<const BITS: usize, const LIMBS: usize> Display for Signed<BITS, LIMBS>

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<T, const BITS: usize, const LIMBS: usize> Div<T> for Signed<BITS, LIMBS>
where T: Into<Signed<BITS, LIMBS>>,

§

type Output = Signed<BITS, LIMBS>

The resulting type after applying the / operator.
§

fn div(self, rhs: T) -> <Signed<BITS, LIMBS> as Div<T>>::Output

Performs the / operation. Read more
§

impl<T, const BITS: usize, const LIMBS: usize> DivAssign<T> for Signed<BITS, LIMBS>
where T: Into<Signed<BITS, LIMBS>>,

§

fn div_assign(&mut self, rhs: T)

Performs the /= operation. Read more
§

impl From<FixedBytes<1>> for Signed<8, 1>

§

fn from(value: FixedBytes<1>) -> Signed<8, 1>

Converts a fixed byte array into a fixed-width unsigned integer by interpreting the bytes as big-endian.

§

impl From<FixedBytes<16>> for Signed<128, 2>

§

fn from(value: FixedBytes<16>) -> Signed<128, 2>

Converts a fixed byte array into a fixed-width unsigned integer by interpreting the bytes as big-endian.

§

impl From<FixedBytes<2>> for Signed<16, 1>

§

fn from(value: FixedBytes<2>) -> Signed<16, 1>

Converts a fixed byte array into a fixed-width unsigned integer by interpreting the bytes as big-endian.

§

impl From<FixedBytes<20>> for Signed<160, 3>

§

fn from(value: FixedBytes<20>) -> Signed<160, 3>

Converts a fixed byte array into a fixed-width unsigned integer by interpreting the bytes as big-endian.

§

impl From<FixedBytes<32>> for Signed<256, 4>

§

fn from(value: FixedBytes<32>) -> Signed<256, 4>

Converts a fixed byte array into a fixed-width unsigned integer by interpreting the bytes as big-endian.

§

impl From<FixedBytes<4>> for Signed<32, 1>

§

fn from(value: FixedBytes<4>) -> Signed<32, 1>

Converts a fixed byte array into a fixed-width unsigned integer by interpreting the bytes as big-endian.

§

impl From<FixedBytes<64>> for Signed<512, 8>

§

fn from(value: FixedBytes<64>) -> Signed<512, 8>

Converts a fixed byte array into a fixed-width unsigned integer by interpreting the bytes as big-endian.

§

impl From<FixedBytes<8>> for Signed<64, 1>

§

fn from(value: FixedBytes<8>) -> Signed<64, 1>

Converts a fixed byte array into a fixed-width unsigned integer by interpreting the bytes as big-endian.

§

impl From<ParseUnits> for Signed<256, 4>

§

fn from(value: ParseUnits) -> Signed<256, 4>

Converts to this type from the input type.
§

impl From<ParseUnits> for Signed<256, 4>

§

fn from(n: ParseUnits) -> Signed<256, 4>

Converts to this type from the input type.
§

impl From<Signed<128, 2>> for FixedBytes<16>

§

fn from(value: Signed<128, 2>) -> FixedBytes<16>

Converts a fixed-width unsigned integer into a fixed byte array by interpreting the bytes as big-endian.

§

impl From<Signed<16, 1>> for FixedBytes<2>

§

fn from(value: Signed<16, 1>) -> FixedBytes<2>

Converts a fixed-width unsigned integer into a fixed byte array by interpreting the bytes as big-endian.

§

impl From<Signed<160, 3>> for FixedBytes<20>

§

fn from(value: Signed<160, 3>) -> FixedBytes<20>

Converts a fixed-width unsigned integer into a fixed byte array by interpreting the bytes as big-endian.

§

impl From<Signed<256, 4>> for DynSolValue

§

fn from(value: Signed<256, 4>) -> DynSolValue

Converts to this type from the input type.
§

impl From<Signed<256, 4>> for FixedBytes<32>

§

fn from(value: Signed<256, 4>) -> FixedBytes<32>

Converts a fixed-width unsigned integer into a fixed byte array by interpreting the bytes as big-endian.

§

impl From<Signed<256, 4>> for ParseUnits

§

fn from(value: Signed<256, 4>) -> ParseUnits

Converts to this type from the input type.
§

impl From<Signed<256, 4>> for ParseUnits

§

fn from(n: Signed<256, 4>) -> ParseUnits

Converts to this type from the input type.
§

impl From<Signed<256, 4>> for WordToken

§

fn from(value: Signed<256, 4>) -> WordToken

Converts to this type from the input type.
§

impl From<Signed<32, 1>> for FixedBytes<4>

§

fn from(value: Signed<32, 1>) -> FixedBytes<4>

Converts a fixed-width unsigned integer into a fixed byte array by interpreting the bytes as big-endian.

§

impl From<Signed<512, 8>> for FixedBytes<64>

§

fn from(value: Signed<512, 8>) -> FixedBytes<64>

Converts a fixed-width unsigned integer into a fixed byte array by interpreting the bytes as big-endian.

§

impl From<Signed<64, 1>> for FixedBytes<8>

§

fn from(value: Signed<64, 1>) -> FixedBytes<8>

Converts a fixed-width unsigned integer into a fixed byte array by interpreting the bytes as big-endian.

§

impl From<Signed<8, 1>> for FixedBytes<1>

§

fn from(value: Signed<8, 1>) -> FixedBytes<1>

Converts a fixed-width unsigned integer into a fixed byte array by interpreting the bytes as big-endian.

§

impl<const BITS: usize, const LIMBS: usize> FromStr for Signed<BITS, LIMBS>

§

type Err = ParseSignedError

The associated error which can be returned from parsing.
§

fn from_str( s: &str, ) -> Result<Signed<BITS, LIMBS>, <Signed<BITS, LIMBS> as FromStr>::Err>

Parses a string s to return a value of this type. Read more
§

impl<const BITS: usize, const LIMBS: usize> Hash for Signed<BITS, LIMBS>

§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
§

impl<const BITS: usize, const LIMBS: usize> LowerHex for Signed<BITS, LIMBS>

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<T, const BITS: usize, const LIMBS: usize> Mul<T> for Signed<BITS, LIMBS>
where T: Into<Signed<BITS, LIMBS>>,

§

type Output = Signed<BITS, LIMBS>

The resulting type after applying the * operator.
§

fn mul(self, rhs: T) -> <Signed<BITS, LIMBS> as Mul<T>>::Output

Performs the * operation. Read more
§

impl<T, const BITS: usize, const LIMBS: usize> MulAssign<T> for Signed<BITS, LIMBS>
where T: Into<Signed<BITS, LIMBS>>,

§

fn mul_assign(&mut self, rhs: T)

Performs the *= operation. Read more
§

impl<const BITS: usize, const LIMBS: usize> Neg for Signed<BITS, LIMBS>

§

type Output = Signed<BITS, LIMBS>

The resulting type after applying the - operator.
§

fn neg(self) -> <Signed<BITS, LIMBS> as Neg>::Output

Performs the unary - operation. Read more
§

impl<const BITS: usize, const LIMBS: usize> Not for Signed<BITS, LIMBS>

§

type Output = Signed<BITS, LIMBS>

The resulting type after applying the ! operator.
§

fn not(self) -> <Signed<BITS, LIMBS> as Not>::Output

Performs the unary ! operation. Read more
§

impl<const BITS: usize, const LIMBS: usize> Octal for Signed<BITS, LIMBS>

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<const BITS: usize, const LIMBS: usize> Ord for Signed<BITS, LIMBS>

§

fn cmp(&self, other: &Signed<BITS, LIMBS>) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
§

impl<const BITS: usize, const LIMBS: usize> PartialEq for Signed<BITS, LIMBS>

§

fn eq(&self, other: &Signed<BITS, LIMBS>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl<const BITS: usize, const LIMBS: usize> PartialOrd for Signed<BITS, LIMBS>

§

fn partial_cmp(&self, other: &Signed<BITS, LIMBS>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
§

impl<T, const BITS: usize, const LIMBS: usize> Product<T> for Signed<BITS, LIMBS>
where T: Into<Signed<BITS, LIMBS>>,

§

fn product<I>(iter: I) -> Signed<BITS, LIMBS>
where I: Iterator<Item = T>,

Takes an iterator and generates Self from the elements by multiplying the items.
§

impl<T, const BITS: usize, const LIMBS: usize> Rem<T> for Signed<BITS, LIMBS>
where T: Into<Signed<BITS, LIMBS>>,

§

type Output = Signed<BITS, LIMBS>

The resulting type after applying the % operator.
§

fn rem(self, rhs: T) -> <Signed<BITS, LIMBS> as Rem<T>>::Output

Performs the % operation. Read more
§

impl<T, const BITS: usize, const LIMBS: usize> RemAssign<T> for Signed<BITS, LIMBS>
where T: Into<Signed<BITS, LIMBS>>,

§

fn rem_assign(&mut self, rhs: T)

Performs the %= operation. Read more
§

impl<const BITS: usize, const LIMBS: usize> Serialize for Signed<BITS, LIMBS>

§

fn serialize<S>( &self, serializer: S, ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl<const BITS: usize, const LIMBS: usize> Shl<i16> for Signed<BITS, LIMBS>

§

type Output = Signed<BITS, LIMBS>

The resulting type after applying the << operator.
§

fn shl(self, rhs: i16) -> <Signed<BITS, LIMBS> as Shl<i16>>::Output

Performs the << operation. Read more
§

impl<const BITS: usize, const LIMBS: usize> Shl<i32> for Signed<BITS, LIMBS>

§

type Output = Signed<BITS, LIMBS>

The resulting type after applying the << operator.
§

fn shl(self, rhs: i32) -> <Signed<BITS, LIMBS> as Shl<i32>>::Output

Performs the << operation. Read more
§

impl<const BITS: usize, const LIMBS: usize> Shl<i64> for Signed<BITS, LIMBS>

§

type Output = Signed<BITS, LIMBS>

The resulting type after applying the << operator.
§

fn shl(self, rhs: i64) -> <Signed<BITS, LIMBS> as Shl<i64>>::Output

Performs the << operation. Read more
§

impl<const BITS: usize, const LIMBS: usize> Shl<i8> for Signed<BITS, LIMBS>

§

type Output = Signed<BITS, LIMBS>

The resulting type after applying the << operator.
§

fn shl(self, rhs: i8) -> <Signed<BITS, LIMBS> as Shl<i8>>::Output

Performs the << operation. Read more
§

impl<const BITS: usize, const LIMBS: usize> Shl<isize> for Signed<BITS, LIMBS>

§

type Output = Signed<BITS, LIMBS>

The resulting type after applying the << operator.
§

fn shl(self, rhs: isize) -> <Signed<BITS, LIMBS> as Shl<isize>>::Output

Performs the << operation. Read more
§

impl<const BITS: usize, const LIMBS: usize> Shl<u16> for Signed<BITS, LIMBS>

§

type Output = Signed<BITS, LIMBS>

The resulting type after applying the << operator.
§

fn shl(self, rhs: u16) -> <Signed<BITS, LIMBS> as Shl<u16>>::Output

Performs the << operation. Read more
§

impl<const BITS: usize, const LIMBS: usize> Shl<u32> for Signed<BITS, LIMBS>

§

type Output = Signed<BITS, LIMBS>

The resulting type after applying the << operator.
§

fn shl(self, rhs: u32) -> <Signed<BITS, LIMBS> as Shl<u32>>::Output

Performs the << operation. Read more
§

impl<const BITS: usize, const LIMBS: usize> Shl<u64> for Signed<BITS, LIMBS>

§

type Output = Signed<BITS, LIMBS>

The resulting type after applying the << operator.
§

fn shl(self, rhs: u64) -> <Signed<BITS, LIMBS> as Shl<u64>>::Output

Performs the << operation. Read more
§

impl<const BITS: usize, const LIMBS: usize> Shl<u8> for Signed<BITS, LIMBS>

§

type Output = Signed<BITS, LIMBS>

The resulting type after applying the << operator.
§

fn shl(self, rhs: u8) -> <Signed<BITS, LIMBS> as Shl<u8>>::Output

Performs the << operation. Read more
§

impl<const BITS: usize, const LIMBS: usize> Shl<usize> for Signed<BITS, LIMBS>

§

type Output = Signed<BITS, LIMBS>

The resulting type after applying the << operator.
§

fn shl(self, rhs: usize) -> <Signed<BITS, LIMBS> as Shl<usize>>::Output

Performs the << operation. Read more
§

impl<const BITS: usize, const LIMBS: usize> ShlAssign<i16> for Signed<BITS, LIMBS>

§

fn shl_assign(&mut self, rhs: i16)

Performs the <<= operation. Read more
§

impl<const BITS: usize, const LIMBS: usize> ShlAssign<i32> for Signed<BITS, LIMBS>

§

fn shl_assign(&mut self, rhs: i32)

Performs the <<= operation. Read more
§

impl<const BITS: usize, const LIMBS: usize> ShlAssign<i64> for Signed<BITS, LIMBS>

§

fn shl_assign(&mut self, rhs: i64)

Performs the <<= operation. Read more
§

impl<const BITS: usize, const LIMBS: usize> ShlAssign<i8> for Signed<BITS, LIMBS>

§

fn shl_assign(&mut self, rhs: i8)

Performs the <<= operation. Read more
§

impl<const BITS: usize, const LIMBS: usize> ShlAssign<isize> for Signed<BITS, LIMBS>

§

fn shl_assign(&mut self, rhs: isize)

Performs the <<= operation. Read more
§

impl<const BITS: usize, const LIMBS: usize> ShlAssign<u16> for Signed<BITS, LIMBS>

§

fn shl_assign(&mut self, rhs: u16)

Performs the <<= operation. Read more
§

impl<const BITS: usize, const LIMBS: usize> ShlAssign<u32> for Signed<BITS, LIMBS>

§

fn shl_assign(&mut self, rhs: u32)

Performs the <<= operation. Read more
§

impl<const BITS: usize, const LIMBS: usize> ShlAssign<u64> for Signed<BITS, LIMBS>

§

fn shl_assign(&mut self, rhs: u64)

Performs the <<= operation. Read more
§

impl<const BITS: usize, const LIMBS: usize> ShlAssign<u8> for Signed<BITS, LIMBS>

§

fn shl_assign(&mut self, rhs: u8)

Performs the <<= operation. Read more
§

impl<const BITS: usize, const LIMBS: usize> ShlAssign<usize> for Signed<BITS, LIMBS>

§

fn shl_assign(&mut self, rhs: usize)

Performs the <<= operation. Read more
§

impl<const BITS: usize, const LIMBS: usize> Shr<i16> for Signed<BITS, LIMBS>

§

type Output = Signed<BITS, LIMBS>

The resulting type after applying the >> operator.
§

fn shr(self, rhs: i16) -> <Signed<BITS, LIMBS> as Shr<i16>>::Output

Performs the >> operation. Read more
§

impl<const BITS: usize, const LIMBS: usize> Shr<i32> for Signed<BITS, LIMBS>

§

type Output = Signed<BITS, LIMBS>

The resulting type after applying the >> operator.
§

fn shr(self, rhs: i32) -> <Signed<BITS, LIMBS> as Shr<i32>>::Output

Performs the >> operation. Read more
§

impl<const BITS: usize, const LIMBS: usize> Shr<i64> for Signed<BITS, LIMBS>

§

type Output = Signed<BITS, LIMBS>

The resulting type after applying the >> operator.
§

fn shr(self, rhs: i64) -> <Signed<BITS, LIMBS> as Shr<i64>>::Output

Performs the >> operation. Read more
§

impl<const BITS: usize, const LIMBS: usize> Shr<i8> for Signed<BITS, LIMBS>

§

type Output = Signed<BITS, LIMBS>

The resulting type after applying the >> operator.
§

fn shr(self, rhs: i8) -> <Signed<BITS, LIMBS> as Shr<i8>>::Output

Performs the >> operation. Read more
§

impl<const BITS: usize, const LIMBS: usize> Shr<isize> for Signed<BITS, LIMBS>

§

type Output = Signed<BITS, LIMBS>

The resulting type after applying the >> operator.
§

fn shr(self, rhs: isize) -> <Signed<BITS, LIMBS> as Shr<isize>>::Output

Performs the >> operation. Read more
§

impl<const BITS: usize, const LIMBS: usize> Shr<u16> for Signed<BITS, LIMBS>

§

type Output = Signed<BITS, LIMBS>

The resulting type after applying the >> operator.
§

fn shr(self, rhs: u16) -> <Signed<BITS, LIMBS> as Shr<u16>>::Output

Performs the >> operation. Read more
§

impl<const BITS: usize, const LIMBS: usize> Shr<u32> for Signed<BITS, LIMBS>

§

type Output = Signed<BITS, LIMBS>

The resulting type after applying the >> operator.
§

fn shr(self, rhs: u32) -> <Signed<BITS, LIMBS> as Shr<u32>>::Output

Performs the >> operation. Read more
§

impl<const BITS: usize, const LIMBS: usize> Shr<u64> for Signed<BITS, LIMBS>

§

type Output = Signed<BITS, LIMBS>

The resulting type after applying the >> operator.
§

fn shr(self, rhs: u64) -> <Signed<BITS, LIMBS> as Shr<u64>>::Output

Performs the >> operation. Read more
§

impl<const BITS: usize, const LIMBS: usize> Shr<u8> for Signed<BITS, LIMBS>

§

type Output = Signed<BITS, LIMBS>

The resulting type after applying the >> operator.
§

fn shr(self, rhs: u8) -> <Signed<BITS, LIMBS> as Shr<u8>>::Output

Performs the >> operation. Read more
§

impl<const BITS: usize, const LIMBS: usize> Shr<usize> for Signed<BITS, LIMBS>

§

type Output = Signed<BITS, LIMBS>

The resulting type after applying the >> operator.
§

fn shr(self, rhs: usize) -> <Signed<BITS, LIMBS> as Shr<usize>>::Output

Performs the >> operation. Read more
§

impl<const BITS: usize, const LIMBS: usize> ShrAssign<i16> for Signed<BITS, LIMBS>

§

fn shr_assign(&mut self, rhs: i16)

Performs the >>= operation. Read more
§

impl<const BITS: usize, const LIMBS: usize> ShrAssign<i32> for Signed<BITS, LIMBS>

§

fn shr_assign(&mut self, rhs: i32)

Performs the >>= operation. Read more
§

impl<const BITS: usize, const LIMBS: usize> ShrAssign<i64> for Signed<BITS, LIMBS>

§

fn shr_assign(&mut self, rhs: i64)

Performs the >>= operation. Read more
§

impl<const BITS: usize, const LIMBS: usize> ShrAssign<i8> for Signed<BITS, LIMBS>

§

fn shr_assign(&mut self, rhs: i8)

Performs the >>= operation. Read more
§

impl<const BITS: usize, const LIMBS: usize> ShrAssign<isize> for Signed<BITS, LIMBS>

§

fn shr_assign(&mut self, rhs: isize)

Performs the >>= operation. Read more
§

impl<const BITS: usize, const LIMBS: usize> ShrAssign<u16> for Signed<BITS, LIMBS>

§

fn shr_assign(&mut self, rhs: u16)

Performs the >>= operation. Read more
§

impl<const BITS: usize, const LIMBS: usize> ShrAssign<u32> for Signed<BITS, LIMBS>

§

fn shr_assign(&mut self, rhs: u32)

Performs the >>= operation. Read more
§

impl<const BITS: usize, const LIMBS: usize> ShrAssign<u64> for Signed<BITS, LIMBS>

§

fn shr_assign(&mut self, rhs: u64)

Performs the >>= operation. Read more
§

impl<const BITS: usize, const LIMBS: usize> ShrAssign<u8> for Signed<BITS, LIMBS>

§

fn shr_assign(&mut self, rhs: u8)

Performs the >>= operation. Read more
§

impl<const BITS: usize, const LIMBS: usize> ShrAssign<usize> for Signed<BITS, LIMBS>

§

fn shr_assign(&mut self, rhs: usize)

Performs the >>= operation. Read more
§

impl SolValue for Signed<104, 2>

§

type SolType = Int<104>

The Solidity type that this type corresponds to.
§

fn sol_name(&self) -> &'static str

The name of the associated Solidity type. Read more
§

fn sol_type_name(&self) -> Cow<'static, str>

👎Deprecated since 0.6.3: use sol_name instead
The name of the associated Solidity type. Read more
§

fn tokenize(&self) -> <Self::SolType as SolType>::Token<'_>

Tokenizes the given value into this type’s token. Read more
§

fn detokenize(token: <Self::SolType as SolType>::Token<'_>) -> Self
where Self: From<<Self::SolType as SolType>::RustType>,

Detokenize a value from the given token. Read more
§

fn abi_encoded_size(&self) -> usize

Calculate the ABI-encoded size of the data. Read more
§

fn eip712_data_word(&self) -> FixedBytes<32>

Encode this data according to EIP-712 encodeData rules, and hash it if necessary. Read more
§

fn abi_encode_packed_to(&self, out: &mut Vec<u8>)

Non-standard Packed Mode ABI encoding. Read more
§

fn abi_encode_packed(&self) -> Vec<u8>

Non-standard Packed Mode ABI encoding. Read more
§

fn abi_encode(&self) -> Vec<u8>

ABI-encodes the value. Read more
§

fn abi_encode_sequence(&self) -> Vec<u8>
where <Self::SolType as SolType>::Token<'a>: for<'a> TokenSeq<'a>,

Encodes an ABI sequence. Read more
§

fn abi_encode_params(&self) -> Vec<u8>
where <Self::SolType as SolType>::Token<'a>: for<'a> TokenSeq<'a>,

Encodes an ABI sequence suitable for function parameters. Read more
§

fn abi_decode(data: &[u8], validate: bool) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>,

ABI-decode this type from the given data. Read more
§

fn abi_decode_params<'de>( data: &'de [u8], validate: bool, ) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>, <Self::SolType as SolType>::Token<'de>: TokenSeq<'de>,

ABI-decode this type from the given data. Read more
§

fn abi_decode_sequence<'de>( data: &'de [u8], validate: bool, ) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>, <Self::SolType as SolType>::Token<'de>: TokenSeq<'de>,

ABI-decode this type from the given data. Read more
§

impl SolValue for Signed<112, 2>

§

type SolType = Int<112>

The Solidity type that this type corresponds to.
§

fn sol_name(&self) -> &'static str

The name of the associated Solidity type. Read more
§

fn sol_type_name(&self) -> Cow<'static, str>

👎Deprecated since 0.6.3: use sol_name instead
The name of the associated Solidity type. Read more
§

fn tokenize(&self) -> <Self::SolType as SolType>::Token<'_>

Tokenizes the given value into this type’s token. Read more
§

fn detokenize(token: <Self::SolType as SolType>::Token<'_>) -> Self
where Self: From<<Self::SolType as SolType>::RustType>,

Detokenize a value from the given token. Read more
§

fn abi_encoded_size(&self) -> usize

Calculate the ABI-encoded size of the data. Read more
§

fn eip712_data_word(&self) -> FixedBytes<32>

Encode this data according to EIP-712 encodeData rules, and hash it if necessary. Read more
§

fn abi_encode_packed_to(&self, out: &mut Vec<u8>)

Non-standard Packed Mode ABI encoding. Read more
§

fn abi_encode_packed(&self) -> Vec<u8>

Non-standard Packed Mode ABI encoding. Read more
§

fn abi_encode(&self) -> Vec<u8>

ABI-encodes the value. Read more
§

fn abi_encode_sequence(&self) -> Vec<u8>
where <Self::SolType as SolType>::Token<'a>: for<'a> TokenSeq<'a>,

Encodes an ABI sequence. Read more
§

fn abi_encode_params(&self) -> Vec<u8>
where <Self::SolType as SolType>::Token<'a>: for<'a> TokenSeq<'a>,

Encodes an ABI sequence suitable for function parameters. Read more
§

fn abi_decode(data: &[u8], validate: bool) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>,

ABI-decode this type from the given data. Read more
§

fn abi_decode_params<'de>( data: &'de [u8], validate: bool, ) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>, <Self::SolType as SolType>::Token<'de>: TokenSeq<'de>,

ABI-decode this type from the given data. Read more
§

fn abi_decode_sequence<'de>( data: &'de [u8], validate: bool, ) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>, <Self::SolType as SolType>::Token<'de>: TokenSeq<'de>,

ABI-decode this type from the given data. Read more
§

impl SolValue for Signed<120, 2>

§

type SolType = Int<120>

The Solidity type that this type corresponds to.
§

fn sol_name(&self) -> &'static str

The name of the associated Solidity type. Read more
§

fn sol_type_name(&self) -> Cow<'static, str>

👎Deprecated since 0.6.3: use sol_name instead
The name of the associated Solidity type. Read more
§

fn tokenize(&self) -> <Self::SolType as SolType>::Token<'_>

Tokenizes the given value into this type’s token. Read more
§

fn detokenize(token: <Self::SolType as SolType>::Token<'_>) -> Self
where Self: From<<Self::SolType as SolType>::RustType>,

Detokenize a value from the given token. Read more
§

fn abi_encoded_size(&self) -> usize

Calculate the ABI-encoded size of the data. Read more
§

fn eip712_data_word(&self) -> FixedBytes<32>

Encode this data according to EIP-712 encodeData rules, and hash it if necessary. Read more
§

fn abi_encode_packed_to(&self, out: &mut Vec<u8>)

Non-standard Packed Mode ABI encoding. Read more
§

fn abi_encode_packed(&self) -> Vec<u8>

Non-standard Packed Mode ABI encoding. Read more
§

fn abi_encode(&self) -> Vec<u8>

ABI-encodes the value. Read more
§

fn abi_encode_sequence(&self) -> Vec<u8>
where <Self::SolType as SolType>::Token<'a>: for<'a> TokenSeq<'a>,

Encodes an ABI sequence. Read more
§

fn abi_encode_params(&self) -> Vec<u8>
where <Self::SolType as SolType>::Token<'a>: for<'a> TokenSeq<'a>,

Encodes an ABI sequence suitable for function parameters. Read more
§

fn abi_decode(data: &[u8], validate: bool) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>,

ABI-decode this type from the given data. Read more
§

fn abi_decode_params<'de>( data: &'de [u8], validate: bool, ) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>, <Self::SolType as SolType>::Token<'de>: TokenSeq<'de>,

ABI-decode this type from the given data. Read more
§

fn abi_decode_sequence<'de>( data: &'de [u8], validate: bool, ) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>, <Self::SolType as SolType>::Token<'de>: TokenSeq<'de>,

ABI-decode this type from the given data. Read more
§

impl SolValue for Signed<136, 3>

§

type SolType = Int<136>

The Solidity type that this type corresponds to.
§

fn sol_name(&self) -> &'static str

The name of the associated Solidity type. Read more
§

fn sol_type_name(&self) -> Cow<'static, str>

👎Deprecated since 0.6.3: use sol_name instead
The name of the associated Solidity type. Read more
§

fn tokenize(&self) -> <Self::SolType as SolType>::Token<'_>

Tokenizes the given value into this type’s token. Read more
§

fn detokenize(token: <Self::SolType as SolType>::Token<'_>) -> Self
where Self: From<<Self::SolType as SolType>::RustType>,

Detokenize a value from the given token. Read more
§

fn abi_encoded_size(&self) -> usize

Calculate the ABI-encoded size of the data. Read more
§

fn eip712_data_word(&self) -> FixedBytes<32>

Encode this data according to EIP-712 encodeData rules, and hash it if necessary. Read more
§

fn abi_encode_packed_to(&self, out: &mut Vec<u8>)

Non-standard Packed Mode ABI encoding. Read more
§

fn abi_encode_packed(&self) -> Vec<u8>

Non-standard Packed Mode ABI encoding. Read more
§

fn abi_encode(&self) -> Vec<u8>

ABI-encodes the value. Read more
§

fn abi_encode_sequence(&self) -> Vec<u8>
where <Self::SolType as SolType>::Token<'a>: for<'a> TokenSeq<'a>,

Encodes an ABI sequence. Read more
§

fn abi_encode_params(&self) -> Vec<u8>
where <Self::SolType as SolType>::Token<'a>: for<'a> TokenSeq<'a>,

Encodes an ABI sequence suitable for function parameters. Read more
§

fn abi_decode(data: &[u8], validate: bool) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>,

ABI-decode this type from the given data. Read more
§

fn abi_decode_params<'de>( data: &'de [u8], validate: bool, ) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>, <Self::SolType as SolType>::Token<'de>: TokenSeq<'de>,

ABI-decode this type from the given data. Read more
§

fn abi_decode_sequence<'de>( data: &'de [u8], validate: bool, ) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>, <Self::SolType as SolType>::Token<'de>: TokenSeq<'de>,

ABI-decode this type from the given data. Read more
§

impl SolValue for Signed<144, 3>

§

type SolType = Int<144>

The Solidity type that this type corresponds to.
§

fn sol_name(&self) -> &'static str

The name of the associated Solidity type. Read more
§

fn sol_type_name(&self) -> Cow<'static, str>

👎Deprecated since 0.6.3: use sol_name instead
The name of the associated Solidity type. Read more
§

fn tokenize(&self) -> <Self::SolType as SolType>::Token<'_>

Tokenizes the given value into this type’s token. Read more
§

fn detokenize(token: <Self::SolType as SolType>::Token<'_>) -> Self
where Self: From<<Self::SolType as SolType>::RustType>,

Detokenize a value from the given token. Read more
§

fn abi_encoded_size(&self) -> usize

Calculate the ABI-encoded size of the data. Read more
§

fn eip712_data_word(&self) -> FixedBytes<32>

Encode this data according to EIP-712 encodeData rules, and hash it if necessary. Read more
§

fn abi_encode_packed_to(&self, out: &mut Vec<u8>)

Non-standard Packed Mode ABI encoding. Read more
§

fn abi_encode_packed(&self) -> Vec<u8>

Non-standard Packed Mode ABI encoding. Read more
§

fn abi_encode(&self) -> Vec<u8>

ABI-encodes the value. Read more
§

fn abi_encode_sequence(&self) -> Vec<u8>
where <Self::SolType as SolType>::Token<'a>: for<'a> TokenSeq<'a>,

Encodes an ABI sequence. Read more
§

fn abi_encode_params(&self) -> Vec<u8>
where <Self::SolType as SolType>::Token<'a>: for<'a> TokenSeq<'a>,

Encodes an ABI sequence suitable for function parameters. Read more
§

fn abi_decode(data: &[u8], validate: bool) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>,

ABI-decode this type from the given data. Read more
§

fn abi_decode_params<'de>( data: &'de [u8], validate: bool, ) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>, <Self::SolType as SolType>::Token<'de>: TokenSeq<'de>,

ABI-decode this type from the given data. Read more
§

fn abi_decode_sequence<'de>( data: &'de [u8], validate: bool, ) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>, <Self::SolType as SolType>::Token<'de>: TokenSeq<'de>,

ABI-decode this type from the given data. Read more
§

impl SolValue for Signed<152, 3>

§

type SolType = Int<152>

The Solidity type that this type corresponds to.
§

fn sol_name(&self) -> &'static str

The name of the associated Solidity type. Read more
§

fn sol_type_name(&self) -> Cow<'static, str>

👎Deprecated since 0.6.3: use sol_name instead
The name of the associated Solidity type. Read more
§

fn tokenize(&self) -> <Self::SolType as SolType>::Token<'_>

Tokenizes the given value into this type’s token. Read more
§

fn detokenize(token: <Self::SolType as SolType>::Token<'_>) -> Self
where Self: From<<Self::SolType as SolType>::RustType>,

Detokenize a value from the given token. Read more
§

fn abi_encoded_size(&self) -> usize

Calculate the ABI-encoded size of the data. Read more
§

fn eip712_data_word(&self) -> FixedBytes<32>

Encode this data according to EIP-712 encodeData rules, and hash it if necessary. Read more
§

fn abi_encode_packed_to(&self, out: &mut Vec<u8>)

Non-standard Packed Mode ABI encoding. Read more
§

fn abi_encode_packed(&self) -> Vec<u8>

Non-standard Packed Mode ABI encoding. Read more
§

fn abi_encode(&self) -> Vec<u8>

ABI-encodes the value. Read more
§

fn abi_encode_sequence(&self) -> Vec<u8>
where <Self::SolType as SolType>::Token<'a>: for<'a> TokenSeq<'a>,

Encodes an ABI sequence. Read more
§

fn abi_encode_params(&self) -> Vec<u8>
where <Self::SolType as SolType>::Token<'a>: for<'a> TokenSeq<'a>,

Encodes an ABI sequence suitable for function parameters. Read more
§

fn abi_decode(data: &[u8], validate: bool) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>,

ABI-decode this type from the given data. Read more
§

fn abi_decode_params<'de>( data: &'de [u8], validate: bool, ) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>, <Self::SolType as SolType>::Token<'de>: TokenSeq<'de>,

ABI-decode this type from the given data. Read more
§

fn abi_decode_sequence<'de>( data: &'de [u8], validate: bool, ) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>, <Self::SolType as SolType>::Token<'de>: TokenSeq<'de>,

ABI-decode this type from the given data. Read more
§

impl SolValue for Signed<160, 3>

§

type SolType = Int<160>

The Solidity type that this type corresponds to.
§

fn sol_name(&self) -> &'static str

The name of the associated Solidity type. Read more
§

fn sol_type_name(&self) -> Cow<'static, str>

👎Deprecated since 0.6.3: use sol_name instead
The name of the associated Solidity type. Read more
§

fn tokenize(&self) -> <Self::SolType as SolType>::Token<'_>

Tokenizes the given value into this type’s token. Read more
§

fn detokenize(token: <Self::SolType as SolType>::Token<'_>) -> Self
where Self: From<<Self::SolType as SolType>::RustType>,

Detokenize a value from the given token. Read more
§

fn abi_encoded_size(&self) -> usize

Calculate the ABI-encoded size of the data. Read more
§

fn eip712_data_word(&self) -> FixedBytes<32>

Encode this data according to EIP-712 encodeData rules, and hash it if necessary. Read more
§

fn abi_encode_packed_to(&self, out: &mut Vec<u8>)

Non-standard Packed Mode ABI encoding. Read more
§

fn abi_encode_packed(&self) -> Vec<u8>

Non-standard Packed Mode ABI encoding. Read more
§

fn abi_encode(&self) -> Vec<u8>

ABI-encodes the value. Read more
§

fn abi_encode_sequence(&self) -> Vec<u8>
where <Self::SolType as SolType>::Token<'a>: for<'a> TokenSeq<'a>,

Encodes an ABI sequence. Read more
§

fn abi_encode_params(&self) -> Vec<u8>
where <Self::SolType as SolType>::Token<'a>: for<'a> TokenSeq<'a>,

Encodes an ABI sequence suitable for function parameters. Read more
§

fn abi_decode(data: &[u8], validate: bool) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>,

ABI-decode this type from the given data. Read more
§

fn abi_decode_params<'de>( data: &'de [u8], validate: bool, ) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>, <Self::SolType as SolType>::Token<'de>: TokenSeq<'de>,

ABI-decode this type from the given data. Read more
§

fn abi_decode_sequence<'de>( data: &'de [u8], validate: bool, ) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>, <Self::SolType as SolType>::Token<'de>: TokenSeq<'de>,

ABI-decode this type from the given data. Read more
§

impl SolValue for Signed<168, 3>

§

type SolType = Int<168>

The Solidity type that this type corresponds to.
§

fn sol_name(&self) -> &'static str

The name of the associated Solidity type. Read more
§

fn sol_type_name(&self) -> Cow<'static, str>

👎Deprecated since 0.6.3: use sol_name instead
The name of the associated Solidity type. Read more
§

fn tokenize(&self) -> <Self::SolType as SolType>::Token<'_>

Tokenizes the given value into this type’s token. Read more
§

fn detokenize(token: <Self::SolType as SolType>::Token<'_>) -> Self
where Self: From<<Self::SolType as SolType>::RustType>,

Detokenize a value from the given token. Read more
§

fn abi_encoded_size(&self) -> usize

Calculate the ABI-encoded size of the data. Read more
§

fn eip712_data_word(&self) -> FixedBytes<32>

Encode this data according to EIP-712 encodeData rules, and hash it if necessary. Read more
§

fn abi_encode_packed_to(&self, out: &mut Vec<u8>)

Non-standard Packed Mode ABI encoding. Read more
§

fn abi_encode_packed(&self) -> Vec<u8>

Non-standard Packed Mode ABI encoding. Read more
§

fn abi_encode(&self) -> Vec<u8>

ABI-encodes the value. Read more
§

fn abi_encode_sequence(&self) -> Vec<u8>
where <Self::SolType as SolType>::Token<'a>: for<'a> TokenSeq<'a>,

Encodes an ABI sequence. Read more
§

fn abi_encode_params(&self) -> Vec<u8>
where <Self::SolType as SolType>::Token<'a>: for<'a> TokenSeq<'a>,

Encodes an ABI sequence suitable for function parameters. Read more
§

fn abi_decode(data: &[u8], validate: bool) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>,

ABI-decode this type from the given data. Read more
§

fn abi_decode_params<'de>( data: &'de [u8], validate: bool, ) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>, <Self::SolType as SolType>::Token<'de>: TokenSeq<'de>,

ABI-decode this type from the given data. Read more
§

fn abi_decode_sequence<'de>( data: &'de [u8], validate: bool, ) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>, <Self::SolType as SolType>::Token<'de>: TokenSeq<'de>,

ABI-decode this type from the given data. Read more
§

impl SolValue for Signed<176, 3>

§

type SolType = Int<176>

The Solidity type that this type corresponds to.
§

fn sol_name(&self) -> &'static str

The name of the associated Solidity type. Read more
§

fn sol_type_name(&self) -> Cow<'static, str>

👎Deprecated since 0.6.3: use sol_name instead
The name of the associated Solidity type. Read more
§

fn tokenize(&self) -> <Self::SolType as SolType>::Token<'_>

Tokenizes the given value into this type’s token. Read more
§

fn detokenize(token: <Self::SolType as SolType>::Token<'_>) -> Self
where Self: From<<Self::SolType as SolType>::RustType>,

Detokenize a value from the given token. Read more
§

fn abi_encoded_size(&self) -> usize

Calculate the ABI-encoded size of the data. Read more
§

fn eip712_data_word(&self) -> FixedBytes<32>

Encode this data according to EIP-712 encodeData rules, and hash it if necessary. Read more
§

fn abi_encode_packed_to(&self, out: &mut Vec<u8>)

Non-standard Packed Mode ABI encoding. Read more
§

fn abi_encode_packed(&self) -> Vec<u8>

Non-standard Packed Mode ABI encoding. Read more
§

fn abi_encode(&self) -> Vec<u8>

ABI-encodes the value. Read more
§

fn abi_encode_sequence(&self) -> Vec<u8>
where <Self::SolType as SolType>::Token<'a>: for<'a> TokenSeq<'a>,

Encodes an ABI sequence. Read more
§

fn abi_encode_params(&self) -> Vec<u8>
where <Self::SolType as SolType>::Token<'a>: for<'a> TokenSeq<'a>,

Encodes an ABI sequence suitable for function parameters. Read more
§

fn abi_decode(data: &[u8], validate: bool) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>,

ABI-decode this type from the given data. Read more
§

fn abi_decode_params<'de>( data: &'de [u8], validate: bool, ) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>, <Self::SolType as SolType>::Token<'de>: TokenSeq<'de>,

ABI-decode this type from the given data. Read more
§

fn abi_decode_sequence<'de>( data: &'de [u8], validate: bool, ) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>, <Self::SolType as SolType>::Token<'de>: TokenSeq<'de>,

ABI-decode this type from the given data. Read more
§

impl SolValue for Signed<184, 3>

§

type SolType = Int<184>

The Solidity type that this type corresponds to.
§

fn sol_name(&self) -> &'static str

The name of the associated Solidity type. Read more
§

fn sol_type_name(&self) -> Cow<'static, str>

👎Deprecated since 0.6.3: use sol_name instead
The name of the associated Solidity type. Read more
§

fn tokenize(&self) -> <Self::SolType as SolType>::Token<'_>

Tokenizes the given value into this type’s token. Read more
§

fn detokenize(token: <Self::SolType as SolType>::Token<'_>) -> Self
where Self: From<<Self::SolType as SolType>::RustType>,

Detokenize a value from the given token. Read more
§

fn abi_encoded_size(&self) -> usize

Calculate the ABI-encoded size of the data. Read more
§

fn eip712_data_word(&self) -> FixedBytes<32>

Encode this data according to EIP-712 encodeData rules, and hash it if necessary. Read more
§

fn abi_encode_packed_to(&self, out: &mut Vec<u8>)

Non-standard Packed Mode ABI encoding. Read more
§

fn abi_encode_packed(&self) -> Vec<u8>

Non-standard Packed Mode ABI encoding. Read more
§

fn abi_encode(&self) -> Vec<u8>

ABI-encodes the value. Read more
§

fn abi_encode_sequence(&self) -> Vec<u8>
where <Self::SolType as SolType>::Token<'a>: for<'a> TokenSeq<'a>,

Encodes an ABI sequence. Read more
§

fn abi_encode_params(&self) -> Vec<u8>
where <Self::SolType as SolType>::Token<'a>: for<'a> TokenSeq<'a>,

Encodes an ABI sequence suitable for function parameters. Read more
§

fn abi_decode(data: &[u8], validate: bool) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>,

ABI-decode this type from the given data. Read more
§

fn abi_decode_params<'de>( data: &'de [u8], validate: bool, ) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>, <Self::SolType as SolType>::Token<'de>: TokenSeq<'de>,

ABI-decode this type from the given data. Read more
§

fn abi_decode_sequence<'de>( data: &'de [u8], validate: bool, ) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>, <Self::SolType as SolType>::Token<'de>: TokenSeq<'de>,

ABI-decode this type from the given data. Read more
§

impl SolValue for Signed<192, 3>

§

type SolType = Int<192>

The Solidity type that this type corresponds to.
§

fn sol_name(&self) -> &'static str

The name of the associated Solidity type. Read more
§

fn sol_type_name(&self) -> Cow<'static, str>

👎Deprecated since 0.6.3: use sol_name instead
The name of the associated Solidity type. Read more
§

fn tokenize(&self) -> <Self::SolType as SolType>::Token<'_>

Tokenizes the given value into this type’s token. Read more
§

fn detokenize(token: <Self::SolType as SolType>::Token<'_>) -> Self
where Self: From<<Self::SolType as SolType>::RustType>,

Detokenize a value from the given token. Read more
§

fn abi_encoded_size(&self) -> usize

Calculate the ABI-encoded size of the data. Read more
§

fn eip712_data_word(&self) -> FixedBytes<32>

Encode this data according to EIP-712 encodeData rules, and hash it if necessary. Read more
§

fn abi_encode_packed_to(&self, out: &mut Vec<u8>)

Non-standard Packed Mode ABI encoding. Read more
§

fn abi_encode_packed(&self) -> Vec<u8>

Non-standard Packed Mode ABI encoding. Read more
§

fn abi_encode(&self) -> Vec<u8>

ABI-encodes the value. Read more
§

fn abi_encode_sequence(&self) -> Vec<u8>
where <Self::SolType as SolType>::Token<'a>: for<'a> TokenSeq<'a>,

Encodes an ABI sequence. Read more
§

fn abi_encode_params(&self) -> Vec<u8>
where <Self::SolType as SolType>::Token<'a>: for<'a> TokenSeq<'a>,

Encodes an ABI sequence suitable for function parameters. Read more
§

fn abi_decode(data: &[u8], validate: bool) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>,

ABI-decode this type from the given data. Read more
§

fn abi_decode_params<'de>( data: &'de [u8], validate: bool, ) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>, <Self::SolType as SolType>::Token<'de>: TokenSeq<'de>,

ABI-decode this type from the given data. Read more
§

fn abi_decode_sequence<'de>( data: &'de [u8], validate: bool, ) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>, <Self::SolType as SolType>::Token<'de>: TokenSeq<'de>,

ABI-decode this type from the given data. Read more
§

impl SolValue for Signed<200, 4>

§

type SolType = Int<200>

The Solidity type that this type corresponds to.
§

fn sol_name(&self) -> &'static str

The name of the associated Solidity type. Read more
§

fn sol_type_name(&self) -> Cow<'static, str>

👎Deprecated since 0.6.3: use sol_name instead
The name of the associated Solidity type. Read more
§

fn tokenize(&self) -> <Self::SolType as SolType>::Token<'_>

Tokenizes the given value into this type’s token. Read more
§

fn detokenize(token: <Self::SolType as SolType>::Token<'_>) -> Self
where Self: From<<Self::SolType as SolType>::RustType>,

Detokenize a value from the given token. Read more
§

fn abi_encoded_size(&self) -> usize

Calculate the ABI-encoded size of the data. Read more
§

fn eip712_data_word(&self) -> FixedBytes<32>

Encode this data according to EIP-712 encodeData rules, and hash it if necessary. Read more
§

fn abi_encode_packed_to(&self, out: &mut Vec<u8>)

Non-standard Packed Mode ABI encoding. Read more
§

fn abi_encode_packed(&self) -> Vec<u8>

Non-standard Packed Mode ABI encoding. Read more
§

fn abi_encode(&self) -> Vec<u8>

ABI-encodes the value. Read more
§

fn abi_encode_sequence(&self) -> Vec<u8>
where <Self::SolType as SolType>::Token<'a>: for<'a> TokenSeq<'a>,

Encodes an ABI sequence. Read more
§

fn abi_encode_params(&self) -> Vec<u8>
where <Self::SolType as SolType>::Token<'a>: for<'a> TokenSeq<'a>,

Encodes an ABI sequence suitable for function parameters. Read more
§

fn abi_decode(data: &[u8], validate: bool) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>,

ABI-decode this type from the given data. Read more
§

fn abi_decode_params<'de>( data: &'de [u8], validate: bool, ) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>, <Self::SolType as SolType>::Token<'de>: TokenSeq<'de>,

ABI-decode this type from the given data. Read more
§

fn abi_decode_sequence<'de>( data: &'de [u8], validate: bool, ) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>, <Self::SolType as SolType>::Token<'de>: TokenSeq<'de>,

ABI-decode this type from the given data. Read more
§

impl SolValue for Signed<208, 4>

§

type SolType = Int<208>

The Solidity type that this type corresponds to.
§

fn sol_name(&self) -> &'static str

The name of the associated Solidity type. Read more
§

fn sol_type_name(&self) -> Cow<'static, str>

👎Deprecated since 0.6.3: use sol_name instead
The name of the associated Solidity type. Read more
§

fn tokenize(&self) -> <Self::SolType as SolType>::Token<'_>

Tokenizes the given value into this type’s token. Read more
§

fn detokenize(token: <Self::SolType as SolType>::Token<'_>) -> Self
where Self: From<<Self::SolType as SolType>::RustType>,

Detokenize a value from the given token. Read more
§

fn abi_encoded_size(&self) -> usize

Calculate the ABI-encoded size of the data. Read more
§

fn eip712_data_word(&self) -> FixedBytes<32>

Encode this data according to EIP-712 encodeData rules, and hash it if necessary. Read more
§

fn abi_encode_packed_to(&self, out: &mut Vec<u8>)

Non-standard Packed Mode ABI encoding. Read more
§

fn abi_encode_packed(&self) -> Vec<u8>

Non-standard Packed Mode ABI encoding. Read more
§

fn abi_encode(&self) -> Vec<u8>

ABI-encodes the value. Read more
§

fn abi_encode_sequence(&self) -> Vec<u8>
where <Self::SolType as SolType>::Token<'a>: for<'a> TokenSeq<'a>,

Encodes an ABI sequence. Read more
§

fn abi_encode_params(&self) -> Vec<u8>
where <Self::SolType as SolType>::Token<'a>: for<'a> TokenSeq<'a>,

Encodes an ABI sequence suitable for function parameters. Read more
§

fn abi_decode(data: &[u8], validate: bool) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>,

ABI-decode this type from the given data. Read more
§

fn abi_decode_params<'de>( data: &'de [u8], validate: bool, ) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>, <Self::SolType as SolType>::Token<'de>: TokenSeq<'de>,

ABI-decode this type from the given data. Read more
§

fn abi_decode_sequence<'de>( data: &'de [u8], validate: bool, ) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>, <Self::SolType as SolType>::Token<'de>: TokenSeq<'de>,

ABI-decode this type from the given data. Read more
§

impl SolValue for Signed<216, 4>

§

type SolType = Int<216>

The Solidity type that this type corresponds to.
§

fn sol_name(&self) -> &'static str

The name of the associated Solidity type. Read more
§

fn sol_type_name(&self) -> Cow<'static, str>

👎Deprecated since 0.6.3: use sol_name instead
The name of the associated Solidity type. Read more
§

fn tokenize(&self) -> <Self::SolType as SolType>::Token<'_>

Tokenizes the given value into this type’s token. Read more
§

fn detokenize(token: <Self::SolType as SolType>::Token<'_>) -> Self
where Self: From<<Self::SolType as SolType>::RustType>,

Detokenize a value from the given token. Read more
§

fn abi_encoded_size(&self) -> usize

Calculate the ABI-encoded size of the data. Read more
§

fn eip712_data_word(&self) -> FixedBytes<32>

Encode this data according to EIP-712 encodeData rules, and hash it if necessary. Read more
§

fn abi_encode_packed_to(&self, out: &mut Vec<u8>)

Non-standard Packed Mode ABI encoding. Read more
§

fn abi_encode_packed(&self) -> Vec<u8>

Non-standard Packed Mode ABI encoding. Read more
§

fn abi_encode(&self) -> Vec<u8>

ABI-encodes the value. Read more
§

fn abi_encode_sequence(&self) -> Vec<u8>
where <Self::SolType as SolType>::Token<'a>: for<'a> TokenSeq<'a>,

Encodes an ABI sequence. Read more
§

fn abi_encode_params(&self) -> Vec<u8>
where <Self::SolType as SolType>::Token<'a>: for<'a> TokenSeq<'a>,

Encodes an ABI sequence suitable for function parameters. Read more
§

fn abi_decode(data: &[u8], validate: bool) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>,

ABI-decode this type from the given data. Read more
§

fn abi_decode_params<'de>( data: &'de [u8], validate: bool, ) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>, <Self::SolType as SolType>::Token<'de>: TokenSeq<'de>,

ABI-decode this type from the given data. Read more
§

fn abi_decode_sequence<'de>( data: &'de [u8], validate: bool, ) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>, <Self::SolType as SolType>::Token<'de>: TokenSeq<'de>,

ABI-decode this type from the given data. Read more
§

impl SolValue for Signed<224, 4>

§

type SolType = Int<224>

The Solidity type that this type corresponds to.
§

fn sol_name(&self) -> &'static str

The name of the associated Solidity type. Read more
§

fn sol_type_name(&self) -> Cow<'static, str>

👎Deprecated since 0.6.3: use sol_name instead
The name of the associated Solidity type. Read more
§

fn tokenize(&self) -> <Self::SolType as SolType>::Token<'_>

Tokenizes the given value into this type’s token. Read more
§

fn detokenize(token: <Self::SolType as SolType>::Token<'_>) -> Self
where Self: From<<Self::SolType as SolType>::RustType>,

Detokenize a value from the given token. Read more
§

fn abi_encoded_size(&self) -> usize

Calculate the ABI-encoded size of the data. Read more
§

fn eip712_data_word(&self) -> FixedBytes<32>

Encode this data according to EIP-712 encodeData rules, and hash it if necessary. Read more
§

fn abi_encode_packed_to(&self, out: &mut Vec<u8>)

Non-standard Packed Mode ABI encoding. Read more
§

fn abi_encode_packed(&self) -> Vec<u8>

Non-standard Packed Mode ABI encoding. Read more
§

fn abi_encode(&self) -> Vec<u8>

ABI-encodes the value. Read more
§

fn abi_encode_sequence(&self) -> Vec<u8>
where <Self::SolType as SolType>::Token<'a>: for<'a> TokenSeq<'a>,

Encodes an ABI sequence. Read more
§

fn abi_encode_params(&self) -> Vec<u8>
where <Self::SolType as SolType>::Token<'a>: for<'a> TokenSeq<'a>,

Encodes an ABI sequence suitable for function parameters. Read more
§

fn abi_decode(data: &[u8], validate: bool) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>,

ABI-decode this type from the given data. Read more
§

fn abi_decode_params<'de>( data: &'de [u8], validate: bool, ) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>, <Self::SolType as SolType>::Token<'de>: TokenSeq<'de>,

ABI-decode this type from the given data. Read more
§

fn abi_decode_sequence<'de>( data: &'de [u8], validate: bool, ) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>, <Self::SolType as SolType>::Token<'de>: TokenSeq<'de>,

ABI-decode this type from the given data. Read more
§

impl SolValue for Signed<232, 4>

§

type SolType = Int<232>

The Solidity type that this type corresponds to.
§

fn sol_name(&self) -> &'static str

The name of the associated Solidity type. Read more
§

fn sol_type_name(&self) -> Cow<'static, str>

👎Deprecated since 0.6.3: use sol_name instead
The name of the associated Solidity type. Read more
§

fn tokenize(&self) -> <Self::SolType as SolType>::Token<'_>

Tokenizes the given value into this type’s token. Read more
§

fn detokenize(token: <Self::SolType as SolType>::Token<'_>) -> Self
where Self: From<<Self::SolType as SolType>::RustType>,

Detokenize a value from the given token. Read more
§

fn abi_encoded_size(&self) -> usize

Calculate the ABI-encoded size of the data. Read more
§

fn eip712_data_word(&self) -> FixedBytes<32>

Encode this data according to EIP-712 encodeData rules, and hash it if necessary. Read more
§

fn abi_encode_packed_to(&self, out: &mut Vec<u8>)

Non-standard Packed Mode ABI encoding. Read more
§

fn abi_encode_packed(&self) -> Vec<u8>

Non-standard Packed Mode ABI encoding. Read more
§

fn abi_encode(&self) -> Vec<u8>

ABI-encodes the value. Read more
§

fn abi_encode_sequence(&self) -> Vec<u8>
where <Self::SolType as SolType>::Token<'a>: for<'a> TokenSeq<'a>,

Encodes an ABI sequence. Read more
§

fn abi_encode_params(&self) -> Vec<u8>
where <Self::SolType as SolType>::Token<'a>: for<'a> TokenSeq<'a>,

Encodes an ABI sequence suitable for function parameters. Read more
§

fn abi_decode(data: &[u8], validate: bool) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>,

ABI-decode this type from the given data. Read more
§

fn abi_decode_params<'de>( data: &'de [u8], validate: bool, ) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>, <Self::SolType as SolType>::Token<'de>: TokenSeq<'de>,

ABI-decode this type from the given data. Read more
§

fn abi_decode_sequence<'de>( data: &'de [u8], validate: bool, ) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>, <Self::SolType as SolType>::Token<'de>: TokenSeq<'de>,

ABI-decode this type from the given data. Read more
§

impl SolValue for Signed<24, 1>

§

type SolType = Int<24>

The Solidity type that this type corresponds to.
§

fn sol_name(&self) -> &'static str

The name of the associated Solidity type. Read more
§

fn sol_type_name(&self) -> Cow<'static, str>

👎Deprecated since 0.6.3: use sol_name instead
The name of the associated Solidity type. Read more
§

fn tokenize(&self) -> <Self::SolType as SolType>::Token<'_>

Tokenizes the given value into this type’s token. Read more
§

fn detokenize(token: <Self::SolType as SolType>::Token<'_>) -> Self
where Self: From<<Self::SolType as SolType>::RustType>,

Detokenize a value from the given token. Read more
§

fn abi_encoded_size(&self) -> usize

Calculate the ABI-encoded size of the data. Read more
§

fn eip712_data_word(&self) -> FixedBytes<32>

Encode this data according to EIP-712 encodeData rules, and hash it if necessary. Read more
§

fn abi_encode_packed_to(&self, out: &mut Vec<u8>)

Non-standard Packed Mode ABI encoding. Read more
§

fn abi_encode_packed(&self) -> Vec<u8>

Non-standard Packed Mode ABI encoding. Read more
§

fn abi_encode(&self) -> Vec<u8>

ABI-encodes the value. Read more
§

fn abi_encode_sequence(&self) -> Vec<u8>
where <Self::SolType as SolType>::Token<'a>: for<'a> TokenSeq<'a>,

Encodes an ABI sequence. Read more
§

fn abi_encode_params(&self) -> Vec<u8>
where <Self::SolType as SolType>::Token<'a>: for<'a> TokenSeq<'a>,

Encodes an ABI sequence suitable for function parameters. Read more
§

fn abi_decode(data: &[u8], validate: bool) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>,

ABI-decode this type from the given data. Read more
§

fn abi_decode_params<'de>( data: &'de [u8], validate: bool, ) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>, <Self::SolType as SolType>::Token<'de>: TokenSeq<'de>,

ABI-decode this type from the given data. Read more
§

fn abi_decode_sequence<'de>( data: &'de [u8], validate: bool, ) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>, <Self::SolType as SolType>::Token<'de>: TokenSeq<'de>,

ABI-decode this type from the given data. Read more
§

impl SolValue for Signed<240, 4>

§

type SolType = Int<240>

The Solidity type that this type corresponds to.
§

fn sol_name(&self) -> &'static str

The name of the associated Solidity type. Read more
§

fn sol_type_name(&self) -> Cow<'static, str>

👎Deprecated since 0.6.3: use sol_name instead
The name of the associated Solidity type. Read more
§

fn tokenize(&self) -> <Self::SolType as SolType>::Token<'_>

Tokenizes the given value into this type’s token. Read more
§

fn detokenize(token: <Self::SolType as SolType>::Token<'_>) -> Self
where Self: From<<Self::SolType as SolType>::RustType>,

Detokenize a value from the given token. Read more
§

fn abi_encoded_size(&self) -> usize

Calculate the ABI-encoded size of the data. Read more
§

fn eip712_data_word(&self) -> FixedBytes<32>

Encode this data according to EIP-712 encodeData rules, and hash it if necessary. Read more
§

fn abi_encode_packed_to(&self, out: &mut Vec<u8>)

Non-standard Packed Mode ABI encoding. Read more
§

fn abi_encode_packed(&self) -> Vec<u8>

Non-standard Packed Mode ABI encoding. Read more
§

fn abi_encode(&self) -> Vec<u8>

ABI-encodes the value. Read more
§

fn abi_encode_sequence(&self) -> Vec<u8>
where <Self::SolType as SolType>::Token<'a>: for<'a> TokenSeq<'a>,

Encodes an ABI sequence. Read more
§

fn abi_encode_params(&self) -> Vec<u8>
where <Self::SolType as SolType>::Token<'a>: for<'a> TokenSeq<'a>,

Encodes an ABI sequence suitable for function parameters. Read more
§

fn abi_decode(data: &[u8], validate: bool) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>,

ABI-decode this type from the given data. Read more
§

fn abi_decode_params<'de>( data: &'de [u8], validate: bool, ) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>, <Self::SolType as SolType>::Token<'de>: TokenSeq<'de>,

ABI-decode this type from the given data. Read more
§

fn abi_decode_sequence<'de>( data: &'de [u8], validate: bool, ) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>, <Self::SolType as SolType>::Token<'de>: TokenSeq<'de>,

ABI-decode this type from the given data. Read more
§

impl SolValue for Signed<248, 4>

§

type SolType = Int<248>

The Solidity type that this type corresponds to.
§

fn sol_name(&self) -> &'static str

The name of the associated Solidity type. Read more
§

fn sol_type_name(&self) -> Cow<'static, str>

👎Deprecated since 0.6.3: use sol_name instead
The name of the associated Solidity type. Read more
§

fn tokenize(&self) -> <Self::SolType as SolType>::Token<'_>

Tokenizes the given value into this type’s token. Read more
§

fn detokenize(token: <Self::SolType as SolType>::Token<'_>) -> Self
where Self: From<<Self::SolType as SolType>::RustType>,

Detokenize a value from the given token. Read more
§

fn abi_encoded_size(&self) -> usize

Calculate the ABI-encoded size of the data. Read more
§

fn eip712_data_word(&self) -> FixedBytes<32>

Encode this data according to EIP-712 encodeData rules, and hash it if necessary. Read more
§

fn abi_encode_packed_to(&self, out: &mut Vec<u8>)

Non-standard Packed Mode ABI encoding. Read more
§

fn abi_encode_packed(&self) -> Vec<u8>

Non-standard Packed Mode ABI encoding. Read more
§

fn abi_encode(&self) -> Vec<u8>

ABI-encodes the value. Read more
§

fn abi_encode_sequence(&self) -> Vec<u8>
where <Self::SolType as SolType>::Token<'a>: for<'a> TokenSeq<'a>,

Encodes an ABI sequence. Read more
§

fn abi_encode_params(&self) -> Vec<u8>
where <Self::SolType as SolType>::Token<'a>: for<'a> TokenSeq<'a>,

Encodes an ABI sequence suitable for function parameters. Read more
§

fn abi_decode(data: &[u8], validate: bool) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>,

ABI-decode this type from the given data. Read more
§

fn abi_decode_params<'de>( data: &'de [u8], validate: bool, ) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>, <Self::SolType as SolType>::Token<'de>: TokenSeq<'de>,

ABI-decode this type from the given data. Read more
§

fn abi_decode_sequence<'de>( data: &'de [u8], validate: bool, ) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>, <Self::SolType as SolType>::Token<'de>: TokenSeq<'de>,

ABI-decode this type from the given data. Read more
§

impl SolValue for Signed<256, 4>

§

type SolType = Int<256>

The Solidity type that this type corresponds to.
§

fn sol_name(&self) -> &'static str

The name of the associated Solidity type. Read more
§

fn sol_type_name(&self) -> Cow<'static, str>

👎Deprecated since 0.6.3: use sol_name instead
The name of the associated Solidity type. Read more
§

fn tokenize(&self) -> <Self::SolType as SolType>::Token<'_>

Tokenizes the given value into this type’s token. Read more
§

fn detokenize(token: <Self::SolType as SolType>::Token<'_>) -> Self
where Self: From<<Self::SolType as SolType>::RustType>,

Detokenize a value from the given token. Read more
§

fn abi_encoded_size(&self) -> usize

Calculate the ABI-encoded size of the data. Read more
§

fn eip712_data_word(&self) -> FixedBytes<32>

Encode this data according to EIP-712 encodeData rules, and hash it if necessary. Read more
§

fn abi_encode_packed_to(&self, out: &mut Vec<u8>)

Non-standard Packed Mode ABI encoding. Read more
§

fn abi_encode_packed(&self) -> Vec<u8>

Non-standard Packed Mode ABI encoding. Read more
§

fn abi_encode(&self) -> Vec<u8>

ABI-encodes the value. Read more
§

fn abi_encode_sequence(&self) -> Vec<u8>
where <Self::SolType as SolType>::Token<'a>: for<'a> TokenSeq<'a>,

Encodes an ABI sequence. Read more
§

fn abi_encode_params(&self) -> Vec<u8>
where <Self::SolType as SolType>::Token<'a>: for<'a> TokenSeq<'a>,

Encodes an ABI sequence suitable for function parameters. Read more
§

fn abi_decode(data: &[u8], validate: bool) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>,

ABI-decode this type from the given data. Read more
§

fn abi_decode_params<'de>( data: &'de [u8], validate: bool, ) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>, <Self::SolType as SolType>::Token<'de>: TokenSeq<'de>,

ABI-decode this type from the given data. Read more
§

fn abi_decode_sequence<'de>( data: &'de [u8], validate: bool, ) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>, <Self::SolType as SolType>::Token<'de>: TokenSeq<'de>,

ABI-decode this type from the given data. Read more
§

impl SolValue for Signed<40, 1>

§

type SolType = Int<40>

The Solidity type that this type corresponds to.
§

fn sol_name(&self) -> &'static str

The name of the associated Solidity type. Read more
§

fn sol_type_name(&self) -> Cow<'static, str>

👎Deprecated since 0.6.3: use sol_name instead
The name of the associated Solidity type. Read more
§

fn tokenize(&self) -> <Self::SolType as SolType>::Token<'_>

Tokenizes the given value into this type’s token. Read more
§

fn detokenize(token: <Self::SolType as SolType>::Token<'_>) -> Self
where Self: From<<Self::SolType as SolType>::RustType>,

Detokenize a value from the given token. Read more
§

fn abi_encoded_size(&self) -> usize

Calculate the ABI-encoded size of the data. Read more
§

fn eip712_data_word(&self) -> FixedBytes<32>

Encode this data according to EIP-712 encodeData rules, and hash it if necessary. Read more
§

fn abi_encode_packed_to(&self, out: &mut Vec<u8>)

Non-standard Packed Mode ABI encoding. Read more
§

fn abi_encode_packed(&self) -> Vec<u8>

Non-standard Packed Mode ABI encoding. Read more
§

fn abi_encode(&self) -> Vec<u8>

ABI-encodes the value. Read more
§

fn abi_encode_sequence(&self) -> Vec<u8>
where <Self::SolType as SolType>::Token<'a>: for<'a> TokenSeq<'a>,

Encodes an ABI sequence. Read more
§

fn abi_encode_params(&self) -> Vec<u8>
where <Self::SolType as SolType>::Token<'a>: for<'a> TokenSeq<'a>,

Encodes an ABI sequence suitable for function parameters. Read more
§

fn abi_decode(data: &[u8], validate: bool) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>,

ABI-decode this type from the given data. Read more
§

fn abi_decode_params<'de>( data: &'de [u8], validate: bool, ) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>, <Self::SolType as SolType>::Token<'de>: TokenSeq<'de>,

ABI-decode this type from the given data. Read more
§

fn abi_decode_sequence<'de>( data: &'de [u8], validate: bool, ) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>, <Self::SolType as SolType>::Token<'de>: TokenSeq<'de>,

ABI-decode this type from the given data. Read more
§

impl SolValue for Signed<48, 1>

§

type SolType = Int<48>

The Solidity type that this type corresponds to.
§

fn sol_name(&self) -> &'static str

The name of the associated Solidity type. Read more
§

fn sol_type_name(&self) -> Cow<'static, str>

👎Deprecated since 0.6.3: use sol_name instead
The name of the associated Solidity type. Read more
§

fn tokenize(&self) -> <Self::SolType as SolType>::Token<'_>

Tokenizes the given value into this type’s token. Read more
§

fn detokenize(token: <Self::SolType as SolType>::Token<'_>) -> Self
where Self: From<<Self::SolType as SolType>::RustType>,

Detokenize a value from the given token. Read more
§

fn abi_encoded_size(&self) -> usize

Calculate the ABI-encoded size of the data. Read more
§

fn eip712_data_word(&self) -> FixedBytes<32>

Encode this data according to EIP-712 encodeData rules, and hash it if necessary. Read more
§

fn abi_encode_packed_to(&self, out: &mut Vec<u8>)

Non-standard Packed Mode ABI encoding. Read more
§

fn abi_encode_packed(&self) -> Vec<u8>

Non-standard Packed Mode ABI encoding. Read more
§

fn abi_encode(&self) -> Vec<u8>

ABI-encodes the value. Read more
§

fn abi_encode_sequence(&self) -> Vec<u8>
where <Self::SolType as SolType>::Token<'a>: for<'a> TokenSeq<'a>,

Encodes an ABI sequence. Read more
§

fn abi_encode_params(&self) -> Vec<u8>
where <Self::SolType as SolType>::Token<'a>: for<'a> TokenSeq<'a>,

Encodes an ABI sequence suitable for function parameters. Read more
§

fn abi_decode(data: &[u8], validate: bool) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>,

ABI-decode this type from the given data. Read more
§

fn abi_decode_params<'de>( data: &'de [u8], validate: bool, ) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>, <Self::SolType as SolType>::Token<'de>: TokenSeq<'de>,

ABI-decode this type from the given data. Read more
§

fn abi_decode_sequence<'de>( data: &'de [u8], validate: bool, ) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>, <Self::SolType as SolType>::Token<'de>: TokenSeq<'de>,

ABI-decode this type from the given data. Read more
§

impl SolValue for Signed<56, 1>

§

type SolType = Int<56>

The Solidity type that this type corresponds to.
§

fn sol_name(&self) -> &'static str

The name of the associated Solidity type. Read more
§

fn sol_type_name(&self) -> Cow<'static, str>

👎Deprecated since 0.6.3: use sol_name instead
The name of the associated Solidity type. Read more
§

fn tokenize(&self) -> <Self::SolType as SolType>::Token<'_>

Tokenizes the given value into this type’s token. Read more
§

fn detokenize(token: <Self::SolType as SolType>::Token<'_>) -> Self
where Self: From<<Self::SolType as SolType>::RustType>,

Detokenize a value from the given token. Read more
§

fn abi_encoded_size(&self) -> usize

Calculate the ABI-encoded size of the data. Read more
§

fn eip712_data_word(&self) -> FixedBytes<32>

Encode this data according to EIP-712 encodeData rules, and hash it if necessary. Read more
§

fn abi_encode_packed_to(&self, out: &mut Vec<u8>)

Non-standard Packed Mode ABI encoding. Read more
§

fn abi_encode_packed(&self) -> Vec<u8>

Non-standard Packed Mode ABI encoding. Read more
§

fn abi_encode(&self) -> Vec<u8>

ABI-encodes the value. Read more
§

fn abi_encode_sequence(&self) -> Vec<u8>
where <Self::SolType as SolType>::Token<'a>: for<'a> TokenSeq<'a>,

Encodes an ABI sequence. Read more
§

fn abi_encode_params(&self) -> Vec<u8>
where <Self::SolType as SolType>::Token<'a>: for<'a> TokenSeq<'a>,

Encodes an ABI sequence suitable for function parameters. Read more
§

fn abi_decode(data: &[u8], validate: bool) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>,

ABI-decode this type from the given data. Read more
§

fn abi_decode_params<'de>( data: &'de [u8], validate: bool, ) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>, <Self::SolType as SolType>::Token<'de>: TokenSeq<'de>,

ABI-decode this type from the given data. Read more
§

fn abi_decode_sequence<'de>( data: &'de [u8], validate: bool, ) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>, <Self::SolType as SolType>::Token<'de>: TokenSeq<'de>,

ABI-decode this type from the given data. Read more
§

impl SolValue for Signed<72, 2>

§

type SolType = Int<72>

The Solidity type that this type corresponds to.
§

fn sol_name(&self) -> &'static str

The name of the associated Solidity type. Read more
§

fn sol_type_name(&self) -> Cow<'static, str>

👎Deprecated since 0.6.3: use sol_name instead
The name of the associated Solidity type. Read more
§

fn tokenize(&self) -> <Self::SolType as SolType>::Token<'_>

Tokenizes the given value into this type’s token. Read more
§

fn detokenize(token: <Self::SolType as SolType>::Token<'_>) -> Self
where Self: From<<Self::SolType as SolType>::RustType>,

Detokenize a value from the given token. Read more
§

fn abi_encoded_size(&self) -> usize

Calculate the ABI-encoded size of the data. Read more
§

fn eip712_data_word(&self) -> FixedBytes<32>

Encode this data according to EIP-712 encodeData rules, and hash it if necessary. Read more
§

fn abi_encode_packed_to(&self, out: &mut Vec<u8>)

Non-standard Packed Mode ABI encoding. Read more
§

fn abi_encode_packed(&self) -> Vec<u8>

Non-standard Packed Mode ABI encoding. Read more
§

fn abi_encode(&self) -> Vec<u8>

ABI-encodes the value. Read more
§

fn abi_encode_sequence(&self) -> Vec<u8>
where <Self::SolType as SolType>::Token<'a>: for<'a> TokenSeq<'a>,

Encodes an ABI sequence. Read more
§

fn abi_encode_params(&self) -> Vec<u8>
where <Self::SolType as SolType>::Token<'a>: for<'a> TokenSeq<'a>,

Encodes an ABI sequence suitable for function parameters. Read more
§

fn abi_decode(data: &[u8], validate: bool) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>,

ABI-decode this type from the given data. Read more
§

fn abi_decode_params<'de>( data: &'de [u8], validate: bool, ) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>, <Self::SolType as SolType>::Token<'de>: TokenSeq<'de>,

ABI-decode this type from the given data. Read more
§

fn abi_decode_sequence<'de>( data: &'de [u8], validate: bool, ) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>, <Self::SolType as SolType>::Token<'de>: TokenSeq<'de>,

ABI-decode this type from the given data. Read more
§

impl SolValue for Signed<80, 2>

§

type SolType = Int<80>

The Solidity type that this type corresponds to.
§

fn sol_name(&self) -> &'static str

The name of the associated Solidity type. Read more
§

fn sol_type_name(&self) -> Cow<'static, str>

👎Deprecated since 0.6.3: use sol_name instead
The name of the associated Solidity type. Read more
§

fn tokenize(&self) -> <Self::SolType as SolType>::Token<'_>

Tokenizes the given value into this type’s token. Read more
§

fn detokenize(token: <Self::SolType as SolType>::Token<'_>) -> Self
where Self: From<<Self::SolType as SolType>::RustType>,

Detokenize a value from the given token. Read more
§

fn abi_encoded_size(&self) -> usize

Calculate the ABI-encoded size of the data. Read more
§

fn eip712_data_word(&self) -> FixedBytes<32>

Encode this data according to EIP-712 encodeData rules, and hash it if necessary. Read more
§

fn abi_encode_packed_to(&self, out: &mut Vec<u8>)

Non-standard Packed Mode ABI encoding. Read more
§

fn abi_encode_packed(&self) -> Vec<u8>

Non-standard Packed Mode ABI encoding. Read more
§

fn abi_encode(&self) -> Vec<u8>

ABI-encodes the value. Read more
§

fn abi_encode_sequence(&self) -> Vec<u8>
where <Self::SolType as SolType>::Token<'a>: for<'a> TokenSeq<'a>,

Encodes an ABI sequence. Read more
§

fn abi_encode_params(&self) -> Vec<u8>
where <Self::SolType as SolType>::Token<'a>: for<'a> TokenSeq<'a>,

Encodes an ABI sequence suitable for function parameters. Read more
§

fn abi_decode(data: &[u8], validate: bool) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>,

ABI-decode this type from the given data. Read more
§

fn abi_decode_params<'de>( data: &'de [u8], validate: bool, ) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>, <Self::SolType as SolType>::Token<'de>: TokenSeq<'de>,

ABI-decode this type from the given data. Read more
§

fn abi_decode_sequence<'de>( data: &'de [u8], validate: bool, ) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>, <Self::SolType as SolType>::Token<'de>: TokenSeq<'de>,

ABI-decode this type from the given data. Read more
§

impl SolValue for Signed<88, 2>

§

type SolType = Int<88>

The Solidity type that this type corresponds to.
§

fn sol_name(&self) -> &'static str

The name of the associated Solidity type. Read more
§

fn sol_type_name(&self) -> Cow<'static, str>

👎Deprecated since 0.6.3: use sol_name instead
The name of the associated Solidity type. Read more
§

fn tokenize(&self) -> <Self::SolType as SolType>::Token<'_>

Tokenizes the given value into this type’s token. Read more
§

fn detokenize(token: <Self::SolType as SolType>::Token<'_>) -> Self
where Self: From<<Self::SolType as SolType>::RustType>,

Detokenize a value from the given token. Read more
§

fn abi_encoded_size(&self) -> usize

Calculate the ABI-encoded size of the data. Read more
§

fn eip712_data_word(&self) -> FixedBytes<32>

Encode this data according to EIP-712 encodeData rules, and hash it if necessary. Read more
§

fn abi_encode_packed_to(&self, out: &mut Vec<u8>)

Non-standard Packed Mode ABI encoding. Read more
§

fn abi_encode_packed(&self) -> Vec<u8>

Non-standard Packed Mode ABI encoding. Read more
§

fn abi_encode(&self) -> Vec<u8>

ABI-encodes the value. Read more
§

fn abi_encode_sequence(&self) -> Vec<u8>
where <Self::SolType as SolType>::Token<'a>: for<'a> TokenSeq<'a>,

Encodes an ABI sequence. Read more
§

fn abi_encode_params(&self) -> Vec<u8>
where <Self::SolType as SolType>::Token<'a>: for<'a> TokenSeq<'a>,

Encodes an ABI sequence suitable for function parameters. Read more
§

fn abi_decode(data: &[u8], validate: bool) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>,

ABI-decode this type from the given data. Read more
§

fn abi_decode_params<'de>( data: &'de [u8], validate: bool, ) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>, <Self::SolType as SolType>::Token<'de>: TokenSeq<'de>,

ABI-decode this type from the given data. Read more
§

fn abi_decode_sequence<'de>( data: &'de [u8], validate: bool, ) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>, <Self::SolType as SolType>::Token<'de>: TokenSeq<'de>,

ABI-decode this type from the given data. Read more
§

impl SolValue for Signed<96, 2>

§

type SolType = Int<96>

The Solidity type that this type corresponds to.
§

fn sol_name(&self) -> &'static str

The name of the associated Solidity type. Read more
§

fn sol_type_name(&self) -> Cow<'static, str>

👎Deprecated since 0.6.3: use sol_name instead
The name of the associated Solidity type. Read more
§

fn tokenize(&self) -> <Self::SolType as SolType>::Token<'_>

Tokenizes the given value into this type’s token. Read more
§

fn detokenize(token: <Self::SolType as SolType>::Token<'_>) -> Self
where Self: From<<Self::SolType as SolType>::RustType>,

Detokenize a value from the given token. Read more
§

fn abi_encoded_size(&self) -> usize

Calculate the ABI-encoded size of the data. Read more
§

fn eip712_data_word(&self) -> FixedBytes<32>

Encode this data according to EIP-712 encodeData rules, and hash it if necessary. Read more
§

fn abi_encode_packed_to(&self, out: &mut Vec<u8>)

Non-standard Packed Mode ABI encoding. Read more
§

fn abi_encode_packed(&self) -> Vec<u8>

Non-standard Packed Mode ABI encoding. Read more
§

fn abi_encode(&self) -> Vec<u8>

ABI-encodes the value. Read more
§

fn abi_encode_sequence(&self) -> Vec<u8>
where <Self::SolType as SolType>::Token<'a>: for<'a> TokenSeq<'a>,

Encodes an ABI sequence. Read more
§

fn abi_encode_params(&self) -> Vec<u8>
where <Self::SolType as SolType>::Token<'a>: for<'a> TokenSeq<'a>,

Encodes an ABI sequence suitable for function parameters. Read more
§

fn abi_decode(data: &[u8], validate: bool) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>,

ABI-decode this type from the given data. Read more
§

fn abi_decode_params<'de>( data: &'de [u8], validate: bool, ) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>, <Self::SolType as SolType>::Token<'de>: TokenSeq<'de>,

ABI-decode this type from the given data. Read more
§

fn abi_decode_sequence<'de>( data: &'de [u8], validate: bool, ) -> Result<Self, Error>
where Self: From<<Self::SolType as SolType>::RustType>, <Self::SolType as SolType>::Token<'de>: TokenSeq<'de>,

ABI-decode this type from the given data. Read more
§

impl<T, const BITS: usize, const LIMBS: usize> Sub<T> for Signed<BITS, LIMBS>
where T: Into<Signed<BITS, LIMBS>>,

§

type Output = Signed<BITS, LIMBS>

The resulting type after applying the - operator.
§

fn sub(self, rhs: T) -> <Signed<BITS, LIMBS> as Sub<T>>::Output

Performs the - operation. Read more
§

impl<T, const BITS: usize, const LIMBS: usize> SubAssign<T> for Signed<BITS, LIMBS>
where T: Into<Signed<BITS, LIMBS>>,

§

fn sub_assign(&mut self, rhs: T)

Performs the -= operation. Read more
§

impl<T, const BITS: usize, const LIMBS: usize> Sum<T> for Signed<BITS, LIMBS>
where T: Into<Signed<BITS, LIMBS>>,

§

fn sum<I>(iter: I) -> Signed<BITS, LIMBS>
where I: Iterator<Item = T>,

Takes an iterator and generates Self from the elements by “summing up” the items.
§

impl<const BITS: usize, const LIMBS: usize> TryFrom<&String> for Signed<BITS, LIMBS>

§

type Error = ParseSignedError

The type returned in the event of a conversion error.
§

fn try_from( value: &String, ) -> Result<Signed<BITS, LIMBS>, <Signed<BITS, LIMBS> as TryFrom<&String>>::Error>

Performs the conversion.
§

impl<const BITS: usize, const LIMBS: usize> TryFrom<&str> for Signed<BITS, LIMBS>

§

type Error = ParseSignedError

The type returned in the event of a conversion error.
§

fn try_from( value: &str, ) -> Result<Signed<BITS, LIMBS>, <Signed<BITS, LIMBS> as TryFrom<&str>>::Error>

Performs the conversion.
§

impl<const BITS: usize, const LIMBS: usize> TryFrom<Signed<BITS, LIMBS>> for Uint<BITS, LIMBS>

§

type Error = BigIntConversionError

The type returned in the event of a conversion error.
§

fn try_from( value: Signed<BITS, LIMBS>, ) -> Result<Uint<BITS, LIMBS>, <Uint<BITS, LIMBS> as TryFrom<Signed<BITS, LIMBS>>>::Error>

Performs the conversion.
§

impl<const BITS: usize, const LIMBS: usize> TryFrom<Signed<BITS, LIMBS>> for i128

§

type Error = BigIntConversionError

The type returned in the event of a conversion error.
§

fn try_from( value: Signed<BITS, LIMBS>, ) -> Result<i128, <i128 as TryFrom<Signed<BITS, LIMBS>>>::Error>

Performs the conversion.
§

impl<const BITS: usize, const LIMBS: usize> TryFrom<Signed<BITS, LIMBS>> for i16

§

type Error = BigIntConversionError

The type returned in the event of a conversion error.
§

fn try_from( value: Signed<BITS, LIMBS>, ) -> Result<i16, <i16 as TryFrom<Signed<BITS, LIMBS>>>::Error>

Performs the conversion.
§

impl<const BITS: usize, const LIMBS: usize> TryFrom<Signed<BITS, LIMBS>> for i32

§

type Error = BigIntConversionError

The type returned in the event of a conversion error.
§

fn try_from( value: Signed<BITS, LIMBS>, ) -> Result<i32, <i32 as TryFrom<Signed<BITS, LIMBS>>>::Error>

Performs the conversion.
§

impl<const BITS: usize, const LIMBS: usize> TryFrom<Signed<BITS, LIMBS>> for i64

§

type Error = BigIntConversionError

The type returned in the event of a conversion error.
§

fn try_from( value: Signed<BITS, LIMBS>, ) -> Result<i64, <i64 as TryFrom<Signed<BITS, LIMBS>>>::Error>

Performs the conversion.
§

impl<const BITS: usize, const LIMBS: usize> TryFrom<Signed<BITS, LIMBS>> for i8

§

type Error = BigIntConversionError

The type returned in the event of a conversion error.
§

fn try_from( value: Signed<BITS, LIMBS>, ) -> Result<i8, <i8 as TryFrom<Signed<BITS, LIMBS>>>::Error>

Performs the conversion.
§

impl<const BITS: usize, const LIMBS: usize> TryFrom<Signed<BITS, LIMBS>> for isize

§

type Error = BigIntConversionError

The type returned in the event of a conversion error.
§

fn try_from( value: Signed<BITS, LIMBS>, ) -> Result<isize, <isize as TryFrom<Signed<BITS, LIMBS>>>::Error>

Performs the conversion.
§

impl<const BITS: usize, const LIMBS: usize> TryFrom<Signed<BITS, LIMBS>> for u128

§

type Error = BigIntConversionError

The type returned in the event of a conversion error.
§

fn try_from( value: Signed<BITS, LIMBS>, ) -> Result<u128, <u128 as TryFrom<Signed<BITS, LIMBS>>>::Error>

Performs the conversion.
§

impl<const BITS: usize, const LIMBS: usize> TryFrom<Signed<BITS, LIMBS>> for u16

§

type Error = BigIntConversionError

The type returned in the event of a conversion error.
§

fn try_from( value: Signed<BITS, LIMBS>, ) -> Result<u16, <u16 as TryFrom<Signed<BITS, LIMBS>>>::Error>

Performs the conversion.
§

impl<const BITS: usize, const LIMBS: usize> TryFrom<Signed<BITS, LIMBS>> for u32

§

type Error = BigIntConversionError

The type returned in the event of a conversion error.
§

fn try_from( value: Signed<BITS, LIMBS>, ) -> Result<u32, <u32 as TryFrom<Signed<BITS, LIMBS>>>::Error>

Performs the conversion.
§

impl<const BITS: usize, const LIMBS: usize> TryFrom<Signed<BITS, LIMBS>> for u64

§

type Error = BigIntConversionError

The type returned in the event of a conversion error.
§

fn try_from( value: Signed<BITS, LIMBS>, ) -> Result<u64, <u64 as TryFrom<Signed<BITS, LIMBS>>>::Error>

Performs the conversion.
§

impl<const BITS: usize, const LIMBS: usize> TryFrom<Signed<BITS, LIMBS>> for u8

§

type Error = BigIntConversionError

The type returned in the event of a conversion error.
§

fn try_from( value: Signed<BITS, LIMBS>, ) -> Result<u8, <u8 as TryFrom<Signed<BITS, LIMBS>>>::Error>

Performs the conversion.
§

impl<const BITS: usize, const LIMBS: usize> TryFrom<Signed<BITS, LIMBS>> for usize

§

type Error = BigIntConversionError

The type returned in the event of a conversion error.
§

fn try_from( value: Signed<BITS, LIMBS>, ) -> Result<usize, <usize as TryFrom<Signed<BITS, LIMBS>>>::Error>

Performs the conversion.
§

impl<const BITS: usize, const LIMBS: usize> TryFrom<String> for Signed<BITS, LIMBS>

§

type Error = ParseSignedError

The type returned in the event of a conversion error.
§

fn try_from( value: String, ) -> Result<Signed<BITS, LIMBS>, <Signed<BITS, LIMBS> as TryFrom<String>>::Error>

Performs the conversion.
§

impl<const BITS: usize, const LIMBS: usize> TryFrom<Uint<BITS, LIMBS>> for Signed<BITS, LIMBS>

§

type Error = BigIntConversionError

The type returned in the event of a conversion error.
§

fn try_from( from: Uint<BITS, LIMBS>, ) -> Result<Signed<BITS, LIMBS>, <Signed<BITS, LIMBS> as TryFrom<Uint<BITS, LIMBS>>>::Error>

Performs the conversion.
§

impl<const BITS: usize, const LIMBS: usize> TryFrom<i128> for Signed<BITS, LIMBS>

§

type Error = BigIntConversionError

The type returned in the event of a conversion error.
§

fn try_from( value: i128, ) -> Result<Signed<BITS, LIMBS>, <Signed<BITS, LIMBS> as TryFrom<i128>>::Error>

Performs the conversion.
§

impl<const BITS: usize, const LIMBS: usize> TryFrom<i16> for Signed<BITS, LIMBS>

§

type Error = BigIntConversionError

The type returned in the event of a conversion error.
§

fn try_from( value: i16, ) -> Result<Signed<BITS, LIMBS>, <Signed<BITS, LIMBS> as TryFrom<i16>>::Error>

Performs the conversion.
§

impl<const BITS: usize, const LIMBS: usize> TryFrom<i32> for Signed<BITS, LIMBS>

§

type Error = BigIntConversionError

The type returned in the event of a conversion error.
§

fn try_from( value: i32, ) -> Result<Signed<BITS, LIMBS>, <Signed<BITS, LIMBS> as TryFrom<i32>>::Error>

Performs the conversion.
§

impl<const BITS: usize, const LIMBS: usize> TryFrom<i64> for Signed<BITS, LIMBS>

§

type Error = BigIntConversionError

The type returned in the event of a conversion error.
§

fn try_from( value: i64, ) -> Result<Signed<BITS, LIMBS>, <Signed<BITS, LIMBS> as TryFrom<i64>>::Error>

Performs the conversion.
§

impl<const BITS: usize, const LIMBS: usize> TryFrom<i8> for Signed<BITS, LIMBS>

§

type Error = BigIntConversionError

The type returned in the event of a conversion error.
§

fn try_from( value: i8, ) -> Result<Signed<BITS, LIMBS>, <Signed<BITS, LIMBS> as TryFrom<i8>>::Error>

Performs the conversion.
§

impl<const BITS: usize, const LIMBS: usize> TryFrom<isize> for Signed<BITS, LIMBS>

§

type Error = BigIntConversionError

The type returned in the event of a conversion error.
§

fn try_from( value: isize, ) -> Result<Signed<BITS, LIMBS>, <Signed<BITS, LIMBS> as TryFrom<isize>>::Error>

Performs the conversion.
§

impl<const BITS: usize, const LIMBS: usize> TryFrom<u128> for Signed<BITS, LIMBS>

§

type Error = BigIntConversionError

The type returned in the event of a conversion error.
§

fn try_from( value: u128, ) -> Result<Signed<BITS, LIMBS>, <Signed<BITS, LIMBS> as TryFrom<u128>>::Error>

Performs the conversion.
§

impl<const BITS: usize, const LIMBS: usize> TryFrom<u16> for Signed<BITS, LIMBS>

§

type Error = BigIntConversionError

The type returned in the event of a conversion error.
§

fn try_from( value: u16, ) -> Result<Signed<BITS, LIMBS>, <Signed<BITS, LIMBS> as TryFrom<u16>>::Error>

Performs the conversion.
§

impl<const BITS: usize, const LIMBS: usize> TryFrom<u32> for Signed<BITS, LIMBS>

§

type Error = BigIntConversionError

The type returned in the event of a conversion error.
§

fn try_from( value: u32, ) -> Result<Signed<BITS, LIMBS>, <Signed<BITS, LIMBS> as TryFrom<u32>>::Error>

Performs the conversion.
§

impl<const BITS: usize, const LIMBS: usize> TryFrom<u64> for Signed<BITS, LIMBS>

§

type Error = BigIntConversionError

The type returned in the event of a conversion error.
§

fn try_from( value: u64, ) -> Result<Signed<BITS, LIMBS>, <Signed<BITS, LIMBS> as TryFrom<u64>>::Error>

Performs the conversion.
§

impl<const BITS: usize, const LIMBS: usize> TryFrom<u8> for Signed<BITS, LIMBS>

§

type Error = BigIntConversionError

The type returned in the event of a conversion error.
§

fn try_from( value: u8, ) -> Result<Signed<BITS, LIMBS>, <Signed<BITS, LIMBS> as TryFrom<u8>>::Error>

Performs the conversion.
§

impl<const BITS: usize, const LIMBS: usize> TryFrom<usize> for Signed<BITS, LIMBS>

§

type Error = BigIntConversionError

The type returned in the event of a conversion error.
§

fn try_from( value: usize, ) -> Result<Signed<BITS, LIMBS>, <Signed<BITS, LIMBS> as TryFrom<usize>>::Error>

Performs the conversion.
§

impl UIfmt for Signed<256, 4>

§

fn pretty(&self) -> String

Return a prettified string version of the value
§

impl<const BITS: usize, const LIMBS: usize> UpperHex for Signed<BITS, LIMBS>

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<const BITS: usize, const LIMBS: usize> Copy for Signed<BITS, LIMBS>

§

impl<const BITS: usize, const LIMBS: usize> Eq for Signed<BITS, LIMBS>

§

impl<const BITS: usize, const LIMBS: usize> StructuralPartialEq for Signed<BITS, LIMBS>

Auto Trait Implementations§

§

impl<const BITS: usize, const LIMBS: usize> Freeze for Signed<BITS, LIMBS>

§

impl<const BITS: usize, const LIMBS: usize> RefUnwindSafe for Signed<BITS, LIMBS>

§

impl<const BITS: usize, const LIMBS: usize> Send for Signed<BITS, LIMBS>

§

impl<const BITS: usize, const LIMBS: usize> Sync for Signed<BITS, LIMBS>

§

impl<const BITS: usize, const LIMBS: usize> Unpin for Signed<BITS, LIMBS>

§

impl<const BITS: usize, const LIMBS: usize> UnwindSafe for Signed<BITS, LIMBS>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> AsOut<T> for T
where T: Copy,

§

fn as_out(&mut self) -> Out<'_, T>

Returns an out reference to self.
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<T, R> CollectAndApply<T, R> for T

§

fn collect_and_apply<I, F>(iter: I, f: F) -> R
where I: Iterator<Item = T>, F: FnOnce(&[T]) -> R,

Equivalent to f(&iter.collect::<Vec<_>>()).

§

type Output = R

§

impl<Q, K> Comparable<K> for Q
where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

§

fn compare(&self, key: &K) -> Ordering

Compare self to key and return their ordering.
§

impl<Q, K> Comparable<K> for Q
where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

§

fn compare(&self, key: &K) -> Ordering

Compares self to key and returns their ordering.
§

impl<T> Conv for T

§

fn conv<T>(self) -> T
where Self: Into<T>,

Converts self into T using Into<T>. Read more
Source§

impl<T> DynClone for T
where T: Clone,

§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compares self to key and returns true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<T> FmtForward for T

§

fn fmt_binary(self) -> FmtBinary<Self>
where Self: Binary,

Causes self to use its Binary implementation when Debug-formatted.
§

fn fmt_display(self) -> FmtDisplay<Self>
where Self: Display,

Causes self to use its Display implementation when Debug-formatted.
§

fn fmt_lower_exp(self) -> FmtLowerExp<Self>
where Self: LowerExp,

Causes self to use its LowerExp implementation when Debug-formatted.
§

fn fmt_lower_hex(self) -> FmtLowerHex<Self>
where Self: LowerHex,

Causes self to use its LowerHex implementation when Debug-formatted.
§

fn fmt_octal(self) -> FmtOctal<Self>
where Self: Octal,

Causes self to use its Octal implementation when Debug-formatted.
§

fn fmt_pointer(self) -> FmtPointer<Self>
where Self: Pointer,

Causes self to use its Pointer implementation when Debug-formatted.
§

fn fmt_upper_exp(self) -> FmtUpperExp<Self>
where Self: UpperExp,

Causes self to use its UpperExp implementation when Debug-formatted.
§

fn fmt_upper_hex(self) -> FmtUpperHex<Self>
where Self: UpperHex,

Causes self to use its UpperHex implementation when Debug-formatted.
§

fn fmt_list(self) -> FmtList<Self>
where &'a Self: for<'a> IntoIterator,

Formats each item in a sequence. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> FromRef<T> for T
where T: Clone,

§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> IntoRequest<T> for T

Source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
§

impl<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
§

impl<T> Paint for T
where T: ?Sized,

§

fn fg(&self, value: Color) -> Painted<&T>

Returns a styled value derived from self with the foreground set to value.

This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and green(), which have the same functionality but are pithier.

§Example

Set foreground color to white using fg():

use yansi::{Paint, Color};

painted.fg(Color::White);

Set foreground color to white using white().

use yansi::Paint;

painted.white();
§

fn primary(&self) -> Painted<&T>

Returns self with the fg() set to [Color::Primary].

§Example
println!("{}", value.primary());
§

fn fixed(&self, color: u8) -> Painted<&T>

Returns self with the fg() set to [Color::Fixed].

§Example
println!("{}", value.fixed(color));
§

fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

Returns self with the fg() set to [Color::Rgb].

§Example
println!("{}", value.rgb(r, g, b));
§

fn black(&self) -> Painted<&T>

Returns self with the fg() set to [Color::Black].

§Example
println!("{}", value.black());
§

fn red(&self) -> Painted<&T>

Returns self with the fg() set to [Color::Red].

§Example
println!("{}", value.red());
§

fn green(&self) -> Painted<&T>

Returns self with the fg() set to [Color::Green].

§Example
println!("{}", value.green());
§

fn yellow(&self) -> Painted<&T>

Returns self with the fg() set to [Color::Yellow].

§Example
println!("{}", value.yellow());
§

fn blue(&self) -> Painted<&T>

Returns self with the fg() set to [Color::Blue].

§Example
println!("{}", value.blue());
§

fn magenta(&self) -> Painted<&T>

Returns self with the fg() set to [Color::Magenta].

§Example
println!("{}", value.magenta());
§

fn cyan(&self) -> Painted<&T>

Returns self with the fg() set to [Color::Cyan].

§Example
println!("{}", value.cyan());
§

fn white(&self) -> Painted<&T>

Returns self with the fg() set to [Color::White].

§Example
println!("{}", value.white());
§

fn bright_black(&self) -> Painted<&T>

Returns self with the fg() set to [Color::BrightBlack].

§Example
println!("{}", value.bright_black());
§

fn bright_red(&self) -> Painted<&T>

Returns self with the fg() set to [Color::BrightRed].

§Example
println!("{}", value.bright_red());
§

fn bright_green(&self) -> Painted<&T>

Returns self with the fg() set to [Color::BrightGreen].

§Example
println!("{}", value.bright_green());
§

fn bright_yellow(&self) -> Painted<&T>

Returns self with the fg() set to [Color::BrightYellow].

§Example
println!("{}", value.bright_yellow());
§

fn bright_blue(&self) -> Painted<&T>

Returns self with the fg() set to [Color::BrightBlue].

§Example
println!("{}", value.bright_blue());
§

fn bright_magenta(&self) -> Painted<&T>

Returns self with the fg() set to [Color::BrightMagenta].

§Example
println!("{}", value.bright_magenta());
§

fn bright_cyan(&self) -> Painted<&T>

Returns self with the fg() set to [Color::BrightCyan].

§Example
println!("{}", value.bright_cyan());
§

fn bright_white(&self) -> Painted<&T>

Returns self with the fg() set to [Color::BrightWhite].

§Example
println!("{}", value.bright_white());
§

fn bg(&self, value: Color) -> Painted<&T>

Returns a styled value derived from self with the background set to value.

This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and on_green(), which have the same functionality but are pithier.

§Example

Set background color to red using fg():

use yansi::{Paint, Color};

painted.bg(Color::Red);

Set background color to red using on_red().

use yansi::Paint;

painted.on_red();
§

fn on_primary(&self) -> Painted<&T>

Returns self with the bg() set to [Color::Primary].

§Example
println!("{}", value.on_primary());
§

fn on_fixed(&self, color: u8) -> Painted<&T>

Returns self with the bg() set to [Color::Fixed].

§Example
println!("{}", value.on_fixed(color));
§

fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

Returns self with the bg() set to [Color::Rgb].

§Example
println!("{}", value.on_rgb(r, g, b));
§

fn on_black(&self) -> Painted<&T>

Returns self with the bg() set to [Color::Black].

§Example
println!("{}", value.on_black());
§

fn on_red(&self) -> Painted<&T>

Returns self with the bg() set to [Color::Red].

§Example
println!("{}", value.on_red());
§

fn on_green(&self) -> Painted<&T>

Returns self with the bg() set to [Color::Green].

§Example
println!("{}", value.on_green());
§

fn on_yellow(&self) -> Painted<&T>

Returns self with the bg() set to [Color::Yellow].

§Example
println!("{}", value.on_yellow());
§

fn on_blue(&self) -> Painted<&T>

Returns self with the bg() set to [Color::Blue].

§Example
println!("{}", value.on_blue());
§

fn on_magenta(&self) -> Painted<&T>

Returns self with the bg() set to [Color::Magenta].

§Example
println!("{}", value.on_magenta());
§

fn on_cyan(&self) -> Painted<&T>

Returns self with the bg() set to [Color::Cyan].

§Example
println!("{}", value.on_cyan());
§

fn on_white(&self) -> Painted<&T>

Returns self with the bg() set to [Color::White].

§Example
println!("{}", value.on_white());
§

fn on_bright_black(&self) -> Painted<&T>

Returns self with the bg() set to [Color::BrightBlack].

§Example
println!("{}", value.on_bright_black());
§

fn on_bright_red(&self) -> Painted<&T>

Returns self with the bg() set to [Color::BrightRed].

§Example
println!("{}", value.on_bright_red());
§

fn on_bright_green(&self) -> Painted<&T>

Returns self with the bg() set to [Color::BrightGreen].

§Example
println!("{}", value.on_bright_green());
§

fn on_bright_yellow(&self) -> Painted<&T>

Returns self with the bg() set to [Color::BrightYellow].

§Example
println!("{}", value.on_bright_yellow());
§

fn on_bright_blue(&self) -> Painted<&T>

Returns self with the bg() set to [Color::BrightBlue].

§Example
println!("{}", value.on_bright_blue());
§

fn on_bright_magenta(&self) -> Painted<&T>

Returns self with the bg() set to [Color::BrightMagenta].

§Example
println!("{}", value.on_bright_magenta());
§

fn on_bright_cyan(&self) -> Painted<&T>

Returns self with the bg() set to [Color::BrightCyan].

§Example
println!("{}", value.on_bright_cyan());
§

fn on_bright_white(&self) -> Painted<&T>

Returns self with the bg() set to [Color::BrightWhite].

§Example
println!("{}", value.on_bright_white());
§

fn attr(&self, value: Attribute) -> Painted<&T>

Enables the styling [Attribute] value.

This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality but are pithier.

§Example

Make text bold using attr():

use yansi::{Paint, Attribute};

painted.attr(Attribute::Bold);

Make text bold using using bold().

use yansi::Paint;

painted.bold();
§

fn bold(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute::Bold].

§Example
println!("{}", value.bold());
§

fn dim(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute::Dim].

§Example
println!("{}", value.dim());
§

fn italic(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute::Italic].

§Example
println!("{}", value.italic());
§

fn underline(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute::Underline].

§Example
println!("{}", value.underline());

Returns self with the attr() set to [Attribute::Blink].

§Example
println!("{}", value.blink());

Returns self with the attr() set to [Attribute::RapidBlink].

§Example
println!("{}", value.rapid_blink());
§

fn invert(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute::Invert].

§Example
println!("{}", value.invert());
§

fn conceal(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute::Conceal].

§Example
println!("{}", value.conceal());
§

fn strike(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute::Strike].

§Example
println!("{}", value.strike());
§

fn quirk(&self, value: Quirk) -> Painted<&T>

Enables the yansi [Quirk] value.

This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are pithier.

§Example

Enable wrapping using .quirk():

use yansi::{Paint, Quirk};

painted.quirk(Quirk::Wrap);

Enable wrapping using wrap().

use yansi::Paint;

painted.wrap();
§

fn mask(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk::Mask].

§Example
println!("{}", value.mask());
§

fn wrap(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk::Wrap].

§Example
println!("{}", value.wrap());
§

fn linger(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk::Linger].

§Example
println!("{}", value.linger());
§

fn clear(&self) -> Painted<&T>

👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

Returns self with the quirk() set to [Quirk::Clear].

§Example
println!("{}", value.clear());
§

fn resetting(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk::Resetting].

§Example
println!("{}", value.resetting());
§

fn bright(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk::Bright].

§Example
println!("{}", value.bright());
§

fn on_bright(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk::OnBright].

§Example
println!("{}", value.on_bright());
§

fn whenever(&self, value: Condition) -> Painted<&T>

Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

See the crate level docs for more details.

§Example

Enable styling painted only when both stdout and stderr are TTYs:

use yansi::{Paint, Condition};

painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
§

fn new(self) -> Painted<Self>
where Self: Sized,

Create a new [Painted] with a default [Style]. Read more
§

fn paint<S>(&self, style: S) -> Painted<&Self>
where S: Into<Style>,

Apply a style wholesale to self. Any previous style is replaced. Read more
§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where R: 'a,

Mutably borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
where Self: Borrow<B>, B: 'a + ?Sized, R: 'a,

Borrows self, then passes self.borrow() into the pipe function. Read more
§

fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
where Self: BorrowMut<B>, B: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more
§

fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
where Self: AsRef<U>, U: 'a + ?Sized, R: 'a,

Borrows self, then passes self.as_ref() into the pipe function.
§

fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
where Self: AsMut<U>, U: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.as_mut() into the pipe function.
§

fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
where Self: Deref<Target = T>, T: 'a + ?Sized, R: 'a,

Borrows self, then passes self.deref() into the pipe function.
§

fn pipe_deref_mut<'a, T, R>( &'a mut self, func: impl FnOnce(&'a mut T) -> R, ) -> R
where Self: DerefMut<Target = T> + Deref, T: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.deref_mut() into the pipe function.
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
§

impl<T> Tap for T

§

fn tap(self, func: impl FnOnce(&Self)) -> Self

Immutable access to a value. Read more
§

fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

Mutable access to a value. Read more
§

fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Immutable access to the Borrow<B> of a value. Read more
§

fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Mutable access to the BorrowMut<B> of a value. Read more
§

fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Immutable access to the AsRef<R> view of a value. Read more
§

fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Mutable access to the AsMut<R> view of a value. Read more
§

fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Immutable access to the Deref::Target of a value. Read more
§

fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Mutable access to the Deref::Target of a value. Read more
§

fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

Calls .tap() only in debug builds, and is erased in release builds.
§

fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

Calls .tap_mut() only in debug builds, and is erased in release builds.
§

fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Calls .tap_borrow() only in debug builds, and is erased in release builds.
§

fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Calls .tap_borrow_mut() only in debug builds, and is erased in release builds.
§

fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Calls .tap_ref() only in debug builds, and is erased in release builds.
§

fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Calls .tap_ref_mut() only in debug builds, and is erased in release builds.
§

fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Calls .tap_deref() only in debug builds, and is erased in release builds.
§

fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Calls .tap_deref_mut() only in debug builds, and is erased in release builds.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
§

impl<T> TryClone for T
where T: Clone,

§

fn try_clone(&self) -> Result<T, Error>

Clones self, possibly returning an error.
§

impl<T> TryConv for T

§

fn try_conv<T>(self) -> Result<T, Self::Error>
where Self: TryInto<T>,

Attempts to convert self into T using TryInto<T>. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T, Rhs, Output> GroupOps<Rhs, Output> for T
where T: Add<Rhs, Output = Output> + Sub<Rhs, Output = Output> + AddAssign<Rhs> + SubAssign<Rhs>,

§

impl<T> MaybeSendSync for T

Source§

impl<T, Rhs> NumAssignOps<Rhs> for T
where T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>,

Source§

impl<T, Rhs, Output> NumOps<Rhs, Output> for T
where T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,

§

impl<T> RpcObject for T
where T: RpcParam + RpcReturn,

§

impl<T> RpcParam for T
where T: Serialize + Clone + Debug + Send + Sync + Unpin,

§

impl<T> RpcReturn for T
where T: DeserializeOwned + Debug + Send + Sync + Unpin + 'static,

§

impl<T, Rhs, Output> ScalarMul<Rhs, Output> for T
where T: Mul<Rhs, Output = Output> + MulAssign<Rhs>,

Layout§

Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.