Struct chaindexing::I256

source ·
pub struct I256(/* private fields */);
Expand description

Little-endian 256-bit signed integer.

§Diversion from standard numeric types

The right shift operator on I256 doesn’t act in the same manner as standard numeric types (e.g. i8, i16 etc). On standard types if the number is negative right shift will perform an arithmetic shift, whereas on I256 this will perform a bit-wise shift. Arithmetic shift on I256 is done via the asr and asl functions.

Implementations§

source§

impl I256

source

pub const MAX: I256 = _

Maximum value.

source

pub const MIN: I256 = _

Minimum value.

source

pub const fn zero() -> I256

Zero (additive identity) of this type.

source

pub const fn one() -> I256

One (multiplicative identity) of this type.

source

pub const fn minus_one() -> I256

Minus one (multiplicative inverse) of this type.

source

pub const fn max_value() -> I256

The maximum value which can be inhabited by this type.

source

pub const fn min_value() -> I256

The minimum value which can be inhabited by this type.

source

pub fn overflowing_from_sign_and_abs(sign: Sign, abs: U256) -> (I256, bool)

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

source

pub fn checked_from_sign_and_abs(sign: Sign, abs: U256) -> Option<I256>

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

source

pub fn into_sign_and_abs(self) -> (Sign, U256)

Splits a I256 into its absolute value and negative flag.

source

pub const fn sign(self) -> Sign

Returns the sign of self.

source

pub const fn from_raw(raw: U256) -> I256

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

source

pub const fn into_raw(self) -> U256

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.

source

pub fn from_dec_str(value: &str) -> Result<I256, ParseI256Error>

Convert from a decimal string.

source

pub fn from_hex_str(value: &str) -> Result<I256, ParseI256Error>

Convert from a hexadecimal string.

source

pub fn signum(self) -> I256

Returns a number representing sign of self.

  • 0 if the number is zero
  • 1 if the number is positive
  • -1 if the number is negative
source

pub const fn is_positive(self) -> bool

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

source

pub const fn is_negative(self) -> bool

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

source

pub const fn is_zero(self) -> bool

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

source

pub fn bits(&self) -> u32

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

source

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

Return if specific bit is set.

§Panics

If index exceeds the bit width of the number.

source

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

Return specific byte.

§Panics

If index exceeds the byte width of the number.

source

pub fn count_ones(&self) -> u32

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

source

pub fn count_zeros(&self) -> u32

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

source

pub fn leading_zeros(&self) -> u32

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

source

pub fn trailing_zeros(&self) -> u32

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

source

pub fn to_big_endian(&self, bytes: &mut [u8])

Write to the slice in big-endian format.

§Panics

If the given slice is not exactly 32 bytes long.

source

pub fn to_little_endian(&self, bytes: &mut [u8])

Write to the slice in little-endian format.

§Panics

If the given slice is not exactly 32 bytes long.

source§

impl I256

source

pub fn abs(self) -> I256

Computes the absolute value of self.

§Overflow behavior

The absolute value of I256::MIN cannot be represented as an I256 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 I256::MIN without a panic.

source

pub fn overflowing_abs(self) -> (I256, 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.

source

pub fn checked_abs(self) -> Option<I256>

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

source

pub fn saturating_abs(self) -> I256

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

source

pub fn wrapping_abs(self) -> I256

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

source

pub fn unsigned_abs(self) -> U256

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

source

pub fn overflowing_neg(self) -> (I256, 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.

source

pub fn checked_neg(self) -> Option<I256>

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

source

pub fn saturating_neg(self) -> I256

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

source

pub fn wrapping_neg(self) -> I256

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.

source

pub fn overflowing_add(self, rhs: I256) -> (I256, 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.

source

pub fn checked_add(self, rhs: I256) -> Option<I256>

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

source

pub fn saturating_add(self, rhs: I256) -> I256

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

source

pub fn wrapping_add(self, rhs: I256) -> I256

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

source

pub fn overflowing_sub(self, rhs: I256) -> (I256, 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.

source

pub fn checked_sub(self, rhs: I256) -> Option<I256>

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

source

pub fn saturating_sub(self, rhs: I256) -> I256

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

source

pub fn wrapping_sub(self, rhs: I256) -> I256

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

source

pub fn overflowing_mul(self, rhs: I256) -> (I256, 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.

source

pub fn checked_mul(self, rhs: I256) -> Option<I256>

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

source

pub fn saturating_mul(self, rhs: I256) -> I256

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

source

pub fn wrapping_mul(self, rhs: I256) -> I256

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

source

pub fn overflowing_div(self, rhs: I256) -> (I256, 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.

source

pub fn checked_div(self, rhs: I256) -> Option<I256>

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

source

pub fn saturating_div(self, rhs: I256) -> I256

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

§Panics

If rhs is 0.

source

pub fn wrapping_div(self, rhs: I256) -> I256

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.

source

pub fn overflowing_rem(self, rhs: I256) -> (I256, 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.

source

pub fn checked_rem(self, rhs: I256) -> Option<I256>

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

source

pub fn wrapping_rem(self, rhs: I256) -> I256

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.

source

pub fn div_euclid(self, rhs: I256) -> I256

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.

source

pub fn overflowing_div_euclid(self, rhs: I256) -> (I256, 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.

source

pub fn checked_div_euclid(self, rhs: I256) -> Option<I256>

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

source

pub fn wrapping_div_euclid(self, rhs: I256) -> I256

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.

source

pub fn rem_euclid(self, rhs: I256) -> I256

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.

source

pub fn overflowing_rem_euclid(self, rhs: I256) -> (I256, 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.

source

pub fn wrapping_rem_euclid(self, rhs: I256) -> I256

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.

source

pub fn checked_rem_euclid(self, rhs: I256) -> Option<I256>

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

source

pub fn exp10(n: usize) -> I256

Create 10**n as this type.

§Panics

If the result overflows the type.

source

pub fn pow(self, exp: u32) -> I256

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

§Panics

If the result overflows the type in debug mode.

source

pub fn overflowing_pow(self, exp: u32) -> (I256, 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.

source

pub fn checked_pow(self, exp: u32) -> Option<I256>

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

source

pub fn saturating_pow(self, exp: u32) -> I256

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

source

pub fn wrapping_pow(self, exp: u32) -> I256

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

source

pub fn overflowing_shl(self, rhs: usize) -> (I256, 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.

source

pub fn checked_shl(self, rhs: usize) -> Option<I256>

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

source

pub fn wrapping_shl(self, rhs: usize) -> I256

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

source

pub fn overflowing_shr(self, rhs: usize) -> (I256, 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.

source

pub fn checked_shr(self, rhs: usize) -> Option<I256>

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

source

pub fn wrapping_shr(self, rhs: usize) -> I256

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

source

pub fn asr(self, rhs: usize) -> I256

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

source

pub fn asl(self, rhs: usize) -> Option<I256>

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

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

source

pub fn twos_complement(self) -> U256

Compute the two’s complement of this number.

source§

impl I256

source

pub const fn low_u8(&self) -> u8

Low word.

source

pub fn as_u8(&self) -> u8

Conversion to u8 with overflow checking.

§Panics

If the number is outside the u8 valid range.

source

pub const fn low_i8(&self) -> i8

Low word.

source

pub fn as_i8(&self) -> i8

Conversion to i8 with overflow checking.

§Panics

If the number is outside the i8 valid range.

source

pub const fn low_u16(&self) -> u16

Low word.

source

pub fn as_u16(&self) -> u16

Conversion to u16 with overflow checking.

§Panics

If the number is outside the u16 valid range.

source

pub const fn low_i16(&self) -> i16

Low word.

source

pub fn as_i16(&self) -> i16

Conversion to i16 with overflow checking.

§Panics

If the number is outside the i16 valid range.

source

pub const fn low_u32(&self) -> u32

Low word.

source

pub fn as_u32(&self) -> u32

Conversion to u32 with overflow checking.

§Panics

If the number is outside the u32 valid range.

source

pub const fn low_i32(&self) -> i32

Low word.

source

pub fn as_i32(&self) -> i32

Conversion to i32 with overflow checking.

§Panics

If the number is outside the i32 valid range.

source

pub const fn low_u64(&self) -> u64

Low word.

source

pub fn as_u64(&self) -> u64

Conversion to u64 with overflow checking.

§Panics

If the number is outside the u64 valid range.

source

pub const fn low_i64(&self) -> i64

Low word.

source

pub fn as_i64(&self) -> i64

Conversion to i64 with overflow checking.

§Panics

If the number is outside the i64 valid range.

source

pub const fn low_usize(&self) -> usize

Low word.

source

pub fn as_usize(&self) -> usize

Conversion to usize with overflow checking.

§Panics

If the number is outside the usize valid range.

source

pub const fn low_isize(&self) -> isize

Low word.

source

pub fn as_isize(&self) -> isize

Conversion to isize with overflow checking.

§Panics

If the number is outside the isize valid range.

source

pub const fn low_u128(&self) -> u128

Low word.

source

pub fn as_u128(&self) -> u128

Conversion to u128 with overflow checking.

§Panics

If the number is outside the u128 valid range.

source

pub const fn low_i128(&self) -> i128

Low word.

source

pub fn as_i128(&self) -> i128

Conversion to i128 with overflow checking.

§Panics

If the number is outside the i128 valid range.

Trait Implementations§

source§

impl AbiDecode for I256

source§

fn decode(bytes: impl AsRef<[u8]>) -> Result<I256, AbiError>

Decodes the ABI encoded data
source§

fn decode_hex(data: impl AsRef<str>) -> Result<Self, AbiError>

Decode hex encoded ABI encoded data Read more
source§

impl AbiEncode for I256

source§

fn encode(self) -> Vec<u8>

ABI encode the type
source§

fn encode_hex(self) -> String
where Self: Sized,

Returns the encoded value as hex string, with a 0x prefix
source§

impl AbiType for I256

source§

fn param_type() -> ParamType

The native ABI type this type represents.
source§

fn minimum_size() -> usize

A hint of the minimum number of bytes this type takes up in the ABI.
source§

impl<T> Add<T> for I256
where T: Into<I256>,

§

type Output = I256

The resulting type after applying the + operator.
source§

fn add(self, rhs: T) -> <I256 as Add<T>>::Output

Performs the + operation. Read more
source§

impl<T> AddAssign<T> for I256
where T: Into<I256>,

source§

fn add_assign(&mut self, rhs: T)

Performs the += operation. Read more
source§

impl BitAnd for I256

§

type Output = I256

The resulting type after applying the & operator.
source§

fn bitand(self, rhs: I256) -> <I256 as BitAnd>::Output

Performs the & operation. Read more
source§

impl BitAndAssign for I256

source§

fn bitand_assign(&mut self, rhs: I256)

Performs the &= operation. Read more
source§

impl BitOr for I256

§

type Output = I256

The resulting type after applying the | operator.
source§

fn bitor(self, rhs: I256) -> <I256 as BitOr>::Output

Performs the | operation. Read more
source§

impl BitOrAssign for I256

source§

fn bitor_assign(&mut self, rhs: I256)

Performs the |= operation. Read more
source§

impl BitXor for I256

§

type Output = I256

The resulting type after applying the ^ operator.
source§

fn bitxor(self, rhs: I256) -> <I256 as BitXor>::Output

Performs the ^ operation. Read more
source§

impl BitXorAssign for I256

source§

fn bitxor_assign(&mut self, rhs: I256)

Performs the ^= operation. Read more
source§

impl Clone for I256

source§

fn clone(&self) -> I256

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
source§

impl Debug for I256

source§

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

Formats the value using the given formatter. Read more
source§

impl Default for I256

source§

fn default() -> I256

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

impl<'de> Deserialize<'de> for I256

source§

fn deserialize<__D>( __deserializer: __D ) -> Result<I256, <__D as Deserializer<'de>>::Error>
where __D: Deserializer<'de>,

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

impl Display for I256

source§

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

Formats the value using the given formatter. Read more
source§

impl<T> Div<T> for I256
where T: Into<I256>,

§

type Output = I256

The resulting type after applying the / operator.
source§

fn div(self, rhs: T) -> <I256 as Div<T>>::Output

Performs the / operation. Read more
source§

impl<T> DivAssign<T> for I256
where T: Into<I256>,

source§

fn div_assign(&mut self, rhs: T)

Performs the /= operation. Read more
source§

impl From<ParseUnits> for I256

source§

fn from(n: ParseUnits) -> I256

Converts to this type from the input type.
source§

impl From<i128> for I256

source§

fn from(value: i128) -> I256

Converts to this type from the input type.
source§

impl From<i16> for I256

source§

fn from(value: i16) -> I256

Converts to this type from the input type.
source§

impl From<i32> for I256

source§

fn from(value: i32) -> I256

Converts to this type from the input type.
source§

impl From<i64> for I256

source§

fn from(value: i64) -> I256

Converts to this type from the input type.
source§

impl From<i8> for I256

source§

fn from(value: i8) -> I256

Converts to this type from the input type.
source§

impl From<isize> for I256

source§

fn from(value: isize) -> I256

Converts to this type from the input type.
source§

impl From<u128> for I256

source§

fn from(value: u128) -> I256

Converts to this type from the input type.
source§

impl From<u16> for I256

source§

fn from(value: u16) -> I256

Converts to this type from the input type.
source§

impl From<u32> for I256

source§

fn from(value: u32) -> I256

Converts to this type from the input type.
source§

impl From<u64> for I256

source§

fn from(value: u64) -> I256

Converts to this type from the input type.
source§

impl From<u8> for I256

source§

fn from(value: u8) -> I256

Converts to this type from the input type.
source§

impl From<usize> for I256

source§

fn from(value: usize) -> I256

Converts to this type from the input type.
source§

impl FromStr for I256

§

type Err = ParseI256Error

The associated error which can be returned from parsing.
source§

fn from_str(value: &str) -> Result<I256, <I256 as FromStr>::Err>

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

impl Hash for I256

source§

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
source§

impl LowerHex for I256

source§

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

Formats the value using the given formatter.
source§

impl<T> Mul<T> for I256
where T: Into<I256>,

§

type Output = I256

The resulting type after applying the * operator.
source§

fn mul(self, rhs: T) -> <I256 as Mul<T>>::Output

Performs the * operation. Read more
source§

impl<T> MulAssign<T> for I256
where T: Into<I256>,

source§

fn mul_assign(&mut self, rhs: T)

Performs the *= operation. Read more
source§

impl Neg for I256

§

type Output = I256

The resulting type after applying the - operator.
source§

fn neg(self) -> <I256 as Neg>::Output

Performs the unary - operation. Read more
source§

impl Not for I256

§

type Output = I256

The resulting type after applying the ! operator.
source§

fn not(self) -> <I256 as Not>::Output

Performs the unary ! operation. Read more
source§

impl Ord for I256

source§

fn cmp(&self, other: &I256) -> 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 + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for I256

source§

fn eq(&self, other: &I256) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

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

impl PartialOrd for I256

source§

fn partial_cmp(&self, other: &I256) -> 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

This method 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

This method 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

This method 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

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

impl<T> Product<T> for I256
where T: Into<I256>,

source§

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

Method which takes an iterator and generates Self from the elements by multiplying the items.
source§

impl<T> Rem<T> for I256
where T: Into<I256>,

§

type Output = I256

The resulting type after applying the % operator.
source§

fn rem(self, rhs: T) -> <I256 as Rem<T>>::Output

Performs the % operation. Read more
source§

impl<T> RemAssign<T> for I256
where T: Into<I256>,

source§

fn rem_assign(&mut self, rhs: T)

Performs the %= operation. Read more
source§

impl Serialize for I256

source§

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
source§

impl Shl<i16> for I256

§

type Output = I256

The resulting type after applying the << operator.
source§

fn shl(self, rhs: i16) -> <I256 as Shl<i16>>::Output

Performs the << operation. Read more
source§

impl Shl<i32> for I256

§

type Output = I256

The resulting type after applying the << operator.
source§

fn shl(self, rhs: i32) -> <I256 as Shl<i32>>::Output

Performs the << operation. Read more
source§

impl Shl<i64> for I256

§

type Output = I256

The resulting type after applying the << operator.
source§

fn shl(self, rhs: i64) -> <I256 as Shl<i64>>::Output

Performs the << operation. Read more
source§

impl Shl<i8> for I256

§

type Output = I256

The resulting type after applying the << operator.
source§

fn shl(self, rhs: i8) -> <I256 as Shl<i8>>::Output

Performs the << operation. Read more
source§

impl Shl<isize> for I256

§

type Output = I256

The resulting type after applying the << operator.
source§

fn shl(self, rhs: isize) -> <I256 as Shl<isize>>::Output

Performs the << operation. Read more
source§

impl Shl<u16> for I256

§

type Output = I256

The resulting type after applying the << operator.
source§

fn shl(self, rhs: u16) -> <I256 as Shl<u16>>::Output

Performs the << operation. Read more
source§

impl Shl<u32> for I256

§

type Output = I256

The resulting type after applying the << operator.
source§

fn shl(self, rhs: u32) -> <I256 as Shl<u32>>::Output

Performs the << operation. Read more
source§

impl Shl<u64> for I256

§

type Output = I256

The resulting type after applying the << operator.
source§

fn shl(self, rhs: u64) -> <I256 as Shl<u64>>::Output

Performs the << operation. Read more
source§

impl Shl<u8> for I256

§

type Output = I256

The resulting type after applying the << operator.
source§

fn shl(self, rhs: u8) -> <I256 as Shl<u8>>::Output

Performs the << operation. Read more
source§

impl Shl<usize> for I256

§

type Output = I256

The resulting type after applying the << operator.
source§

fn shl(self, rhs: usize) -> <I256 as Shl<usize>>::Output

Performs the << operation. Read more
source§

impl ShlAssign<i16> for I256

source§

fn shl_assign(&mut self, rhs: i16)

Performs the <<= operation. Read more
source§

impl ShlAssign<i32> for I256

source§

fn shl_assign(&mut self, rhs: i32)

Performs the <<= operation. Read more
source§

impl ShlAssign<i64> for I256

source§

fn shl_assign(&mut self, rhs: i64)

Performs the <<= operation. Read more
source§

impl ShlAssign<i8> for I256

source§

fn shl_assign(&mut self, rhs: i8)

Performs the <<= operation. Read more
source§

impl ShlAssign<isize> for I256

source§

fn shl_assign(&mut self, rhs: isize)

Performs the <<= operation. Read more
source§

impl ShlAssign<u16> for I256

source§

fn shl_assign(&mut self, rhs: u16)

Performs the <<= operation. Read more
source§

impl ShlAssign<u32> for I256

source§

fn shl_assign(&mut self, rhs: u32)

Performs the <<= operation. Read more
source§

impl ShlAssign<u64> for I256

source§

fn shl_assign(&mut self, rhs: u64)

Performs the <<= operation. Read more
source§

impl ShlAssign<u8> for I256

source§

fn shl_assign(&mut self, rhs: u8)

Performs the <<= operation. Read more
source§

impl ShlAssign<usize> for I256

source§

fn shl_assign(&mut self, rhs: usize)

Performs the <<= operation. Read more
source§

impl Shr<i16> for I256

§

type Output = I256

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: i16) -> <I256 as Shr<i16>>::Output

Performs the >> operation. Read more
source§

impl Shr<i32> for I256

§

type Output = I256

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: i32) -> <I256 as Shr<i32>>::Output

Performs the >> operation. Read more
source§

impl Shr<i64> for I256

§

type Output = I256

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: i64) -> <I256 as Shr<i64>>::Output

Performs the >> operation. Read more
source§

impl Shr<i8> for I256

§

type Output = I256

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: i8) -> <I256 as Shr<i8>>::Output

Performs the >> operation. Read more
source§

impl Shr<isize> for I256

§

type Output = I256

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: isize) -> <I256 as Shr<isize>>::Output

Performs the >> operation. Read more
source§

impl Shr<u16> for I256

§

type Output = I256

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: u16) -> <I256 as Shr<u16>>::Output

Performs the >> operation. Read more
source§

impl Shr<u32> for I256

§

type Output = I256

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: u32) -> <I256 as Shr<u32>>::Output

Performs the >> operation. Read more
source§

impl Shr<u64> for I256

§

type Output = I256

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: u64) -> <I256 as Shr<u64>>::Output

Performs the >> operation. Read more
source§

impl Shr<u8> for I256

§

type Output = I256

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: u8) -> <I256 as Shr<u8>>::Output

Performs the >> operation. Read more
source§

impl Shr<usize> for I256

§

type Output = I256

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: usize) -> <I256 as Shr<usize>>::Output

Performs the >> operation. Read more
source§

impl ShrAssign<i16> for I256

source§

fn shr_assign(&mut self, rhs: i16)

Performs the >>= operation. Read more
source§

impl ShrAssign<i32> for I256

source§

fn shr_assign(&mut self, rhs: i32)

Performs the >>= operation. Read more
source§

impl ShrAssign<i64> for I256

source§

fn shr_assign(&mut self, rhs: i64)

Performs the >>= operation. Read more
source§

impl ShrAssign<i8> for I256

source§

fn shr_assign(&mut self, rhs: i8)

Performs the >>= operation. Read more
source§

impl ShrAssign<isize> for I256

source§

fn shr_assign(&mut self, rhs: isize)

Performs the >>= operation. Read more
source§

impl ShrAssign<u16> for I256

source§

fn shr_assign(&mut self, rhs: u16)

Performs the >>= operation. Read more
source§

impl ShrAssign<u32> for I256

source§

fn shr_assign(&mut self, rhs: u32)

Performs the >>= operation. Read more
source§

impl ShrAssign<u64> for I256

source§

fn shr_assign(&mut self, rhs: u64)

Performs the >>= operation. Read more
source§

impl ShrAssign<u8> for I256

source§

fn shr_assign(&mut self, rhs: u8)

Performs the >>= operation. Read more
source§

impl ShrAssign<usize> for I256

source§

fn shr_assign(&mut self, rhs: usize)

Performs the >>= operation. Read more
source§

impl<T> Sub<T> for I256
where T: Into<I256>,

§

type Output = I256

The resulting type after applying the - operator.
source§

fn sub(self, rhs: T) -> <I256 as Sub<T>>::Output

Performs the - operation. Read more
source§

impl<T> SubAssign<T> for I256
where T: Into<I256>,

source§

fn sub_assign(&mut self, rhs: T)

Performs the -= operation. Read more
source§

impl<T> Sum<T> for I256
where T: Into<I256>,

source§

fn sum<I>(iter: I) -> I256
where I: Iterator<Item = T>,

Method which takes an iterator and generates Self from the elements by “summing up” the items.
source§

impl Tokenizable for I256

source§

fn from_token(token: Token) -> Result<I256, InvalidOutputType>

Converts a Token into expected type.
source§

fn into_token(self) -> Token

Converts a specified type back into token.
source§

impl TryFrom<&String> for I256

§

type Error = <I256 as FromStr>::Err

The type returned in the event of a conversion error.
source§

fn try_from(value: &String) -> Result<I256, <I256 as TryFrom<&String>>::Error>

Performs the conversion.
source§

impl TryFrom<&str> for I256

§

type Error = <I256 as FromStr>::Err

The type returned in the event of a conversion error.
source§

fn try_from(value: &str) -> Result<I256, <I256 as TryFrom<&str>>::Error>

Performs the conversion.
source§

impl TryFrom<I256> for U256

§

type Error = TryFromBigIntError

The type returned in the event of a conversion error.
source§

fn try_from(value: I256) -> Result<U256, <U256 as TryFrom<I256>>::Error>

Performs the conversion.
source§

impl TryFrom<String> for I256

§

type Error = <I256 as FromStr>::Err

The type returned in the event of a conversion error.
source§

fn try_from(value: String) -> Result<I256, <I256 as TryFrom<String>>::Error>

Performs the conversion.
source§

impl TryFrom<U256> for I256

§

type Error = TryFromBigIntError

The type returned in the event of a conversion error.
source§

fn try_from(from: U256) -> Result<I256, <I256 as TryFrom<U256>>::Error>

Performs the conversion.
source§

impl UpperHex for I256

source§

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

Formats the value using the given formatter.
source§

impl AbiArrayType for I256

source§

impl Copy for I256

source§

impl Eq for I256

source§

impl StructuralPartialEq for I256

source§

impl TokenizableItem for I256

Auto Trait Implementations§

§

impl Freeze for I256

§

impl RefUnwindSafe for I256

§

impl Send for I256

§

impl Sync for I256

§

impl Unpin for I256

§

impl UnwindSafe for I256

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
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<Q, K> Comparable<K> for Q
where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn compare(&self, key: &K) -> Ordering

Compare self to key and return their ordering.
source§

impl<T> Conv for T

source§

fn conv<T>(self) -> T
where Self: Into<T>,

Converts self into T using Into<T>. Read more
source§

impl<T> Detokenize for T
where T: Tokenizable,

source§

fn from_tokens(tokens: Vec<Token>) -> Result<T, InvalidOutputType>

Creates a new instance from parsed ABI tokens.
source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

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.
source§

impl<T> FmtForward for T

source§

fn fmt_binary(self) -> FmtBinary<Self>
where Self: Binary,

Causes self to use its Binary implementation when Debug-formatted.
source§

fn fmt_display(self) -> FmtDisplay<Self>
where Self: Display,

Causes self to use its Display implementation when Debug-formatted.
source§

fn fmt_lower_exp(self) -> FmtLowerExp<Self>
where Self: LowerExp,

Causes self to use its LowerExp implementation when Debug-formatted.
source§

fn fmt_lower_hex(self) -> FmtLowerHex<Self>
where Self: LowerHex,

Causes self to use its LowerHex implementation when Debug-formatted.
source§

fn fmt_octal(self) -> FmtOctal<Self>
where Self: Octal,

Causes self to use its Octal implementation when Debug-formatted.
source§

fn fmt_pointer(self) -> FmtPointer<Self>
where Self: Pointer,

Causes self to use its Pointer implementation when Debug-formatted.
source§

fn fmt_upper_exp(self) -> FmtUpperExp<Self>
where Self: UpperExp,

Causes self to use its UpperExp implementation when Debug-formatted.
source§

fn fmt_upper_hex(self) -> FmtUpperHex<Self>
where Self: UpperHex,

Causes self to use its UpperHex implementation when Debug-formatted.
source§

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.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

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> IntoSql for T

source§

fn into_sql<T>(self) -> Self::Expression

Convert self to an expression for Diesel’s query builder. Read more
source§

fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression

Convert &self to an expression for Diesel’s query builder. Read more
source§

impl<T> Pipe for T
where T: ?Sized,

source§

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
source§

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
source§

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
source§

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
source§

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
source§

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.
source§

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.
source§

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.
source§

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.
source§

impl<T, Conn> RunQueryDsl<Conn> for T

source§

fn execute<'conn, 'query>( self, conn: &'conn mut Conn ) -> <Conn as AsyncConnection>::ExecuteFuture<'conn, 'query>
where Conn: AsyncConnection + Send, Self: ExecuteDsl<Conn> + 'query,

Executes the given command, returning the number of rows affected. Read more
source§

fn load<'query, 'conn, U>( self, conn: &'conn mut Conn ) -> AndThen<Self::LoadFuture<'conn>, TryCollect<Self::Stream<'conn>, Vec<U>>, fn(_: Self::Stream<'conn>) -> TryCollect<Self::Stream<'conn>, Vec<U>>>
where U: Send, Conn: AsyncConnection, Self: LoadQuery<'query, Conn, U> + 'query,

Executes the given query, returning a Vec with the returned rows. Read more
source§

fn load_stream<'conn, 'query, U>( self, conn: &'conn mut Conn ) -> Self::LoadFuture<'conn>
where Conn: AsyncConnection, U: 'conn, Self: LoadQuery<'query, Conn, U> + 'query,

Executes the given query, returning a Stream with the returned rows. Read more
source§

fn get_result<'query, 'conn, U>( self, conn: &'conn mut Conn ) -> AndThen<Self::LoadFuture<'conn>, Map<StreamFuture<Pin<Box<Self::Stream<'conn>>>>, fn(_: (Option<Result<U, Error>>, Pin<Box<Self::Stream<'conn>>>)) -> Result<U, Error>>, fn(_: Self::Stream<'conn>) -> Map<StreamFuture<Pin<Box<Self::Stream<'conn>>>>, fn(_: (Option<Result<U, Error>>, Pin<Box<Self::Stream<'conn>>>)) -> Result<U, Error>>>
where U: Send + 'conn, Conn: AsyncConnection, Self: LoadQuery<'query, Conn, U> + 'query,

Runs the command, and returns the affected row. Read more
source§

fn get_results<'query, 'conn, U>( self, conn: &'conn mut Conn ) -> AndThen<Self::LoadFuture<'conn>, TryCollect<Self::Stream<'conn>, Vec<U>>, fn(_: Self::Stream<'conn>) -> TryCollect<Self::Stream<'conn>, Vec<U>>>
where U: Send, Conn: AsyncConnection, Self: LoadQuery<'query, Conn, U> + 'query,

Runs the command, returning an Vec with the affected rows. Read more
source§

fn first<'query, 'conn, U>( self, conn: &'conn mut Conn ) -> AndThen<<Self::Output as LoadQuery<'query, Conn, U>>::LoadFuture<'conn>, Map<StreamFuture<Pin<Box<<Self::Output as LoadQuery<'query, Conn, U>>::Stream<'conn>>>>, fn(_: (Option<Result<U, Error>>, Pin<Box<<Self::Output as LoadQuery<'query, Conn, U>>::Stream<'conn>>>)) -> Result<U, Error>>, fn(_: <Self::Output as LoadQuery<'query, Conn, U>>::Stream<'conn>) -> Map<StreamFuture<Pin<Box<<Self::Output as LoadQuery<'query, Conn, U>>::Stream<'conn>>>>, fn(_: (Option<Result<U, Error>>, Pin<Box<<Self::Output as LoadQuery<'query, Conn, U>>::Stream<'conn>>>)) -> Result<U, Error>>>
where U: Send + 'conn, Conn: AsyncConnection, Self: LimitDsl, Self::Output: LoadQuery<'query, Conn, U> + Send + 'query,

Attempts to load a single record. Read more
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> Tap for T

source§

fn tap(self, func: impl FnOnce(&Self)) -> Self

Immutable access to a value. Read more
source§

fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

Mutable access to a value. Read more
source§

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
source§

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
source§

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
source§

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
source§

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
source§

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
source§

fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

Calls .tap() only in debug builds, and is erased in release builds.
source§

fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

Calls .tap_mut() only in debug builds, and is erased in release builds.
source§

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.
source§

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.
source§

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.
source§

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.
source§

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.
source§

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,

§

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§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T> Tokenize for T
where T: Tokenizable,

source§

fn into_tokens(self) -> Vec<Token>

Converts self into a Vec<Token>.
source§

impl<T> TryConv for T

source§

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>,

§

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>,

§

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.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

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
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> WithSubscriber for T

source§

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
source§

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>,

source§

impl<T, Rhs, Output> GroupOps<Rhs, Output> for T
where T: Add<Rhs, Output = Output> + Sub<Rhs, Output = Output> + AddAssign<Rhs> + SubAssign<Rhs>,

source§

impl<T> JsonSchemaMaybe 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>,

source§

impl<T, Rhs, Output> ScalarMul<Rhs, Output> for T
where T: Mul<Rhs, Output = Output> + MulAssign<Rhs>,