Movatterモバイル変換


[0]ホーム

URL:


i32

Primitive Typei32 

1.0.0
Expand description

The 32-bit signed integer type.

Implementations§

Source§

impli32

1.43.0 ·Source

pub constMIN:i32 = -2_147_483_648i32

The smallest value that can be represented by this integer type(−231).

§Examples
assert_eq!(i32::MIN, -2147483648);
1.43.0 ·Source

pub constMAX:i32 = 2_147_483_647i32

The largest value that can be represented by this integer type(231 − 1).

§Examples
assert_eq!(i32::MAX,2147483647);
1.53.0 ·Source

pub constBITS:u32 = 32u32

The size of this integer type in bits.

§Examples
assert_eq!(i32::BITS,32);
1.0.0 (const: 1.32.0) ·Source

pub const fncount_ones(self) ->u32

Returns the number of ones in the binary representation ofself.

§Examples
letn =0b100_0000i32;assert_eq!(n.count_ones(),1);
1.0.0 (const: 1.32.0) ·Source

pub const fncount_zeros(self) ->u32

Returns the number of zeros in the binary representation ofself.

§Examples
assert_eq!(i32::MAX.count_zeros(),1);
1.0.0 (const: 1.32.0) ·Source

pub const fnleading_zeros(self) ->u32

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

Depending on what you’re doing with the value, you might also be interested in theilog2 function which returns a consistent number, even if the type widens.

§Examples
letn = -1i32;assert_eq!(n.leading_zeros(),0);
1.0.0 (const: 1.32.0) ·Source

pub const fntrailing_zeros(self) ->u32

Returns the number of trailing zeros in the binary representation ofself.

§Examples
letn = -4i32;assert_eq!(n.trailing_zeros(),2);
1.46.0 (const: 1.46.0) ·Source

pub const fnleading_ones(self) ->u32

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

§Examples
letn = -1i32;assert_eq!(n.leading_ones(),32);
1.46.0 (const: 1.46.0) ·Source

pub const fntrailing_ones(self) ->u32

Returns the number of trailing ones in the binary representation ofself.

§Examples
letn =3i32;assert_eq!(n.trailing_ones(),2);
Source

pub const fnisolate_highest_one(self) ->i32

🔬This is a nightly-only experimental API. (isolate_most_least_significant_one #136909)

Returnsself with only the most significant bit set, or0 ifthe input is0.

§Examples
#![feature(isolate_most_least_significant_one)]letn: i32 =0b_01100100;assert_eq!(n.isolate_highest_one(),0b_01000000);assert_eq!(0_i32.isolate_highest_one(),0);
Source

pub const fnisolate_lowest_one(self) ->i32

🔬This is a nightly-only experimental API. (isolate_most_least_significant_one #136909)

Returnsself with only the least significant bit set, or0 ifthe input is0.

§Examples
#![feature(isolate_most_least_significant_one)]letn: i32 =0b_01100100;assert_eq!(n.isolate_lowest_one(),0b_00000100);assert_eq!(0_i32.isolate_lowest_one(),0);
Source

pub const fnhighest_one(self) ->Option<u32>

🔬This is a nightly-only experimental API. (int_lowest_highest_one #145203)

Returns the index of the highest bit set to one inself, orNoneifself is0.

§Examples
#![feature(int_lowest_highest_one)]assert_eq!(0x0_i32.highest_one(),None);assert_eq!(0x1_i32.highest_one(),Some(0));assert_eq!(0x10_i32.highest_one(),Some(4));assert_eq!(0x1f_i32.highest_one(),Some(4));
Source

pub const fnlowest_one(self) ->Option<u32>

🔬This is a nightly-only experimental API. (int_lowest_highest_one #145203)

Returns the index of the lowest bit set to one inself, orNoneifself is0.

§Examples
#![feature(int_lowest_highest_one)]assert_eq!(0x0_i32.lowest_one(),None);assert_eq!(0x1_i32.lowest_one(),Some(0));assert_eq!(0x10_i32.lowest_one(),Some(4));assert_eq!(0x1f_i32.lowest_one(),Some(0));
1.87.0 (const: 1.87.0) ·Source

pub const fncast_unsigned(self) ->u32

Returns the bit pattern ofself reinterpreted as an unsigned integer of the same size.

This produces the same result as anas cast, but ensures that the bit-width remainsthe same.

§Examples
letn = -1i32;assert_eq!(n.cast_unsigned(), u32::MAX);
1.0.0 (const: 1.32.0) ·Source

pub const fnrotate_left(self, n:u32) ->i32

Shifts the bits to the left by a specified amount,n,wrapping the truncated bits to the end of the resulting integer.

Please note this isn’t the same operation as the<< shifting operator!

§Examples
letn =0x10000b3i32;letm =0xb301;assert_eq!(n.rotate_left(8), m);
1.0.0 (const: 1.32.0) ·Source

pub const fnrotate_right(self, n:u32) ->i32

Shifts the bits to the right by a specified amount,n,wrapping the truncated bits to the beginning of the resultinginteger.

Please note this isn’t the same operation as the>> shifting operator!

§Examples
letn =0xb301i32;letm =0x10000b3;assert_eq!(n.rotate_right(8), m);
1.0.0 (const: 1.32.0) ·Source

pub const fnswap_bytes(self) ->i32

Reverses the byte order of the integer.

§Examples
letn =0x12345678i32;letm = n.swap_bytes();assert_eq!(m,0x78563412);
1.37.0 (const: 1.37.0) ·Source

pub const fnreverse_bits(self) ->i32

Reverses the order of bits in the integer. The least significant bit becomes the most significant bit,second least-significant bit becomes second most-significant bit, etc.

§Examples
letn =0x12345678i32;letm = n.reverse_bits();assert_eq!(m,0x1e6a2c48);assert_eq!(0,0i32.reverse_bits());
1.0.0 (const: 1.32.0) ·Source

pub const fnfrom_be(x:i32) ->i32

Converts an integer from big endian to the target’s endianness.

On big endian this is a no-op. On little endian the bytes are swapped.

§Examples
letn =0x1Ai32;ifcfg!(target_endian ="big") {assert_eq!(i32::from_be(n), n)}else{assert_eq!(i32::from_be(n), n.swap_bytes())}
1.0.0 (const: 1.32.0) ·Source

pub const fnfrom_le(x:i32) ->i32

Converts an integer from little endian to the target’s endianness.

On little endian this is a no-op. On big endian the bytes are swapped.

§Examples
letn =0x1Ai32;ifcfg!(target_endian ="little") {assert_eq!(i32::from_le(n), n)}else{assert_eq!(i32::from_le(n), n.swap_bytes())}
1.0.0 (const: 1.32.0) ·Source

pub const fnto_be(self) ->i32

Convertsself to big endian from the target’s endianness.

On big endian this is a no-op. On little endian the bytes are swapped.

§Examples
letn =0x1Ai32;ifcfg!(target_endian ="big") {assert_eq!(n.to_be(), n)}else{assert_eq!(n.to_be(), n.swap_bytes())}
1.0.0 (const: 1.32.0) ·Source

pub const fnto_le(self) ->i32

Convertsself to little endian from the target’s endianness.

On little endian this is a no-op. On big endian the bytes are swapped.

§Examples
letn =0x1Ai32;ifcfg!(target_endian ="little") {assert_eq!(n.to_le(), n)}else{assert_eq!(n.to_le(), n.swap_bytes())}
1.0.0 (const: 1.47.0) ·Source

pub const fnchecked_add(self, rhs:i32) ->Option<i32>

Checked integer addition. Computesself + rhs, returningNoneif overflow occurred.

§Examples
assert_eq!((i32::MAX -2).checked_add(1),Some(i32::MAX -1));assert_eq!((i32::MAX -2).checked_add(3),None);
1.91.0 (const: 1.91.0) ·Source

pub const fnstrict_add(self, rhs:i32) ->i32

Strict integer addition. Computesself + rhs, panickingif overflow occurred.

§Panics
§Overflow behavior

This function will always panic on overflow, regardless of whether overflow checks are enabled.

§Examples
assert_eq!((i32::MAX -2).strict_add(1), i32::MAX -1);

The following panics because of overflow:

let _= (i32::MAX -2).strict_add(3);
1.79.0 (const: 1.79.0) ·Source

pub const unsafe fnunchecked_add(self, rhs:i32) ->i32

Unchecked integer addition. Computesself + rhs, assuming overflowcannot occur.

Callingx.unchecked_add(y) is semantically equivalent to callingx.checked_add(y).unwrap_unchecked().

If you’re just trying to avoid the panic in debug mode, thendo notuse this. Instead, you’re looking forwrapping_add.

§Safety

This results in undefined behavior whenself + rhs > i32::MAX orself + rhs < i32::MIN,i.e. whenchecked_add would returnNone.

1.66.0 (const: 1.66.0) ·Source

pub const fnchecked_add_unsigned(self, rhs:u32) ->Option<i32>

Checked addition with an unsigned integer. Computesself + rhs,returningNone if overflow occurred.

§Examples
assert_eq!(1i32.checked_add_unsigned(2),Some(3));assert_eq!((i32::MAX -2).checked_add_unsigned(3),None);
1.91.0 (const: 1.91.0) ·Source

pub const fnstrict_add_unsigned(self, rhs:u32) ->i32

Strict addition with an unsigned integer. Computesself + rhs,panicking if overflow occurred.

§Panics
§Overflow behavior

This function will always panic on overflow, regardless of whether overflow checks are enabled.

§Examples
assert_eq!(1i32.strict_add_unsigned(2),3);

The following panics because of overflow:

let _= (i32::MAX -2).strict_add_unsigned(3);
1.0.0 (const: 1.47.0) ·Source

pub const fnchecked_sub(self, rhs:i32) ->Option<i32>

Checked integer subtraction. Computesself - rhs, returningNone ifoverflow occurred.

§Examples
assert_eq!((i32::MIN +2).checked_sub(1),Some(i32::MIN +1));assert_eq!((i32::MIN +2).checked_sub(3),None);
1.91.0 (const: 1.91.0) ·Source

pub const fnstrict_sub(self, rhs:i32) ->i32

Strict integer subtraction. Computesself - rhs, panicking ifoverflow occurred.

§Panics
§Overflow behavior

This function will always panic on overflow, regardless of whether overflow checks are enabled.

§Examples
assert_eq!((i32::MIN +2).strict_sub(1), i32::MIN +1);

The following panics because of overflow:

let _= (i32::MIN +2).strict_sub(3);
1.79.0 (const: 1.79.0) ·Source

pub const unsafe fnunchecked_sub(self, rhs:i32) ->i32

Unchecked integer subtraction. Computesself - rhs, assuming overflowcannot occur.

Callingx.unchecked_sub(y) is semantically equivalent to callingx.checked_sub(y).unwrap_unchecked().

If you’re just trying to avoid the panic in debug mode, thendo notuse this. Instead, you’re looking forwrapping_sub.

§Safety

This results in undefined behavior whenself - rhs > i32::MAX orself - rhs < i32::MIN,i.e. whenchecked_sub would returnNone.

1.66.0 (const: 1.66.0) ·Source

pub const fnchecked_sub_unsigned(self, rhs:u32) ->Option<i32>

Checked subtraction with an unsigned integer. Computesself - rhs,returningNone if overflow occurred.

§Examples
assert_eq!(1i32.checked_sub_unsigned(2),Some(-1));assert_eq!((i32::MIN +2).checked_sub_unsigned(3),None);
1.91.0 (const: 1.91.0) ·Source

pub const fnstrict_sub_unsigned(self, rhs:u32) ->i32

Strict subtraction with an unsigned integer. Computesself - rhs,panicking if overflow occurred.

§Panics
§Overflow behavior

This function will always panic on overflow, regardless of whether overflow checks are enabled.

§Examples
assert_eq!(1i32.strict_sub_unsigned(2), -1);

The following panics because of overflow:

let _= (i32::MIN +2).strict_sub_unsigned(3);
1.0.0 (const: 1.47.0) ·Source

pub const fnchecked_mul(self, rhs:i32) ->Option<i32>

Checked integer multiplication. Computesself * rhs, returningNone ifoverflow occurred.

§Examples
assert_eq!(i32::MAX.checked_mul(1),Some(i32::MAX));assert_eq!(i32::MAX.checked_mul(2),None);
1.91.0 (const: 1.91.0) ·Source

pub const fnstrict_mul(self, rhs:i32) ->i32

Strict integer multiplication. Computesself * rhs, panicking ifoverflow occurred.

§Panics
§Overflow behavior

This function will always panic on overflow, regardless of whether overflow checks are enabled.

§Examples
assert_eq!(i32::MAX.strict_mul(1), i32::MAX);

The following panics because of overflow:

let _= i32::MAX.strict_mul(2);
1.79.0 (const: 1.79.0) ·Source

pub const unsafe fnunchecked_mul(self, rhs:i32) ->i32

Unchecked integer multiplication. Computesself * rhs, assuming overflowcannot occur.

Callingx.unchecked_mul(y) is semantically equivalent to callingx.checked_mul(y).unwrap_unchecked().

If you’re just trying to avoid the panic in debug mode, thendo notuse this. Instead, you’re looking forwrapping_mul.

§Safety

This results in undefined behavior whenself * rhs > i32::MAX orself * rhs < i32::MIN,i.e. whenchecked_mul would returnNone.

1.0.0 (const: 1.52.0) ·Source

pub const fnchecked_div(self, rhs:i32) ->Option<i32>

Checked integer division. Computesself / rhs, returningNone ifrhs == 0or the division results in overflow.

§Examples
assert_eq!((i32::MIN +1).checked_div(-1),Some(2147483647));assert_eq!(i32::MIN.checked_div(-1),None);assert_eq!((1i32).checked_div(0),None);
1.91.0 (const: 1.91.0) ·Source

pub const fnstrict_div(self, rhs:i32) ->i32

Strict integer division. Computesself / rhs, panickingif overflow occurred.

§Panics

This function will panic ifrhs is zero.

§Overflow behavior

This function will always panic on overflow, regardless of whether overflow checks are enabled.

The only case where such an overflow can occur is when one dividesMIN / -1 on a signed type (whereMIN is the negative minimal value for the type); this is equivalent to-MIN, a positive valuethat is too large to represent in the type.

§Examples
assert_eq!((i32::MIN +1).strict_div(-1),2147483647);

The following panics because of overflow:

let _= i32::MIN.strict_div(-1);

The following panics because of division by zero:

let _= (1i32).strict_div(0);
1.38.0 (const: 1.52.0) ·Source

pub const fnchecked_div_euclid(self, rhs:i32) ->Option<i32>

Checked Euclidean division. Computesself.div_euclid(rhs),returningNone ifrhs == 0 or the division results in overflow.

§Examples
assert_eq!((i32::MIN +1).checked_div_euclid(-1),Some(2147483647));assert_eq!(i32::MIN.checked_div_euclid(-1),None);assert_eq!((1i32).checked_div_euclid(0),None);
1.91.0 (const: 1.91.0) ·Source

pub const fnstrict_div_euclid(self, rhs:i32) ->i32

Strict Euclidean division. Computesself.div_euclid(rhs), panickingif overflow occurred.

§Panics

This function will panic ifrhs is zero.

§Overflow behavior

This function will always panic on overflow, regardless of whether overflow checks are enabled.

The only case where such an overflow can occur is when one dividesMIN / -1 on a signed type (whereMIN is the negative minimal value for the type); this is equivalent to-MIN, a positive valuethat is too large to represent in the type.

§Examples
assert_eq!((i32::MIN +1).strict_div_euclid(-1),2147483647);

The following panics because of overflow:

let _= i32::MIN.strict_div_euclid(-1);

The following panics because of division by zero:

let _= (1i32).strict_div_euclid(0);
Source

pub const fnchecked_exact_div(self, rhs:i32) ->Option<i32>

🔬This is a nightly-only experimental API. (exact_div #139911)

Checked integer division without remainder. Computesself / rhs,returningNone ifrhs == 0, the division results in overflow,orself % rhs != 0.

§Examples
#![feature(exact_div)]assert_eq!((i32::MIN +1).checked_exact_div(-1),Some(2147483647));assert_eq!((-5i32).checked_exact_div(2),None);assert_eq!(i32::MIN.checked_exact_div(-1),None);assert_eq!((1i32).checked_exact_div(0),None);
Source

pub const fnexact_div(self, rhs:i32) ->i32

🔬This is a nightly-only experimental API. (exact_div #139911)

Checked integer division without remainder. Computesself / rhs.

§Panics

This function will panic ifrhs == 0, the division results in overflow,orself % rhs != 0.

§Examples
#![feature(exact_div)]assert_eq!(64i32.exact_div(2),32);assert_eq!(64i32.exact_div(32),2);assert_eq!((i32::MIN +1).exact_div(-1),2147483647);
#![feature(exact_div)]let _=65i32.exact_div(2);
#![feature(exact_div)]let _= i32::MIN.exact_div(-1);
Source

pub const unsafe fnunchecked_exact_div(self, rhs:i32) ->i32

🔬This is a nightly-only experimental API. (exact_div #139911)

Unchecked integer division without remainder. Computesself / rhs.

§Safety

This results in undefined behavior whenrhs == 0,self % rhs != 0, orself == i32::MIN && rhs == -1,i.e. whenchecked_exact_div would returnNone.

1.7.0 (const: 1.52.0) ·Source

pub const fnchecked_rem(self, rhs:i32) ->Option<i32>

Checked integer remainder. Computesself % rhs, returningNone ifrhs == 0 or the division results in overflow.

§Examples
assert_eq!(5i32.checked_rem(2),Some(1));assert_eq!(5i32.checked_rem(0),None);assert_eq!(i32::MIN.checked_rem(-1),None);
1.91.0 (const: 1.91.0) ·Source

pub const fnstrict_rem(self, rhs:i32) ->i32

Strict integer remainder. Computesself % rhs, panicking ifthe division results in overflow.

§Panics

This function will panic ifrhs is zero.

§Overflow behavior

This function will always panic on overflow, regardless of whether overflow checks are enabled.

The only case where such an overflow can occur isx % y forMIN / -1 on asigned type (whereMIN is the negative minimal value), which is invalid due to implementation artifacts.

§Examples
assert_eq!(5i32.strict_rem(2),1);

The following panics because of division by zero:

let _=5i32.strict_rem(0);

The following panics because of overflow:

let _= i32::MIN.strict_rem(-1);
1.38.0 (const: 1.52.0) ·Source

pub const fnchecked_rem_euclid(self, rhs:i32) ->Option<i32>

Checked Euclidean remainder. Computesself.rem_euclid(rhs), returningNoneifrhs == 0 or the division results in overflow.

§Examples
assert_eq!(5i32.checked_rem_euclid(2),Some(1));assert_eq!(5i32.checked_rem_euclid(0),None);assert_eq!(i32::MIN.checked_rem_euclid(-1),None);
1.91.0 (const: 1.91.0) ·Source

pub const fnstrict_rem_euclid(self, rhs:i32) ->i32

Strict Euclidean remainder. Computesself.rem_euclid(rhs), panicking ifthe division results in overflow.

§Panics

This function will panic ifrhs is zero.

§Overflow behavior

This function will always panic on overflow, regardless of whether overflow checks are enabled.

The only case where such an overflow can occur isx % y forMIN / -1 on asigned type (whereMIN is the negative minimal value), which is invalid due to implementation artifacts.

§Examples
assert_eq!(5i32.strict_rem_euclid(2),1);

The following panics because of division by zero:

let _=5i32.strict_rem_euclid(0);

The following panics because of overflow:

let _= i32::MIN.strict_rem_euclid(-1);
1.7.0 (const: 1.47.0) ·Source

pub const fnchecked_neg(self) ->Option<i32>

Checked negation. Computes-self, returningNone ifself == MIN.

§Examples
assert_eq!(5i32.checked_neg(),Some(-5));assert_eq!(i32::MIN.checked_neg(),None);
Source

pub const unsafe fnunchecked_neg(self) ->i32

🔬This is a nightly-only experimental API. (unchecked_neg #85122)

Unchecked negation. Computes-self, assuming overflow cannot occur.

§Safety

This results in undefined behavior whenself == i32::MIN,i.e. whenchecked_neg would returnNone.

1.91.0 (const: 1.91.0) ·Source

pub const fnstrict_neg(self) ->i32

Strict negation. Computes-self, panicking ifself == MIN.

§Panics
§Overflow behavior

This function will always panic on overflow, regardless of whether overflow checks are enabled.

§Examples
assert_eq!(5i32.strict_neg(), -5);

The following panics because of overflow:

let _= i32::MIN.strict_neg();
1.7.0 (const: 1.47.0) ·Source

pub const fnchecked_shl(self, rhs:u32) ->Option<i32>

Checked shift left. Computesself << rhs, returningNone ifrhs is largerthan or equal to the number of bits inself.

§Examples
assert_eq!(0x1i32.checked_shl(4),Some(0x10));assert_eq!(0x1i32.checked_shl(129),None);assert_eq!(0x10i32.checked_shl(31),Some(0));
1.91.0 (const: 1.91.0) ·Source

pub const fnstrict_shl(self, rhs:u32) ->i32

Strict shift left. Computesself << rhs, panicking ifrhs is largerthan or equal to the number of bits inself.

§Panics
§Overflow behavior

This function will always panic on overflow, regardless of whether overflow checks are enabled.

§Examples
assert_eq!(0x1i32.strict_shl(4),0x10);

The following panics because of overflow:

let _=0x1i32.strict_shl(129);
Source

pub const unsafe fnunchecked_shl(self, rhs:u32) ->i32

🔬This is a nightly-only experimental API. (unchecked_shifts #85122)

Unchecked shift left. Computesself << rhs, assuming thatrhs is less than the number of bits inself.

§Safety

This results in undefined behavior ifrhs is larger thanor equal to the number of bits inself,i.e. whenchecked_shl would returnNone.

1.87.0 (const: 1.87.0) ·Source

pub const fnunbounded_shl(self, rhs:u32) ->i32

Unbounded shift left. Computesself << rhs, without bounding the value ofrhs.

Ifrhs is larger or equal to the number of bits inself,the entire value is shifted out, and0 is returned.

§Examples
assert_eq!(0x1i32.unbounded_shl(4),0x10);assert_eq!(0x1i32.unbounded_shl(129),0);
Source

pub const fnexact_shl(self, rhs:u32) ->Option<i32>

🔬This is a nightly-only experimental API. (exact_bitshifts #144336)

Exact shift left. Computesself << rhs as long as it can be reversed losslessly.

ReturnsNone if any bits that would be shifted out differ from the resulting sign bitor ifrhs >=i32::BITS.Otherwise, returnsSome(self << rhs).

§Examples
#![feature(exact_bitshifts)]assert_eq!(0x1i32.exact_shl(4),Some(0x10));assert_eq!(0x1i32.exact_shl(i32::BITS -2),Some(1<< i32::BITS -2));assert_eq!(0x1i32.exact_shl(i32::BITS -1),None);assert_eq!((-0x2i32).exact_shl(i32::BITS -2),Some(-0x2<< i32::BITS -2));assert_eq!((-0x2i32).exact_shl(i32::BITS -1),None);
Source

pub const unsafe fnunchecked_exact_shl(self, rhs:u32) ->i32

🔬This is a nightly-only experimental API. (exact_bitshifts #144336)

Unchecked exact shift left. Computesself << rhs, assuming the operation can belosslessly reversed andrhs cannot be larger thani32::BITS.

§Safety

This results in undefined behavior whenrhs >= self.leading_zeros() && rhs >= self.leading_ones() i.e. wheni32::exact_shlwould returnNone.

1.7.0 (const: 1.47.0) ·Source

pub const fnchecked_shr(self, rhs:u32) ->Option<i32>

Checked shift right. Computesself >> rhs, returningNone ifrhs islarger than or equal to the number of bits inself.

§Examples
assert_eq!(0x10i32.checked_shr(4),Some(0x1));assert_eq!(0x10i32.checked_shr(128),None);
1.91.0 (const: 1.91.0) ·Source

pub const fnstrict_shr(self, rhs:u32) ->i32

Strict shift right. Computesself >> rhs, panickingrhs islarger than or equal to the number of bits inself.

§Panics
§Overflow behavior

This function will always panic on overflow, regardless of whether overflow checks are enabled.

§Examples
assert_eq!(0x10i32.strict_shr(4),0x1);

The following panics because of overflow:

let _=0x10i32.strict_shr(128);
Source

pub const unsafe fnunchecked_shr(self, rhs:u32) ->i32

🔬This is a nightly-only experimental API. (unchecked_shifts #85122)

Unchecked shift right. Computesself >> rhs, assuming thatrhs is less than the number of bits inself.

§Safety

This results in undefined behavior ifrhs is larger thanor equal to the number of bits inself,i.e. whenchecked_shr would returnNone.

1.87.0 (const: 1.87.0) ·Source

pub const fnunbounded_shr(self, rhs:u32) ->i32

Unbounded shift right. Computesself >> rhs, without bounding the value ofrhs.

Ifrhs is larger or equal to the number of bits inself,the entire value is shifted out, which yields0 for a positive number,and-1 for a negative number.

§Examples
assert_eq!(0x10i32.unbounded_shr(4),0x1);assert_eq!(0x10i32.unbounded_shr(129),0);assert_eq!(i32::MIN.unbounded_shr(129), -1);
Source

pub const fnexact_shr(self, rhs:u32) ->Option<i32>

🔬This is a nightly-only experimental API. (exact_bitshifts #144336)

Exact shift right. Computesself >> rhs as long as it can be reversed losslessly.

ReturnsNone if any non-zero bits would be shifted out or ifrhs >=i32::BITS.Otherwise, returnsSome(self >> rhs).

§Examples
#![feature(exact_bitshifts)]assert_eq!(0x10i32.exact_shr(4),Some(0x1));assert_eq!(0x10i32.exact_shr(5),None);
Source

pub const unsafe fnunchecked_exact_shr(self, rhs:u32) ->i32

🔬This is a nightly-only experimental API. (exact_bitshifts #144336)

Unchecked exact shift right. Computesself >> rhs, assuming the operation can belosslessly reversed andrhs cannot be larger thani32::BITS.

§Safety

This results in undefined behavior whenrhs > self.trailing_zeros() || rhs >= i32::BITSi.e. wheni32::exact_shrwould returnNone.

1.13.0 (const: 1.47.0) ·Source

pub const fnchecked_abs(self) ->Option<i32>

Checked absolute value. Computesself.abs(), returningNone ifself == MIN.

§Examples
assert_eq!((-5i32).checked_abs(),Some(5));assert_eq!(i32::MIN.checked_abs(),None);
1.91.0 (const: 1.91.0) ·Source

pub const fnstrict_abs(self) ->i32

Strict absolute value. Computesself.abs(), panicking ifself == MIN.

§Panics
§Overflow behavior

This function will always panic on overflow, regardless of whether overflow checks are enabled.

§Examples
assert_eq!((-5i32).strict_abs(),5);

The following panics because of overflow:

let _= i32::MIN.strict_abs();
1.34.0 (const: 1.50.0) ·Source

pub const fnchecked_pow(self, exp:u32) ->Option<i32>

Checked exponentiation. Computesself.pow(exp), returningNone ifoverflow occurred.

§Examples
assert_eq!(8i32.checked_pow(2),Some(64));assert_eq!(i32::MAX.checked_pow(2),None);
1.91.0 (const: 1.91.0) ·Source

pub const fnstrict_pow(self, exp:u32) ->i32

Strict exponentiation. Computesself.pow(exp), panicking ifoverflow occurred.

§Panics
§Overflow behavior

This function will always panic on overflow, regardless of whether overflow checks are enabled.

§Examples
assert_eq!(8i32.strict_pow(2),64);

The following panics because of overflow:

let _= i32::MAX.strict_pow(2);
1.84.0 (const: 1.84.0) ·Source

pub const fnchecked_isqrt(self) ->Option<i32>

Returns the square root of the number, rounded down.

ReturnsNone ifself is negative.

§Examples
assert_eq!(10i32.checked_isqrt(),Some(3));
1.0.0 (const: 1.47.0) ·Source

pub const fnsaturating_add(self, rhs:i32) ->i32

Saturating integer addition. Computesself + rhs, saturating at the numericbounds instead of overflowing.

§Examples
assert_eq!(100i32.saturating_add(1),101);assert_eq!(i32::MAX.saturating_add(100), i32::MAX);assert_eq!(i32::MIN.saturating_add(-1), i32::MIN);
1.66.0 (const: 1.66.0) ·Source

pub const fnsaturating_add_unsigned(self, rhs:u32) ->i32

Saturating addition with an unsigned integer. Computesself + rhs,saturating at the numeric bounds instead of overflowing.

§Examples
assert_eq!(1i32.saturating_add_unsigned(2),3);assert_eq!(i32::MAX.saturating_add_unsigned(100), i32::MAX);
1.0.0 (const: 1.47.0) ·Source

pub const fnsaturating_sub(self, rhs:i32) ->i32

Saturating integer subtraction. Computesself - rhs, saturating at thenumeric bounds instead of overflowing.

§Examples
assert_eq!(100i32.saturating_sub(127), -27);assert_eq!(i32::MIN.saturating_sub(100), i32::MIN);assert_eq!(i32::MAX.saturating_sub(-1), i32::MAX);
1.66.0 (const: 1.66.0) ·Source

pub const fnsaturating_sub_unsigned(self, rhs:u32) ->i32

Saturating subtraction with an unsigned integer. Computesself - rhs,saturating at the numeric bounds instead of overflowing.

§Examples
assert_eq!(100i32.saturating_sub_unsigned(127), -27);assert_eq!(i32::MIN.saturating_sub_unsigned(100), i32::MIN);
1.45.0 (const: 1.47.0) ·Source

pub const fnsaturating_neg(self) ->i32

Saturating integer negation. Computes-self, returningMAX ifself == MINinstead of overflowing.

§Examples
assert_eq!(100i32.saturating_neg(), -100);assert_eq!((-100i32).saturating_neg(),100);assert_eq!(i32::MIN.saturating_neg(), i32::MAX);assert_eq!(i32::MAX.saturating_neg(), i32::MIN +1);
1.45.0 (const: 1.47.0) ·Source

pub const fnsaturating_abs(self) ->i32

Saturating absolute value. Computesself.abs(), returningMAX ifself == MIN instead of overflowing.

§Examples
assert_eq!(100i32.saturating_abs(),100);assert_eq!((-100i32).saturating_abs(),100);assert_eq!(i32::MIN.saturating_abs(), i32::MAX);assert_eq!((i32::MIN +1).saturating_abs(), i32::MAX);
1.7.0 (const: 1.47.0) ·Source

pub const fnsaturating_mul(self, rhs:i32) ->i32

Saturating integer multiplication. Computesself * rhs, saturating at thenumeric bounds instead of overflowing.

§Examples
assert_eq!(10i32.saturating_mul(12),120);assert_eq!(i32::MAX.saturating_mul(10), i32::MAX);assert_eq!(i32::MIN.saturating_mul(10), i32::MIN);
1.58.0 (const: 1.58.0) ·Source

pub const fnsaturating_div(self, rhs:i32) ->i32

Saturating integer division. Computesself / rhs, saturating at thenumeric bounds instead of overflowing.

§Panics

This function will panic ifrhs is zero.

§Examples
assert_eq!(5i32.saturating_div(2),2);assert_eq!(i32::MAX.saturating_div(-1), i32::MIN +1);assert_eq!(i32::MIN.saturating_div(-1), i32::MAX);
1.34.0 (const: 1.50.0) ·Source

pub const fnsaturating_pow(self, exp:u32) ->i32

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

§Examples
assert_eq!((-4i32).saturating_pow(3), -64);assert_eq!(i32::MIN.saturating_pow(2), i32::MAX);assert_eq!(i32::MIN.saturating_pow(3), i32::MIN);
1.0.0 (const: 1.32.0) ·Source

pub const fnwrapping_add(self, rhs:i32) ->i32

Wrapping (modular) addition. Computesself + rhs, wrapping around at theboundary of the type.

§Examples
assert_eq!(100i32.wrapping_add(27),127);assert_eq!(i32::MAX.wrapping_add(2), i32::MIN +1);
1.66.0 (const: 1.66.0) ·Source

pub const fnwrapping_add_unsigned(self, rhs:u32) ->i32

Wrapping (modular) addition with an unsigned integer. Computesself + rhs, wrapping around at the boundary of the type.

§Examples
assert_eq!(100i32.wrapping_add_unsigned(27),127);assert_eq!(i32::MAX.wrapping_add_unsigned(2), i32::MIN +1);
1.0.0 (const: 1.32.0) ·Source

pub const fnwrapping_sub(self, rhs:i32) ->i32

Wrapping (modular) subtraction. Computesself - rhs, wrapping around at theboundary of the type.

§Examples
assert_eq!(0i32.wrapping_sub(127), -127);assert_eq!((-2i32).wrapping_sub(i32::MAX), i32::MAX);
1.66.0 (const: 1.66.0) ·Source

pub const fnwrapping_sub_unsigned(self, rhs:u32) ->i32

Wrapping (modular) subtraction with an unsigned integer. Computesself - rhs, wrapping around at the boundary of the type.

§Examples
assert_eq!(0i32.wrapping_sub_unsigned(127), -127);assert_eq!((-2i32).wrapping_sub_unsigned(u32::MAX), -1);
1.0.0 (const: 1.32.0) ·Source

pub const fnwrapping_mul(self, rhs:i32) ->i32

Wrapping (modular) multiplication. Computesself * rhs, wrapping around atthe boundary of the type.

§Examples
assert_eq!(10i32.wrapping_mul(12),120);assert_eq!(11i8.wrapping_mul(12), -124);
1.2.0 (const: 1.52.0) ·Source

pub const fnwrapping_div(self, rhs:i32) ->i32

Wrapping (modular) division. Computesself / rhs, wrapping around at theboundary of the type.

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

§Panics

This function will panic ifrhs is zero.

§Examples
assert_eq!(100i32.wrapping_div(10),10);assert_eq!((-128i8).wrapping_div(-1), -128);
1.38.0 (const: 1.52.0) ·Source

pub const fnwrapping_div_euclid(self, rhs:i32) ->i32

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

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

§Panics

This function will panic ifrhs is zero.

§Examples
assert_eq!(100i32.wrapping_div_euclid(10),10);assert_eq!((-128i8).wrapping_div_euclid(-1), -128);
1.2.0 (const: 1.52.0) ·Source

pub const fnwrapping_rem(self, rhs:i32) ->i32

Wrapping (modular) remainder. Computesself % rhs, wrapping around at theboundary of the type.

Such wrap-around never actually occurs mathematically; implementation artifacts makex % yinvalid forMIN / -1 on a signed type (whereMIN is the negative minimal value). In such a case,this function returns0.

§Panics

This function will panic ifrhs is zero.

§Examples
assert_eq!(100i32.wrapping_rem(10),0);assert_eq!((-128i8).wrapping_rem(-1),0);
1.38.0 (const: 1.52.0) ·Source

pub const fnwrapping_rem_euclid(self, rhs:i32) ->i32

Wrapping Euclidean remainder. Computesself.rem_euclid(rhs), wrapping aroundat the boundary of the type.

Wrapping will only occur inMIN % -1 on a signed type (whereMIN is the negative minimal valuefor the type). In this case, this method returns 0.

§Panics

This function will panic ifrhs is zero.

§Examples
assert_eq!(100i32.wrapping_rem_euclid(10),0);assert_eq!((-128i8).wrapping_rem_euclid(-1),0);
1.2.0 (const: 1.32.0) ·Source

pub const fnwrapping_neg(self) ->i32

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

The only case where such wrapping can occur is when one negatesMIN on a signed type (whereMINis the negative minimal value for the type); this is a positive value that is too large to representin the type. In such a case, this function returnsMIN itself.

§Examples
assert_eq!(100i32.wrapping_neg(), -100);assert_eq!((-100i32).wrapping_neg(),100);assert_eq!(i32::MIN.wrapping_neg(), i32::MIN);
1.2.0 (const: 1.32.0) ·Source

pub const fnwrapping_shl(self, rhs:u32) ->i32

Panic-free bitwise shift-left; yieldsself << mask(rhs), wheremask removesany high-order bits ofrhs that would cause the shift to exceed the bitwidth of the type.

Note that this isnot the same as a rotate-left; the RHS of a wrapping shift-left is restricted tothe range of the type, rather than the bits shifted out of the LHS being returned to the other end.The primitive integer types all implement arotate_left function,which may be what you want instead.

§Examples
assert_eq!((-1i32).wrapping_shl(7), -128);assert_eq!((-1i32).wrapping_shl(128), -1);
1.2.0 (const: 1.32.0) ·Source

pub const fnwrapping_shr(self, rhs:u32) ->i32

Panic-free bitwise shift-right; yieldsself >> mask(rhs), wheremaskremoves any high-order bits ofrhs that would cause the shift to exceed the bitwidth of the type.

Note that this isnot the same as a rotate-right; the RHS of a wrapping shift-right is restrictedto the range of the type, rather than the bits shifted out of the LHS being returned to the otherend. The primitive integer types all implement arotate_right function,which may be what you want instead.

§Examples
assert_eq!((-128i32).wrapping_shr(7), -1);assert_eq!((-128i16).wrapping_shr(64), -128);
1.13.0 (const: 1.32.0) ·Source

pub const fnwrapping_abs(self) ->i32

Wrapping (modular) absolute value. Computesself.abs(), wrapping around atthe boundary of the type.

The only case where such wrapping can occur is when one takes the absolute value of the negativeminimal value for the type; this is a positive value that is too large to represent in the type. Insuch a case, this function returnsMIN itself.

§Examples
assert_eq!(100i32.wrapping_abs(),100);assert_eq!((-100i32).wrapping_abs(),100);assert_eq!(i32::MIN.wrapping_abs(), i32::MIN);assert_eq!((-128i8).wrapping_abs()asu8,128);
1.51.0 (const: 1.51.0) ·Source

pub const fnunsigned_abs(self) ->u32

Computes the absolute value ofself without any wrappingor panicking.

§Examples
assert_eq!(100i32.unsigned_abs(),100u32);assert_eq!((-100i32).unsigned_abs(),100u32);assert_eq!((-128i8).unsigned_abs(),128u8);
1.34.0 (const: 1.50.0) ·Source

pub const fnwrapping_pow(self, exp:u32) ->i32

Wrapping (modular) exponentiation. Computesself.pow(exp),wrapping around at the boundary of the type.

§Examples
assert_eq!(3i32.wrapping_pow(4),81);assert_eq!(3i8.wrapping_pow(5), -13);assert_eq!(3i8.wrapping_pow(6), -39);
1.7.0 (const: 1.32.0) ·Source

pub const fnoverflowing_add(self, rhs:i32) -> (i32,bool)

Calculatesself +rhs.

Returns a tuple of the addition along with a boolean indicatingwhether an arithmetic overflow would occur. If an overflow would haveoccurred then the wrapped value is returned.

§Examples
assert_eq!(5i32.overflowing_add(2), (7,false));assert_eq!(i32::MAX.overflowing_add(1), (i32::MIN,true));
Source

pub const fncarrying_add(self, rhs:i32, carry:bool) -> (i32,bool)

🔬This is a nightly-only experimental API. (bigint_helper_methods #85532)

Calculatesself +rhs +carry and checks for overflow.

Performs “ternary addition” of two integer operands and a carry-inbit, and returns a tuple of the sum along with a boolean indicatingwhether an arithmetic overflow would occur. On overflow, the wrappedvalue is returned.

This allows chaining together multiple additions to create a wideraddition, and can be useful for bignum addition. This method shouldonly be used for the most significant word; for the less significantwords the unsigned methodu32::carrying_addshould be used.

The output boolean returned by this method isnot a carry flag,and shouldnot be added to a more significant word.

If the input carry is false, this method is equivalent tooverflowing_add.

§Examples
#![feature(bigint_helper_methods)]// Only the most significant word is signed.////   10  MAX    (a = 10 × 2^32 + 2^32 - 1)// + -5    9    (b = -5 × 2^32 + 9)// ---------//    6    8    (sum = 6 × 2^32 + 8)let(a1, a0): (i32, u32) = (10, u32::MAX);let(b1, b0): (i32, u32) = (-5,9);letcarry0 =false;// u32::carrying_add for the less significant wordslet(sum0, carry1) = a0.carrying_add(b0, carry0);assert_eq!(carry1,true);// i32::carrying_add for the most significant wordlet(sum1, overflow) = a1.carrying_add(b1, carry1);assert_eq!(overflow,false);assert_eq!((sum1, sum0), (6,8));
1.66.0 (const: 1.66.0) ·Source

pub const fnoverflowing_add_unsigned(self, rhs:u32) -> (i32,bool)

Calculatesself +rhs with an unsignedrhs.

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

§Examples
assert_eq!(1i32.overflowing_add_unsigned(2), (3,false));assert_eq!((i32::MIN).overflowing_add_unsigned(u32::MAX), (i32::MAX,false));assert_eq!((i32::MAX -2).overflowing_add_unsigned(3), (i32::MIN,true));
1.7.0 (const: 1.32.0) ·Source

pub const fnoverflowing_sub(self, rhs:i32) -> (i32,bool)

Calculatesself -rhs.

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

§Examples
assert_eq!(5i32.overflowing_sub(2), (3,false));assert_eq!(i32::MIN.overflowing_sub(1), (i32::MAX,true));
Source

pub const fnborrowing_sub(self, rhs:i32, borrow:bool) -> (i32,bool)

🔬This is a nightly-only experimental API. (bigint_helper_methods #85532)

Calculatesselfrhsborrow and checks foroverflow.

Performs “ternary subtraction” by subtracting both an integeroperand and a borrow-in bit fromself, and returns a tuple of thedifference along with a boolean indicating whether an arithmeticoverflow would occur. On overflow, the wrapped value is returned.

This allows chaining together multiple subtractions to create awider subtraction, and can be useful for bignum subtraction. Thismethod should only be used for the most significant word; for theless significant words the unsigned methodu32::borrowing_subshould be used.

The output boolean returned by this method isnot a borrow flag,and shouldnot be subtracted from a more significant word.

If the input borrow is false, this method is equivalent tooverflowing_sub.

§Examples
#![feature(bigint_helper_methods)]// Only the most significant word is signed.////    6    8    (a = 6 × 2^32 + 8)// - -5    9    (b = -5 × 2^32 + 9)// ---------//   10  MAX    (diff = 10 × 2^32 + 2^32 - 1)let(a1, a0): (i32, u32) = (6,8);let(b1, b0): (i32, u32) = (-5,9);letborrow0 =false;// u32::borrowing_sub for the less significant wordslet(diff0, borrow1) = a0.borrowing_sub(b0, borrow0);assert_eq!(borrow1,true);// i32::borrowing_sub for the most significant wordlet(diff1, overflow) = a1.borrowing_sub(b1, borrow1);assert_eq!(overflow,false);assert_eq!((diff1, diff0), (10, u32::MAX));
1.66.0 (const: 1.66.0) ·Source

pub const fnoverflowing_sub_unsigned(self, rhs:u32) -> (i32,bool)

Calculatesself -rhs with an unsignedrhs.

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

§Examples
assert_eq!(1i32.overflowing_sub_unsigned(2), (-1,false));assert_eq!((i32::MAX).overflowing_sub_unsigned(u32::MAX), (i32::MIN,false));assert_eq!((i32::MIN +2).overflowing_sub_unsigned(3), (i32::MAX,true));
1.7.0 (const: 1.32.0) ·Source

pub const fnoverflowing_mul(self, rhs:i32) -> (i32,bool)

Calculates the multiplication ofself andrhs.

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

§Examples
assert_eq!(5i32.overflowing_mul(2), (10,false));assert_eq!(1_000_000_000i32.overflowing_mul(10), (1410065408,true));
Source

pub const fnwidening_mul(self, rhs:i32) -> (u32,i32)

🔬This is a nightly-only experimental API. (bigint_helper_methods #85532)

Calculates the complete productself * rhs without the possibility to overflow.

This returns the low-order (wrapping) bits and the high-order (overflow) bitsof the result as two separate values, in that order.

If you also need to add a carry to the wide result, then you wantSelf::carrying_mul instead.

§Examples

Please note that this example is shared among integer types, which is whyi32 is used.

#![feature(bigint_helper_methods)]assert_eq!(5i32.widening_mul(-2), (4294967286, -1));assert_eq!(1_000_000_000i32.widening_mul(-10), (2884901888, -3));
Source

pub const fncarrying_mul(self, rhs:i32, carry:i32) -> (u32,i32)

🔬This is a nightly-only experimental API. (bigint_helper_methods #85532)

Calculates the “full multiplication”self * rhs + carrywithout the possibility to overflow.

This returns the low-order (wrapping) bits and the high-order (overflow) bitsof the result as two separate values, in that order.

Performs “long multiplication” which takes in an extra amount to add, and may return anadditional amount of overflow. This allows for chaining together multiplemultiplications to create “big integers” which represent larger values.

If you don’t need thecarry, then you can useSelf::widening_mul instead.

§Examples

Please note that this example is shared among integer types, which is whyi32 is used.

#![feature(bigint_helper_methods)]assert_eq!(5i32.carrying_mul(-2,0), (4294967286, -1));assert_eq!(5i32.carrying_mul(-2,10), (0,0));assert_eq!(1_000_000_000i32.carrying_mul(-10,0), (2884901888, -3));assert_eq!(1_000_000_000i32.carrying_mul(-10,10), (2884901898, -3));assert_eq!(i32::MAX.carrying_mul(i32::MAX, i32::MAX), (i32::MAX.unsigned_abs() +1, i32::MAX /2));
Source

pub const fncarrying_mul_add( self, rhs:i32, carry:i32, add:i32,) -> (u32,i32)

🔬This is a nightly-only experimental API. (bigint_helper_methods #85532)

Calculates the “full multiplication”self * rhs + carry1 + carry2without the possibility to overflow.

This returns the low-order (wrapping) bits and the high-order (overflow) bitsof the result as two separate values, in that order.

Performs “long multiplication” which takes in an extra amount to add, and may return anadditional amount of overflow. This allows for chaining together multiplemultiplications to create “big integers” which represent larger values.

If you don’t need eithercarry, then you can useSelf::widening_mul instead,and if you only need onecarry, then you can useSelf::carrying_mul instead.

§Examples

Please note that this example is shared among integer types, which is whyi32 is used.

#![feature(bigint_helper_methods)]assert_eq!(5i32.carrying_mul_add(-2,0,0), (4294967286, -1));assert_eq!(5i32.carrying_mul_add(-2,10,10), (10,0));assert_eq!(1_000_000_000i32.carrying_mul_add(-10,0,0), (2884901888, -3));assert_eq!(1_000_000_000i32.carrying_mul_add(-10,10,10), (2884901908, -3));assert_eq!(i32::MAX.carrying_mul_add(i32::MAX, i32::MAX, i32::MAX), (u32::MAX, i32::MAX /2));
1.7.0 (const: 1.52.0) ·Source

pub const fnoverflowing_div(self, rhs:i32) -> (i32,bool)

Calculates the divisor whenself is divided byrhs.

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

§Panics

This function will panic ifrhs is zero.

§Examples
assert_eq!(5i32.overflowing_div(2), (2,false));assert_eq!(i32::MIN.overflowing_div(-1), (i32::MIN,true));
1.38.0 (const: 1.52.0) ·Source

pub const fnoverflowing_div_euclid(self, rhs:i32) -> (i32,bool)

Calculates the quotient of Euclidean divisionself.div_euclid(rhs).

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

§Panics

This function will panic ifrhs is zero.

§Examples
assert_eq!(5i32.overflowing_div_euclid(2), (2,false));assert_eq!(i32::MIN.overflowing_div_euclid(-1), (i32::MIN,true));
1.7.0 (const: 1.52.0) ·Source

pub const fnoverflowing_rem(self, rhs:i32) -> (i32,bool)

Calculates the remainder whenself is divided byrhs.

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

§Panics

This function will panic ifrhs is zero.

§Examples
assert_eq!(5i32.overflowing_rem(2), (1,false));assert_eq!(i32::MIN.overflowing_rem(-1), (0,true));
1.38.0 (const: 1.52.0) ·Source

pub const fnoverflowing_rem_euclid(self, rhs:i32) -> (i32,bool)

Overflowing Euclidean remainder. Calculatesself.rem_euclid(rhs).

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

§Panics

This function will panic ifrhs is zero.

§Examples
assert_eq!(5i32.overflowing_rem_euclid(2), (1,false));assert_eq!(i32::MIN.overflowing_rem_euclid(-1), (0,true));
1.7.0 (const: 1.32.0) ·Source

pub const fnoverflowing_neg(self) -> (i32,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 overflowhappened. Ifself is the minimum value (e.g.,i32::MIN for values of typei32), then theminimum value will be returned again andtrue will be returned for an overflow happening.

§Examples
assert_eq!(2i32.overflowing_neg(), (-2,false));assert_eq!(i32::MIN.overflowing_neg(), (i32::MIN,true));
1.7.0 (const: 1.32.0) ·Source

pub const fnoverflowing_shl(self, rhs:u32) -> (i32,bool)

Shifts self left byrhs bits.

Returns a tuple of the shifted version of self along with a boolean indicating whether the shiftvalue was larger than or equal to the number of bits. If the shift value is too large, then value ismasked (N-1) where N is the number of bits, and this value is then used to perform the shift.

§Examples
assert_eq!(0x1i32.overflowing_shl(4), (0x10,false));assert_eq!(0x1i32.overflowing_shl(36), (0x10,true));assert_eq!(0x10i32.overflowing_shl(31), (0,false));
1.7.0 (const: 1.32.0) ·Source

pub const fnoverflowing_shr(self, rhs:u32) -> (i32,bool)

Shifts self right byrhs bits.

Returns a tuple of the shifted version of self along with a boolean indicating whether the shiftvalue was larger than or equal to the number of bits. If the shift value is too large, then value ismasked (N-1) where N is the number of bits, and this value is then used to perform the shift.

§Examples
assert_eq!(0x10i32.overflowing_shr(4), (0x1,false));assert_eq!(0x10i32.overflowing_shr(36), (0x1,true));
1.13.0 (const: 1.32.0) ·Source

pub const fnoverflowing_abs(self) -> (i32,bool)

Computes the absolute value ofself.

Returns a tuple of the absolute version of self along with a boolean indicating whether an overflowhappened. If self is the minimum value(e.g., i32::MIN for values of type i32),then the minimum value will be returned again and true will be returnedfor an overflow happening.

§Examples
assert_eq!(10i32.overflowing_abs(), (10,false));assert_eq!((-10i32).overflowing_abs(), (10,false));assert_eq!((i32::MIN).overflowing_abs(), (i32::MIN,true));
1.34.0 (const: 1.50.0) ·Source

pub const fnoverflowing_pow(self, exp:u32) -> (i32,bool)

Raises self to the power ofexp, using exponentiation by squaring.

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

§Examples
assert_eq!(3i32.overflowing_pow(4), (81,false));assert_eq!(3i8.overflowing_pow(5), (-13,true));
1.0.0 (const: 1.50.0) ·Source

pub const fnpow(self, exp:u32) ->i32

Raises self to the power ofexp, using exponentiation by squaring.

§Examples
letx: i32 =2;// or any other integer typeassert_eq!(x.pow(5),32);
1.84.0 (const: 1.84.0) ·Source

pub const fnisqrt(self) ->i32

Returns the square root of the number, rounded down.

§Panics

This function will panic ifself is negative.

§Examples
assert_eq!(10i32.isqrt(),3);
1.38.0 (const: 1.52.0) ·Source

pub const fndiv_euclid(self, rhs:i32) ->i32

Calculates the quotient of Euclidean division ofself byrhs.

This computes the integerq such thatself = q * rhs + r, withr = self.rem_euclid(rhs) and0 <= r < abs(rhs).

In other words, the result isself / rhs rounded to the integerqsuch thatself >= q * rhs.Ifself > 0, this is equal to rounding towards zero (the default in Rust);ifself < 0, this is equal to rounding away from zero (towards +/- infinity).Ifrhs > 0, this is equal to rounding towards -infinity;ifrhs < 0, this is equal to rounding towards +infinity.

§Panics

This function will panic ifrhs is zero or ifself isSelf::MINandrhs is -1. This behavior is not affected by theoverflow-checks flag.

§Examples
leta: i32 =7;// or any other integer typeletb =4;assert_eq!(a.div_euclid(b),1);// 7 >= 4 * 1assert_eq!(a.div_euclid(-b), -1);// 7 >= -4 * -1assert_eq!((-a).div_euclid(b), -2);// -7 >= 4 * -2assert_eq!((-a).div_euclid(-b),2);// -7 >= -4 * 2
1.38.0 (const: 1.52.0) ·Source

pub const fnrem_euclid(self, rhs:i32) ->i32

Calculates the least nonnegative remainder ofself (mod rhs).

This is done as if by the Euclidean division algorithm – givenr = self.rem_euclid(rhs), the result satisfiesself = rhs * self.div_euclid(rhs) + r and0 <= r < abs(rhs).

§Panics

This function will panic ifrhs is zero or ifself isSelf::MIN andrhs is -1. This behavior is not affected by theoverflow-checks flag.

§Examples
leta: i32 =7;// or any other integer typeletb =4;assert_eq!(a.rem_euclid(b),3);assert_eq!((-a).rem_euclid(b),1);assert_eq!(a.rem_euclid(-b),3);assert_eq!((-a).rem_euclid(-b),1);

This will panic:

let _= i32::MIN.rem_euclid(-1);
Source

pub const fndiv_floor(self, rhs:i32) ->i32

🔬This is a nightly-only experimental API. (int_roundings #88581)

Calculates the quotient ofself andrhs, rounding the result towards negative infinity.

§Panics

This function will panic ifrhs is zero or ifself isSelf::MINandrhs is -1. This behavior is not affected by theoverflow-checks flag.

§Examples
#![feature(int_roundings)]leta: i32 =8;letb =3;assert_eq!(a.div_floor(b),2);assert_eq!(a.div_floor(-b), -3);assert_eq!((-a).div_floor(b), -3);assert_eq!((-a).div_floor(-b),2);
Source

pub const fndiv_ceil(self, rhs:i32) ->i32

🔬This is a nightly-only experimental API. (int_roundings #88581)

Calculates the quotient ofself andrhs, rounding the result towards positive infinity.

§Panics

This function will panic ifrhs is zero or ifself isSelf::MINandrhs is -1. This behavior is not affected by theoverflow-checks flag.

§Examples
#![feature(int_roundings)]leta: i32 =8;letb =3;assert_eq!(a.div_ceil(b),3);assert_eq!(a.div_ceil(-b), -2);assert_eq!((-a).div_ceil(b), -2);assert_eq!((-a).div_ceil(-b),3);
Source

pub const fnnext_multiple_of(self, rhs:i32) ->i32

🔬This is a nightly-only experimental API. (int_roundings #88581)

Ifrhs is positive, calculates the smallest value greater than orequal toself that is a multiple ofrhs. Ifrhs is negative,calculates the largest value less than or equal toself that is amultiple ofrhs.

§Panics

This function will panic ifrhs is zero.

§Overflow behavior

On overflow, this function will panic if overflow checks are enabled (default in debugmode) and wrap if overflow checks are disabled (default in release mode).

§Examples
#![feature(int_roundings)]assert_eq!(16_i32.next_multiple_of(8),16);assert_eq!(23_i32.next_multiple_of(8),24);assert_eq!(16_i32.next_multiple_of(-8),16);assert_eq!(23_i32.next_multiple_of(-8),16);assert_eq!((-16_i32).next_multiple_of(8), -16);assert_eq!((-23_i32).next_multiple_of(8), -16);assert_eq!((-16_i32).next_multiple_of(-8), -16);assert_eq!((-23_i32).next_multiple_of(-8), -24);
Source

pub const fnchecked_next_multiple_of(self, rhs:i32) ->Option<i32>

🔬This is a nightly-only experimental API. (int_roundings #88581)

Ifrhs is positive, calculates the smallest value greater than orequal toself that is a multiple ofrhs. Ifrhs is negative,calculates the largest value less than or equal toself that is amultiple ofrhs. ReturnsNone ifrhs is zero or the operationwould result in overflow.

§Examples
#![feature(int_roundings)]assert_eq!(16_i32.checked_next_multiple_of(8),Some(16));assert_eq!(23_i32.checked_next_multiple_of(8),Some(24));assert_eq!(16_i32.checked_next_multiple_of(-8),Some(16));assert_eq!(23_i32.checked_next_multiple_of(-8),Some(16));assert_eq!((-16_i32).checked_next_multiple_of(8),Some(-16));assert_eq!((-23_i32).checked_next_multiple_of(8),Some(-16));assert_eq!((-16_i32).checked_next_multiple_of(-8),Some(-16));assert_eq!((-23_i32).checked_next_multiple_of(-8),Some(-24));assert_eq!(1_i32.checked_next_multiple_of(0),None);assert_eq!(i32::MAX.checked_next_multiple_of(2),None);
1.67.0 (const: 1.67.0) ·Source

pub const fnilog(self, base:i32) ->u32

Returns the logarithm of the number with respect to an arbitrary base,rounded down.

This method might not be optimized owing to implementation details;ilog2 can produce results more efficiently for base 2, andilog10can produce results more efficiently for base 10.

§Panics

This function will panic ifself is less than or equal to zero,or ifbase is less than 2.

§Examples
assert_eq!(5i32.ilog(5),1);
1.67.0 (const: 1.67.0) ·Source

pub const fnilog2(self) ->u32

Returns the base 2 logarithm of the number, rounded down.

§Panics

This function will panic ifself is less than or equal to zero.

§Examples
assert_eq!(2i32.ilog2(),1);
1.67.0 (const: 1.67.0) ·Source

pub const fnilog10(self) ->u32

Returns the base 10 logarithm of the number, rounded down.

§Panics

This function will panic ifself is less than or equal to zero.

§Example
assert_eq!(10i32.ilog10(),1);
1.67.0 (const: 1.67.0) ·Source

pub const fnchecked_ilog(self, base:i32) ->Option<u32>

Returns the logarithm of the number with respect to an arbitrary base,rounded down.

ReturnsNone if the number is negative or zero, or if the base is not at least 2.

This method might not be optimized owing to implementation details;checked_ilog2 can produce results more efficiently for base 2, andchecked_ilog10 can produce results more efficiently for base 10.

§Examples
assert_eq!(5i32.checked_ilog(5),Some(1));
1.67.0 (const: 1.67.0) ·Source

pub const fnchecked_ilog2(self) ->Option<u32>

Returns the base 2 logarithm of the number, rounded down.

ReturnsNone if the number is negative or zero.

§Examples
assert_eq!(2i32.checked_ilog2(),Some(1));
1.67.0 (const: 1.67.0) ·Source

pub const fnchecked_ilog10(self) ->Option<u32>

Returns the base 10 logarithm of the number, rounded down.

ReturnsNone if the number is negative or zero.

§Example
assert_eq!(10i32.checked_ilog10(),Some(1));
1.0.0 (const: 1.32.0) ·Source

pub const fnabs(self) ->i32

Computes the absolute value ofself.

§Overflow behavior

The absolute value ofi32::MINcannot be represented as ani32,and attempting to calculate it will cause an overflow. This meansthat code in debug mode will trigger a panic on this case andoptimized code will returni32::MINwithout a panic. If you do not want this behavior, considerusingunsigned_abs instead.

§Examples
assert_eq!(10i32.abs(),10);assert_eq!((-10i32).abs(),10);
1.60.0 (const: 1.60.0) ·Source

pub const fnabs_diff(self, other:i32) ->u32

Computes the absolute difference betweenself andother.

This function always returns the correct answer without overflow orpanics by returning an unsigned integer.

§Examples
assert_eq!(100i32.abs_diff(80),20u32);assert_eq!(100i32.abs_diff(110),10u32);assert_eq!((-100i32).abs_diff(80),180u32);assert_eq!((-100i32).abs_diff(-120),20u32);assert_eq!(i32::MIN.abs_diff(i32::MAX), u32::MAX);
1.0.0 (const: 1.47.0) ·Source

pub const fnsignum(self) ->i32

Returns a number representing sign ofself.

  • 0 if the number is zero
  • 1 if the number is positive
  • -1 if the number is negative
§Examples
assert_eq!(10i32.signum(),1);assert_eq!(0i32.signum(),0);assert_eq!((-10i32).signum(), -1);
1.0.0 (const: 1.32.0) ·Source

pub const fnis_positive(self) ->bool

Returnstrue ifself is positive andfalse if the number is zero ornegative.

§Examples
assert!(10i32.is_positive());assert!(!(-10i32).is_positive());
1.0.0 (const: 1.32.0) ·Source

pub const fnis_negative(self) ->bool

Returnstrue ifself is negative andfalse if the number is zero orpositive.

§Examples
assert!((-10i32).is_negative());assert!(!10i32.is_negative());
1.32.0 (const: 1.44.0) ·Source

pub const fnto_be_bytes(self) -> [u8;4]

Returns the memory representation of this integer as a byte array inbig-endian (network) byte order.

§Examples
letbytes =0x12345678i32.to_be_bytes();assert_eq!(bytes, [0x12,0x34,0x56,0x78]);
1.32.0 (const: 1.44.0) ·Source

pub const fnto_le_bytes(self) -> [u8;4]

Returns the memory representation of this integer as a byte array inlittle-endian byte order.

§Examples
letbytes =0x12345678i32.to_le_bytes();assert_eq!(bytes, [0x78,0x56,0x34,0x12]);
1.32.0 (const: 1.44.0) ·Source

pub const fnto_ne_bytes(self) -> [u8;4]

Returns the memory representation of this integer as a byte array innative byte order.

As the target platform’s native endianness is used, portable codeshould useto_be_bytes orto_le_bytes, as appropriate,instead.

§Examples
letbytes =0x12345678i32.to_ne_bytes();assert_eq!(    bytes,ifcfg!(target_endian ="big") {        [0x12,0x34,0x56,0x78]    }else{        [0x78,0x56,0x34,0x12]    });
1.32.0 (const: 1.44.0) ·Source

pub const fnfrom_be_bytes(bytes: [u8;4]) ->i32

Creates an integer value from its representation as a byte array inbig endian.

§Examples
letvalue = i32::from_be_bytes([0x12,0x34,0x56,0x78]);assert_eq!(value,0x12345678);

When starting from a slice rather than an array, fallible conversion APIs can be used:

fnread_be_i32(input:&mut &[u8]) -> i32 {let(int_bytes, rest) = input.split_at(size_of::<i32>());*input = rest;    i32::from_be_bytes(int_bytes.try_into().unwrap())}
1.32.0 (const: 1.44.0) ·Source

pub const fnfrom_le_bytes(bytes: [u8;4]) ->i32

Creates an integer value from its representation as a byte array inlittle endian.

§Examples
letvalue = i32::from_le_bytes([0x78,0x56,0x34,0x12]);assert_eq!(value,0x12345678);

When starting from a slice rather than an array, fallible conversion APIs can be used:

fnread_le_i32(input:&mut &[u8]) -> i32 {let(int_bytes, rest) = input.split_at(size_of::<i32>());*input = rest;    i32::from_le_bytes(int_bytes.try_into().unwrap())}
1.32.0 (const: 1.44.0) ·Source

pub const fnfrom_ne_bytes(bytes: [u8;4]) ->i32

Creates an integer value from its memory representation as a bytearray in native endianness.

As the target platform’s native endianness is used, portable codelikely wants to usefrom_be_bytes orfrom_le_bytes, asappropriate instead.

§Examples
letvalue = i32::from_ne_bytes(ifcfg!(target_endian ="big") {    [0x12,0x34,0x56,0x78]}else{    [0x78,0x56,0x34,0x12]});assert_eq!(value,0x12345678);

When starting from a slice rather than an array, fallible conversion APIs can be used:

fnread_ne_i32(input:&mut &[u8]) -> i32 {let(int_bytes, rest) = input.split_at(size_of::<i32>());*input = rest;    i32::from_ne_bytes(int_bytes.try_into().unwrap())}
1.0.0 (const: 1.32.0) ·Source

pub const fnmin_value() ->i32

👎Deprecating in a future version: replaced by theMIN associated constant on this type

New code should prefer to usei32::MIN instead.

Returns the smallest value that can be represented by this integer type.

1.0.0 (const: 1.32.0) ·Source

pub const fnmax_value() ->i32

👎Deprecating in a future version: replaced by theMAX associated constant on this type

New code should prefer to usei32::MAX instead.

Returns the largest value that can be represented by this integer type.

1.87.0 (const: 1.87.0) ·Source

pub const fnmidpoint(self, rhs:i32) ->i32

Calculates the midpoint (average) betweenself andrhs.

midpoint(a, b) is(a + b) / 2 as if it were performed in asufficiently-large signed integral type. This implies that the result isalways rounded towards zero and that no overflow will ever occur.

§Examples
assert_eq!(0i32.midpoint(4),2);assert_eq!((-1i32).midpoint(2),0);assert_eq!((-7i32).midpoint(0), -3);assert_eq!(0i32.midpoint(-7), -3);assert_eq!(0i32.midpoint(7),3);
Source§

impli32

1.0.0 (const: 1.82.0) ·Source

pub const fnfrom_str_radix(src: &str, radix:u32) ->Result<i32,ParseIntError>

Parses an integer from a string slice with digits in a given base.

The string is expected to be an optional+ or-sign followed by only digits. Leading and trailing non-digit characters (includingwhitespace) represent an error. Underscores (which are accepted in Rust literals)also represent an error.

Digits are a subset of these characters, depending onradix:

  • 0-9
  • a-z
  • A-Z
§Panics

This function panics ifradix is not in the range from 2 to 36.

§See also

If the string to be parsed is in base 10 (decimal),from_str orstr::parse can also be used.

§Examples
assert_eq!(i32::from_str_radix("A",16),Ok(10));

Trailing space returns error:

assert!(i32::from_str_radix("1 ",10).is_err());
Source

pub const fnfrom_ascii(src: &[u8]) ->Result<i32,ParseIntError>

🔬This is a nightly-only experimental API. (int_from_ascii #134821)

Parses an integer from an ASCII-byte slice with decimal digits.

The characters are expected to be an optional+ or-sign followed by only digits. Leading and trailing non-digit characters (includingwhitespace) represent an error. Underscores (which are accepted in Rust literals)also represent an error.

§Examples
#![feature(int_from_ascii)]assert_eq!(i32::from_ascii(b"+10"),Ok(10));

Trailing space returns error:

assert!(i32::from_ascii(b"1 ").is_err());
Source

pub const fnfrom_ascii_radix( src: &[u8], radix:u32,) ->Result<i32,ParseIntError>

🔬This is a nightly-only experimental API. (int_from_ascii #134821)

Parses an integer from an ASCII-byte slice with digits in a given base.

The characters are expected to be an optional+ or-sign followed by only digits. Leading and trailing non-digit characters (includingwhitespace) represent an error. Underscores (which are accepted in Rust literals)also represent an error.

Digits are a subset of these characters, depending onradix:

  • 0-9
  • a-z
  • A-Z
§Panics

This function panics ifradix is not in the range from 2 to 36.

§Examples
#![feature(int_from_ascii)]assert_eq!(i32::from_ascii_radix(b"A",16),Ok(10));

Trailing space returns error:

assert!(i32::from_ascii_radix(b"1 ",10).is_err());
Source§

impli32

Source

pub fnformat_into(self, buf: &mutNumBuffer<i32>) -> &str

🔬This is a nightly-only experimental API. (int_format_into #138215)

Allows users to write an integer (in signed decimal format) into a variablebuf oftypeNumBuffer that is passed by the caller by mutable reference.

§Examples
#![feature(int_format_into)]usecore::fmt::NumBuffer;letn =0i32;letmutbuf = NumBuffer::new();assert_eq!(n.format_into(&mutbuf),"0");letn1 =32i32;assert_eq!(n1.format_into(&mutbuf),"32");letn2 = i32 :: MAX;assert_eq!(n2.format_into(&mutbuf), i32 :: MAX.to_string());

Trait Implementations§

1.0.0 (const:unstable) ·Source§

implAdd<&i32> for &i32

Source§

typeOutput = <i32 asAdd>::Output

The resulting type after applying the+ operator.
Source§

fnadd(self, other: &i32) -> <i32 asAdd>::Output

Performs the+ operation.Read more
1.0.0 (const:unstable) ·Source§

implAdd<&i32> fori32

Source§

typeOutput = <i32 asAdd>::Output

The resulting type after applying the+ operator.
Source§

fnadd(self, other: &i32) -> <i32 asAdd>::Output

Performs the+ operation.Read more
1.0.0 (const:unstable) ·Source§

implAdd<i32> for &i32

Source§

typeOutput = <i32 asAdd>::Output

The resulting type after applying the+ operator.
Source§

fnadd(self, other:i32) -> <i32 asAdd>::Output

Performs the+ operation.Read more
1.0.0 (const:unstable) ·Source§

implAdd fori32

Source§

typeOutput =i32

The resulting type after applying the+ operator.
Source§

fnadd(self, other:i32) ->i32

Performs the+ operation.Read more
1.74.0 (const:unstable) ·Source§

implAddAssign<&i32> forSaturating<i32>

Source§

fnadd_assign(&mut self, other: &i32)

Performs the+= operation.Read more
1.22.0 (const:unstable) ·Source§

implAddAssign<&i32> forWrapping<i32>

Source§

fnadd_assign(&mut self, other: &i32)

Performs the+= operation.Read more
1.22.0 (const:unstable) ·Source§

implAddAssign<&i32> fori32

Source§

fnadd_assign(&mut self, other: &i32)

Performs the+= operation.Read more
1.74.0 (const:unstable) ·Source§

implAddAssign<i32> forSaturating<i32>

Source§

fnadd_assign(&mut self, other:i32)

Performs the+= operation.Read more
1.60.0 (const:unstable) ·Source§

implAddAssign<i32> forWrapping<i32>

Source§

fnadd_assign(&mut self, other:i32)

Performs the+= operation.Read more
1.8.0 (const:unstable) ·Source§

implAddAssign fori32

Source§

fnadd_assign(&mut self, other:i32)

Performs the+= operation.Read more
Source§

implAtomicPrimitive fori32

Source§

typeAtomicInner =AtomicI32

🔬This is a nightly-only experimental API. (atomic_internals)
Temporary implementation detail.
1.0.0 ·Source§

implBinary fori32

Source§

fnfmt(&self, f: &mutFormatter<'_>) ->Result<(),Error>

Format signed integers in the two’s-complement form.

1.0.0 (const:unstable) ·Source§

implBitAnd<&i32> for &i32

Source§

typeOutput = <i32 asBitAnd>::Output

The resulting type after applying the& operator.
Source§

fnbitand(self, other: &i32) -> <i32 asBitAnd>::Output

Performs the& operation.Read more
1.0.0 (const:unstable) ·Source§

implBitAnd<&i32> fori32

Source§

typeOutput = <i32 asBitAnd>::Output

The resulting type after applying the& operator.
Source§

fnbitand(self, other: &i32) -> <i32 asBitAnd>::Output

Performs the& operation.Read more
1.0.0 (const:unstable) ·Source§

implBitAnd<i32> for &i32

Source§

typeOutput = <i32 asBitAnd>::Output

The resulting type after applying the& operator.
Source§

fnbitand(self, other:i32) -> <i32 asBitAnd>::Output

Performs the& operation.Read more
1.0.0 (const:unstable) ·Source§

implBitAnd fori32

Source§

typeOutput =i32

The resulting type after applying the& operator.
Source§

fnbitand(self, rhs:i32) ->i32

Performs the& operation.Read more
1.74.0 (const:unstable) ·Source§

implBitAndAssign<&i32> forSaturating<i32>

Source§

fnbitand_assign(&mut self, other: &i32)

Performs the&= operation.Read more
1.22.0 (const:unstable) ·Source§

implBitAndAssign<&i32> forWrapping<i32>

Source§

fnbitand_assign(&mut self, other: &i32)

Performs the&= operation.Read more
1.22.0 (const:unstable) ·Source§

implBitAndAssign<&i32> fori32

Source§

fnbitand_assign(&mut self, other: &i32)

Performs the&= operation.Read more
1.74.0 (const:unstable) ·Source§

implBitAndAssign<i32> forSaturating<i32>

Source§

fnbitand_assign(&mut self, other:i32)

Performs the&= operation.Read more
1.60.0 (const:unstable) ·Source§

implBitAndAssign<i32> forWrapping<i32>

Source§

fnbitand_assign(&mut self, other:i32)

Performs the&= operation.Read more
1.8.0 (const:unstable) ·Source§

implBitAndAssign fori32

Source§

fnbitand_assign(&mut self, other:i32)

Performs the&= operation.Read more
1.0.0 (const:unstable) ·Source§

implBitOr<&i32> for &i32

Source§

typeOutput = <i32 asBitOr>::Output

The resulting type after applying the| operator.
Source§

fnbitor(self, other: &i32) -> <i32 asBitOr>::Output

Performs the| operation.Read more
1.0.0 (const:unstable) ·Source§

implBitOr<&i32> fori32

Source§

typeOutput = <i32 asBitOr>::Output

The resulting type after applying the| operator.
Source§

fnbitor(self, other: &i32) -> <i32 asBitOr>::Output

Performs the| operation.Read more
1.0.0 (const:unstable) ·Source§

implBitOr<i32> for &i32

Source§

typeOutput = <i32 asBitOr>::Output

The resulting type after applying the| operator.
Source§

fnbitor(self, other:i32) -> <i32 asBitOr>::Output

Performs the| operation.Read more
1.0.0 (const:unstable) ·Source§

implBitOr fori32

Source§

typeOutput =i32

The resulting type after applying the| operator.
Source§

fnbitor(self, rhs:i32) ->i32

Performs the| operation.Read more
1.74.0 (const:unstable) ·Source§

implBitOrAssign<&i32> forSaturating<i32>

Source§

fnbitor_assign(&mut self, other: &i32)

Performs the|= operation.Read more
1.22.0 (const:unstable) ·Source§

implBitOrAssign<&i32> forWrapping<i32>

Source§

fnbitor_assign(&mut self, other: &i32)

Performs the|= operation.Read more
1.22.0 (const:unstable) ·Source§

implBitOrAssign<&i32> fori32

Source§

fnbitor_assign(&mut self, other: &i32)

Performs the|= operation.Read more
1.74.0 (const:unstable) ·Source§

implBitOrAssign<i32> forSaturating<i32>

Source§

fnbitor_assign(&mut self, other:i32)

Performs the|= operation.Read more
1.60.0 (const:unstable) ·Source§

implBitOrAssign<i32> forWrapping<i32>

Source§

fnbitor_assign(&mut self, other:i32)

Performs the|= operation.Read more
1.8.0 (const:unstable) ·Source§

implBitOrAssign fori32

Source§

fnbitor_assign(&mut self, other:i32)

Performs the|= operation.Read more
1.0.0 (const:unstable) ·Source§

implBitXor<&i32> for &i32

Source§

typeOutput = <i32 asBitXor>::Output

The resulting type after applying the^ operator.
Source§

fnbitxor(self, other: &i32) -> <i32 asBitXor>::Output

Performs the^ operation.Read more
1.0.0 (const:unstable) ·Source§

implBitXor<&i32> fori32

Source§

typeOutput = <i32 asBitXor>::Output

The resulting type after applying the^ operator.
Source§

fnbitxor(self, other: &i32) -> <i32 asBitXor>::Output

Performs the^ operation.Read more
1.0.0 (const:unstable) ·Source§

implBitXor<i32> for &i32

Source§

typeOutput = <i32 asBitXor>::Output

The resulting type after applying the^ operator.
Source§

fnbitxor(self, other:i32) -> <i32 asBitXor>::Output

Performs the^ operation.Read more
1.0.0 (const:unstable) ·Source§

implBitXor fori32

Source§

typeOutput =i32

The resulting type after applying the^ operator.
Source§

fnbitxor(self, other:i32) ->i32

Performs the^ operation.Read more
1.74.0 (const:unstable) ·Source§

implBitXorAssign<&i32> forSaturating<i32>

Source§

fnbitxor_assign(&mut self, other: &i32)

Performs the^= operation.Read more
1.22.0 (const:unstable) ·Source§

implBitXorAssign<&i32> forWrapping<i32>

Source§

fnbitxor_assign(&mut self, other: &i32)

Performs the^= operation.Read more
1.22.0 (const:unstable) ·Source§

implBitXorAssign<&i32> fori32

Source§

fnbitxor_assign(&mut self, other: &i32)

Performs the^= operation.Read more
1.74.0 (const:unstable) ·Source§

implBitXorAssign<i32> forSaturating<i32>

Source§

fnbitxor_assign(&mut self, other:i32)

Performs the^= operation.Read more
1.60.0 (const:unstable) ·Source§

implBitXorAssign<i32> forWrapping<i32>

Source§

fnbitxor_assign(&mut self, other:i32)

Performs the^= operation.Read more
1.8.0 (const:unstable) ·Source§

implBitXorAssign fori32

Source§

fnbitxor_assign(&mut self, other:i32)

Performs the^= operation.Read more
Source§

implCarryingMulAdd fori32

Source§

typeUnsigned =u32

🔬This is a nightly-only experimental API. (core_intrinsics_fallbacks)
Source§

fncarrying_mul_add(self, a:i32, b:i32, c:i32) -> (u32,i32)

🔬This is a nightly-only experimental API. (core_intrinsics_fallbacks)
1.0.0 (const:unstable) ·Source§

implClone fori32

Source§

fnclone(&self) ->i32

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

fnclone_from(&mut self, source: &Self)

Performs copy-assignment fromsource.Read more
1.0.0 ·Source§

implDebug fori32

Source§

fnfmt(&self, f: &mutFormatter<'_>) ->Result<(),Error>

Formats the value using the given formatter.Read more
1.0.0 (const:unstable) ·Source§

implDefault fori32

Source§

fndefault() ->i32

Returns the default value of0

Source§

implDisjointBitOr fori32

Source§

unsafe fndisjoint_bitor(self, other:i32) ->i32

🔬This is a nightly-only experimental API. (core_intrinsics_fallbacks)
Seesuper::disjoint_bitor; we just need the trait indirection to handledifferent types since calling intrinsics with generics doesn’t work.
1.0.0 ·Source§

implDisplay fori32

Source§

fnfmt(&self, f: &mutFormatter<'_>) ->Result<(),Error>

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

implDistribution<i32> forRangeFull

Source§

fnsample(&self, source: &mut (implRandomSource + ?Sized)) ->i32

🔬This is a nightly-only experimental API. (random #130703)
Samples a random value from the distribution, using the specified random source.
1.0.0 (const:unstable) ·Source§

implDiv<&i32> for &i32

Source§

typeOutput = <i32 asDiv>::Output

The resulting type after applying the/ operator.
Source§

fndiv(self, other: &i32) -> <i32 asDiv>::Output

Performs the/ operation.Read more
1.0.0 (const:unstable) ·Source§

implDiv<&i32> fori32

Source§

typeOutput = <i32 asDiv>::Output

The resulting type after applying the/ operator.
Source§

fndiv(self, other: &i32) -> <i32 asDiv>::Output

Performs the/ operation.Read more
1.0.0 (const:unstable) ·Source§

implDiv<i32> for &i32

Source§

typeOutput = <i32 asDiv>::Output

The resulting type after applying the/ operator.
Source§

fndiv(self, other:i32) -> <i32 asDiv>::Output

Performs the/ operation.Read more
1.0.0 (const:unstable) ·Source§

implDiv fori32

This operation rounds towards zero, truncating anyfractional part of the exact result.

§Panics

This operation will panic ifother == 0 or the division results in overflow.

Source§

typeOutput =i32

The resulting type after applying the/ operator.
Source§

fndiv(self, other:i32) ->i32

Performs the/ operation.Read more
1.74.0 (const:unstable) ·Source§

implDivAssign<&i32> forSaturating<i32>

Source§

fndiv_assign(&mut self, other: &i32)

Performs the/= operation.Read more
1.22.0 (const:unstable) ·Source§

implDivAssign<&i32> forWrapping<i32>

Source§

fndiv_assign(&mut self, other: &i32)

Performs the/= operation.Read more
1.22.0 (const:unstable) ·Source§

implDivAssign<&i32> fori32

Source§

fndiv_assign(&mut self, other: &i32)

Performs the/= operation.Read more
1.74.0 (const:unstable) ·Source§

implDivAssign<i32> forSaturating<i32>

Source§

fndiv_assign(&mut self, other:i32)

Performs the/= operation.Read more
1.60.0 (const:unstable) ·Source§

implDivAssign<i32> forWrapping<i32>

Source§

fndiv_assign(&mut self, other:i32)

Performs the/= operation.Read more
1.8.0 (const:unstable) ·Source§

implDivAssign fori32

Source§

fndiv_assign(&mut self, other:i32)

Performs the/= operation.Read more
1.28.0 (const:unstable) ·Source§

implFrom<bool> fori32

Source§

fnfrom(small:bool) ->i32

Converts abool toi32 losslessly.The resulting value is0 forfalse and1 fortrue values.

§Examples
assert_eq!(i32::from(true),1);assert_eq!(i32::from(false),0);
1.5.0 (const:unstable) ·Source§

implFrom<i16> fori32

Source§

fnfrom(small:i16) ->i32

Convertsi16 toi32 losslessly.

1.34.0 (const:unstable) ·Source§

implFrom<i32> forAtomicI32

Source§

fnfrom(v:i32) ->AtomicI32

Converts ani32 into anAtomicI32.

1.6.0 (const:unstable) ·Source§

implFrom<i32> forf128

Source§

fnfrom(small:i32) ->f128

Convertsi32 tof128 losslessly.

1.6.0 (const:unstable) ·Source§

implFrom<i32> forf64

Source§

fnfrom(small:i32) ->f64

Convertsi32 tof64 losslessly.

1.26.0 (const:unstable) ·Source§

implFrom<i32> fori128

Source§

fnfrom(small:i32) ->i128

Convertsi32 toi128 losslessly.

1.5.0 (const:unstable) ·Source§

implFrom<i32> fori64

Source§

fnfrom(small:i32) ->i64

Convertsi32 toi64 losslessly.

1.5.0 (const:unstable) ·Source§

implFrom<i8> fori32

Source§

fnfrom(small:i8) ->i32

Convertsi8 toi32 losslessly.

1.5.0 (const:unstable) ·Source§

implFrom<u16> fori32

Source§

fnfrom(small:u16) ->i32

Convertsu16 toi32 losslessly.

1.5.0 (const:unstable) ·Source§

implFrom<u8> fori32

Source§

fnfrom(small:u8) ->i32

Convertsu8 toi32 losslessly.

1.0.0 (const:unstable) ·Source§

implFromStr fori32

Source§

fnfrom_str(src: &str) ->Result<i32,ParseIntError>

Parses an integer from a string slice with decimal digits.

The characters are expected to be an optional+ or-sign followed by only digits. Leading and trailing non-digit characters (includingwhitespace) represent an error. Underscores (which are accepted in Rust literals)also represent an error.

§See also

For parsing numbers in other bases, such as binary or hexadecimal,seefrom_str_radix.

§Examples
usestd::str::FromStr;assert_eq!(i32::from_str("+10"),Ok(10));

Trailing space returns error:

assert!(i32::from_str("1 ").is_err());
Source§

typeErr =ParseIntError

The associated error which can be returned from parsing.
1.0.0 ·Source§

implHash fori32

Source§

fnhash<H>(&self, state:&mut H)
where H:Hasher,

Feeds this value into the givenHasher.Read more
Source§

fnhash_slice<H>(data: &[i32], state:&mut H)
where H:Hasher,

Feeds a slice of this type into the givenHasher.Read more
1.42.0 ·Source§

implLowerExp fori32

Source§

fnfmt(&self, f: &mutFormatter<'_>) ->Result<(),Error>

Formats the value using the given formatter.Read more
1.0.0 ·Source§

implLowerHex fori32

Source§

fnfmt(&self, f: &mutFormatter<'_>) ->Result<(),Error>

Format signed integers in the two’s-complement form.

1.0.0 (const:unstable) ·Source§

implMul<&i32> for &i32

Source§

typeOutput = <i32 asMul>::Output

The resulting type after applying the* operator.
Source§

fnmul(self, other: &i32) -> <i32 asMul>::Output

Performs the* operation.Read more
1.0.0 (const:unstable) ·Source§

implMul<&i32> fori32

Source§

typeOutput = <i32 asMul>::Output

The resulting type after applying the* operator.
Source§

fnmul(self, other: &i32) -> <i32 asMul>::Output

Performs the* operation.Read more
1.0.0 (const:unstable) ·Source§

implMul<i32> for &i32

Source§

typeOutput = <i32 asMul>::Output

The resulting type after applying the* operator.
Source§

fnmul(self, other:i32) -> <i32 asMul>::Output

Performs the* operation.Read more
1.0.0 (const:unstable) ·Source§

implMul fori32

Source§

typeOutput =i32

The resulting type after applying the* operator.
Source§

fnmul(self, other:i32) ->i32

Performs the* operation.Read more
1.74.0 (const:unstable) ·Source§

implMulAssign<&i32> forSaturating<i32>

Source§

fnmul_assign(&mut self, other: &i32)

Performs the*= operation.Read more
1.22.0 (const:unstable) ·Source§

implMulAssign<&i32> forWrapping<i32>

Source§

fnmul_assign(&mut self, other: &i32)

Performs the*= operation.Read more
1.22.0 (const:unstable) ·Source§

implMulAssign<&i32> fori32

Source§

fnmul_assign(&mut self, other: &i32)

Performs the*= operation.Read more
1.74.0 (const:unstable) ·Source§

implMulAssign<i32> forSaturating<i32>

Source§

fnmul_assign(&mut self, other:i32)

Performs the*= operation.Read more
1.60.0 (const:unstable) ·Source§

implMulAssign<i32> forWrapping<i32>

Source§

fnmul_assign(&mut self, other:i32)

Performs the*= operation.Read more
1.8.0 (const:unstable) ·Source§

implMulAssign fori32

Source§

fnmul_assign(&mut self, other:i32)

Performs the*= operation.Read more
1.0.0 (const:unstable) ·Source§

implNeg for &i32

Source§

typeOutput = <i32 asNeg>::Output

The resulting type after applying the- operator.
Source§

fnneg(self) -> <i32 asNeg>::Output

Performs the unary- operation.Read more
1.0.0 (const:unstable) ·Source§

implNeg fori32

Source§

typeOutput =i32

The resulting type after applying the- operator.
Source§

fnneg(self) ->i32

Performs the unary- operation.Read more
1.0.0 (const:unstable) ·Source§

implNot for &i32

Source§

typeOutput = <i32 asNot>::Output

The resulting type after applying the! operator.
Source§

fnnot(self) -> <i32 asNot>::Output

Performs the unary! operation.Read more
1.0.0 (const:unstable) ·Source§

implNot fori32

Source§

typeOutput =i32

The resulting type after applying the! operator.
Source§

fnnot(self) ->i32

Performs the unary! operation.Read more
Source§

implNumBufferTrait fori32

Source§

constBUF_SIZE:usize = 11usize

🔬This is a nightly-only experimental API. (int_format_into #138215)
Maximum number of digits in decimal base of the implemented integer.
1.0.0 ·Source§

implOctal fori32

Source§

fnfmt(&self, f: &mutFormatter<'_>) ->Result<(),Error>

Format signed integers in the two’s-complement form.

1.0.0 (const:unstable) ·Source§

implOrd fori32

Source§

fncmp(&self, other: &i32) ->Ordering

This method returns anOrdering betweenself andother.Read more
1.21.0 ·Source§

fnmax(self, other: Self) -> Self
where Self:Sized,

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

fnmin(self, other: Self) -> Self
where Self:Sized,

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

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

Restrict a value to a certain interval.Read more
1.0.0 (const:unstable) ·Source§

implPartialEq fori32

Source§

fneq(&self, other: &i32) ->bool

Tests forself andother values to be equal, and is used by==.
Source§

fnne(&self, other: &i32) ->bool

Tests for!=. The default implementation is almost always sufficient,and should not be overridden without very good reason.
1.0.0 (const:unstable) ·Source§

implPartialOrd fori32

Source§

fnpartial_cmp(&self, other: &i32) ->Option<Ordering>

This method returns an ordering betweenself andother values if one exists.Read more
Source§

fnlt(&self, other: &i32) ->bool

Tests less than (forself andother) and is used by the< operator.Read more
Source§

fnle(&self, other: &i32) ->bool

Tests less than or equal to (forself andother) and is used by the<= operator.Read more
Source§

fngt(&self, other: &i32) ->bool

Tests greater than (forself andother) and is used by the>operator.Read more
Source§

fnge(&self, other: &i32) ->bool

Tests greater than or equal to (forself andother) and is used bythe>= operator.Read more
1.12.0 ·Source§

impl<'a>Product<&'ai32> fori32

Source§

fnproduct<I>(iter: I) ->i32
where I:Iterator<Item = &'ai32>,

Takes an iterator and generatesSelf from the elements by multiplyingthe items.
1.12.0 ·Source§

implProduct fori32

Source§

fnproduct<I>(iter: I) ->i32
where I:Iterator<Item =i32>,

Takes an iterator and generatesSelf from the elements by multiplyingthe items.
Source§

implRangePattern fori32

Source§

constMIN:i32 = -2_147_483_648i32

🔬This is a nightly-only experimental API. (pattern_type_range_trait #123646)
Trait version of the inherentMIN assoc const.
Source§

constMAX:i32 = 2_147_483_647i32

🔬This is a nightly-only experimental API. (pattern_type_range_trait #123646)
Trait version of the inherentMIN assoc const.
Source§

fnsub_one(self) ->i32

🔬This is a nightly-only experimental API. (pattern_type_range_trait #123646)
A compile-time helper to subtract 1 for exclusive ranges.
1.0.0 (const:unstable) ·Source§

implRem<&i32> for &i32

Source§

typeOutput = <i32 asRem>::Output

The resulting type after applying the% operator.
Source§

fnrem(self, other: &i32) -> <i32 asRem>::Output

Performs the% operation.Read more
1.0.0 (const:unstable) ·Source§

implRem<&i32> fori32

Source§

typeOutput = <i32 asRem>::Output

The resulting type after applying the% operator.
Source§

fnrem(self, other: &i32) -> <i32 asRem>::Output

Performs the% operation.Read more
1.0.0 (const:unstable) ·Source§

implRem<i32> for &i32

Source§

typeOutput = <i32 asRem>::Output

The resulting type after applying the% operator.
Source§

fnrem(self, other:i32) -> <i32 asRem>::Output

Performs the% operation.Read more
1.0.0 (const:unstable) ·Source§

implRem fori32

This operation satisfiesn % d == n - (n / d) * d. Theresult has the same sign as the left operand.

§Panics

This operation will panic ifother == 0 or ifself / other results in overflow.

Source§

typeOutput =i32

The resulting type after applying the% operator.
Source§

fnrem(self, other:i32) ->i32

Performs the% operation.Read more
1.74.0 (const:unstable) ·Source§

implRemAssign<&i32> forSaturating<i32>

Source§

fnrem_assign(&mut self, other: &i32)

Performs the%= operation.Read more
1.22.0 (const:unstable) ·Source§

implRemAssign<&i32> forWrapping<i32>

Source§

fnrem_assign(&mut self, other: &i32)

Performs the%= operation.Read more
1.22.0 (const:unstable) ·Source§

implRemAssign<&i32> fori32

Source§

fnrem_assign(&mut self, other: &i32)

Performs the%= operation.Read more
1.74.0 (const:unstable) ·Source§

implRemAssign<i32> forSaturating<i32>

Source§

fnrem_assign(&mut self, other:i32)

Performs the%= operation.Read more
1.60.0 (const:unstable) ·Source§

implRemAssign<i32> forWrapping<i32>

Source§

fnrem_assign(&mut self, other:i32)

Performs the%= operation.Read more
1.8.0 (const:unstable) ·Source§

implRemAssign fori32

Source§

fnrem_assign(&mut self, other:i32)

Performs the%= operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<&i128> for &i32

Source§

typeOutput = <i32 asShl<i128>>::Output

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

fnshl(self, other: &i128) -> <i32 asShl<i128>>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<&i128> fori32

Source§

typeOutput = <i32 asShl<i128>>::Output

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

fnshl(self, other: &i128) -> <i32 asShl<i128>>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<&i16> for &i32

Source§

typeOutput = <i32 asShl<i16>>::Output

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

fnshl(self, other: &i16) -> <i32 asShl<i16>>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<&i16> fori32

Source§

typeOutput = <i32 asShl<i16>>::Output

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

fnshl(self, other: &i16) -> <i32 asShl<i16>>::Output

Performs the<< operation.Read more
Source§

impl<'lhs, const N:usize>Shl<&i32> for &'lhsSimd<i32, N>

Source§

typeOutput =Simd<i32, N>

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

fnshl(self, rhs: &i32) -> <&'lhsSimd<i32, N> asShl<&i32>>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<&i32> for &i128

Source§

typeOutput = <i128 asShl<i32>>::Output

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

fnshl(self, other: &i32) -> <i128 asShl<i32>>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<&i32> for &i16

Source§

typeOutput = <i16 asShl<i32>>::Output

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

fnshl(self, other: &i32) -> <i16 asShl<i32>>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<&i32> for &i32

Source§

typeOutput = <i32 asShl>::Output

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

fnshl(self, other: &i32) -> <i32 asShl>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<&i32> for &i64

Source§

typeOutput = <i64 asShl<i32>>::Output

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

fnshl(self, other: &i32) -> <i64 asShl<i32>>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<&i32> for &i8

Source§

typeOutput = <i8 asShl<i32>>::Output

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

fnshl(self, other: &i32) -> <i8 asShl<i32>>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<&i32> for &isize

Source§

typeOutput = <isize asShl<i32>>::Output

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

fnshl(self, other: &i32) -> <isize asShl<i32>>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<&i32> for &u128

Source§

typeOutput = <u128 asShl<i32>>::Output

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

fnshl(self, other: &i32) -> <u128 asShl<i32>>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<&i32> for &u16

Source§

typeOutput = <u16 asShl<i32>>::Output

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

fnshl(self, other: &i32) -> <u16 asShl<i32>>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<&i32> for &u32

Source§

typeOutput = <u32 asShl<i32>>::Output

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

fnshl(self, other: &i32) -> <u32 asShl<i32>>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<&i32> for &u64

Source§

typeOutput = <u64 asShl<i32>>::Output

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

fnshl(self, other: &i32) -> <u64 asShl<i32>>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<&i32> for &u8

Source§

typeOutput = <u8 asShl<i32>>::Output

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

fnshl(self, other: &i32) -> <u8 asShl<i32>>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<&i32> for &usize

Source§

typeOutput = <usize asShl<i32>>::Output

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

fnshl(self, other: &i32) -> <usize asShl<i32>>::Output

Performs the<< operation.Read more
Source§

impl<const N:usize>Shl<&i32> forSimd<i32, N>

Source§

typeOutput =Simd<i32, N>

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

fnshl(self, rhs: &i32) -> <Simd<i32, N> asShl<&i32>>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<&i32> fori128

Source§

typeOutput = <i128 asShl<i32>>::Output

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

fnshl(self, other: &i32) -> <i128 asShl<i32>>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<&i32> fori16

Source§

typeOutput = <i16 asShl<i32>>::Output

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

fnshl(self, other: &i32) -> <i16 asShl<i32>>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<&i32> fori32

Source§

typeOutput = <i32 asShl>::Output

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

fnshl(self, other: &i32) -> <i32 asShl>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<&i32> fori64

Source§

typeOutput = <i64 asShl<i32>>::Output

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

fnshl(self, other: &i32) -> <i64 asShl<i32>>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<&i32> fori8

Source§

typeOutput = <i8 asShl<i32>>::Output

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

fnshl(self, other: &i32) -> <i8 asShl<i32>>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<&i32> forisize

Source§

typeOutput = <isize asShl<i32>>::Output

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

fnshl(self, other: &i32) -> <isize asShl<i32>>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<&i32> foru128

Source§

typeOutput = <u128 asShl<i32>>::Output

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

fnshl(self, other: &i32) -> <u128 asShl<i32>>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<&i32> foru16

Source§

typeOutput = <u16 asShl<i32>>::Output

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

fnshl(self, other: &i32) -> <u16 asShl<i32>>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<&i32> foru32

Source§

typeOutput = <u32 asShl<i32>>::Output

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

fnshl(self, other: &i32) -> <u32 asShl<i32>>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<&i32> foru64

Source§

typeOutput = <u64 asShl<i32>>::Output

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

fnshl(self, other: &i32) -> <u64 asShl<i32>>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<&i32> foru8

Source§

typeOutput = <u8 asShl<i32>>::Output

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

fnshl(self, other: &i32) -> <u8 asShl<i32>>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<&i32> forusize

Source§

typeOutput = <usize asShl<i32>>::Output

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

fnshl(self, other: &i32) -> <usize asShl<i32>>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<&i64> for &i32

Source§

typeOutput = <i32 asShl<i64>>::Output

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

fnshl(self, other: &i64) -> <i32 asShl<i64>>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<&i64> fori32

Source§

typeOutput = <i32 asShl<i64>>::Output

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

fnshl(self, other: &i64) -> <i32 asShl<i64>>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<&i8> for &i32

Source§

typeOutput = <i32 asShl<i8>>::Output

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

fnshl(self, other: &i8) -> <i32 asShl<i8>>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<&i8> fori32

Source§

typeOutput = <i32 asShl<i8>>::Output

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

fnshl(self, other: &i8) -> <i32 asShl<i8>>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<&isize> for &i32

Source§

typeOutput = <i32 asShl<isize>>::Output

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

fnshl(self, other: &isize) -> <i32 asShl<isize>>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<&isize> fori32

Source§

typeOutput = <i32 asShl<isize>>::Output

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

fnshl(self, other: &isize) -> <i32 asShl<isize>>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<&u128> for &i32

Source§

typeOutput = <i32 asShl<u128>>::Output

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

fnshl(self, other: &u128) -> <i32 asShl<u128>>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<&u128> fori32

Source§

typeOutput = <i32 asShl<u128>>::Output

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

fnshl(self, other: &u128) -> <i32 asShl<u128>>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<&u16> for &i32

Source§

typeOutput = <i32 asShl<u16>>::Output

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

fnshl(self, other: &u16) -> <i32 asShl<u16>>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<&u16> fori32

Source§

typeOutput = <i32 asShl<u16>>::Output

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

fnshl(self, other: &u16) -> <i32 asShl<u16>>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<&u32> for &i32

Source§

typeOutput = <i32 asShl<u32>>::Output

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

fnshl(self, other: &u32) -> <i32 asShl<u32>>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<&u32> fori32

Source§

typeOutput = <i32 asShl<u32>>::Output

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

fnshl(self, other: &u32) -> <i32 asShl<u32>>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<&u64> for &i32

Source§

typeOutput = <i32 asShl<u64>>::Output

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

fnshl(self, other: &u64) -> <i32 asShl<u64>>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<&u64> fori32

Source§

typeOutput = <i32 asShl<u64>>::Output

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

fnshl(self, other: &u64) -> <i32 asShl<u64>>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<&u8> for &i32

Source§

typeOutput = <i32 asShl<u8>>::Output

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

fnshl(self, other: &u8) -> <i32 asShl<u8>>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<&u8> fori32

Source§

typeOutput = <i32 asShl<u8>>::Output

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

fnshl(self, other: &u8) -> <i32 asShl<u8>>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<&usize> for &i32

Source§

typeOutput = <i32 asShl<usize>>::Output

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

fnshl(self, other: &usize) -> <i32 asShl<usize>>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<&usize> fori32

Source§

typeOutput = <i32 asShl<usize>>::Output

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

fnshl(self, other: &usize) -> <i32 asShl<usize>>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<i128> for &i32

Source§

typeOutput = <i32 asShl<i128>>::Output

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

fnshl(self, other:i128) -> <i32 asShl<i128>>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<i128> fori32

Source§

typeOutput =i32

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

fnshl(self, other:i128) ->i32

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<i16> for &i32

Source§

typeOutput = <i32 asShl<i16>>::Output

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

fnshl(self, other:i16) -> <i32 asShl<i16>>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<i16> fori32

Source§

typeOutput =i32

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

fnshl(self, other:i16) ->i32

Performs the<< operation.Read more
Source§

impl<'lhs, const N:usize>Shl<i32> for &'lhsSimd<i32, N>

Source§

typeOutput =Simd<i32, N>

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

fnshl(self, rhs:i32) -> <&'lhsSimd<i32, N> asShl<i32>>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<i32> for &i128

Source§

typeOutput = <i128 asShl<i32>>::Output

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

fnshl(self, other:i32) -> <i128 asShl<i32>>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<i32> for &i16

Source§

typeOutput = <i16 asShl<i32>>::Output

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

fnshl(self, other:i32) -> <i16 asShl<i32>>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<i32> for &i32

Source§

typeOutput = <i32 asShl>::Output

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

fnshl(self, other:i32) -> <i32 asShl>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<i32> for &i64

Source§

typeOutput = <i64 asShl<i32>>::Output

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

fnshl(self, other:i32) -> <i64 asShl<i32>>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<i32> for &i8

Source§

typeOutput = <i8 asShl<i32>>::Output

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

fnshl(self, other:i32) -> <i8 asShl<i32>>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<i32> for &isize

Source§

typeOutput = <isize asShl<i32>>::Output

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

fnshl(self, other:i32) -> <isize asShl<i32>>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<i32> for &u128

Source§

typeOutput = <u128 asShl<i32>>::Output

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

fnshl(self, other:i32) -> <u128 asShl<i32>>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<i32> for &u16

Source§

typeOutput = <u16 asShl<i32>>::Output

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

fnshl(self, other:i32) -> <u16 asShl<i32>>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<i32> for &u32

Source§

typeOutput = <u32 asShl<i32>>::Output

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

fnshl(self, other:i32) -> <u32 asShl<i32>>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<i32> for &u64

Source§

typeOutput = <u64 asShl<i32>>::Output

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

fnshl(self, other:i32) -> <u64 asShl<i32>>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<i32> for &u8

Source§

typeOutput = <u8 asShl<i32>>::Output

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

fnshl(self, other:i32) -> <u8 asShl<i32>>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<i32> for &usize

Source§

typeOutput = <usize asShl<i32>>::Output

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

fnshl(self, other:i32) -> <usize asShl<i32>>::Output

Performs the<< operation.Read more
Source§

impl<const N:usize>Shl<i32> forSimd<i32, N>

Source§

typeOutput =Simd<i32, N>

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

fnshl(self, rhs:i32) -> <Simd<i32, N> asShl<i32>>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<i32> fori128

Source§

typeOutput =i128

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

fnshl(self, other:i32) ->i128

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<i32> fori16

Source§

typeOutput =i16

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

fnshl(self, other:i32) ->i16

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<i32> fori64

Source§

typeOutput =i64

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

fnshl(self, other:i32) ->i64

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<i32> fori8

Source§

typeOutput =i8

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

fnshl(self, other:i32) ->i8

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<i32> forisize

Source§

typeOutput =isize

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

fnshl(self, other:i32) ->isize

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<i32> foru128

Source§

typeOutput =u128

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

fnshl(self, other:i32) ->u128

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<i32> foru16

Source§

typeOutput =u16

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

fnshl(self, other:i32) ->u16

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<i32> foru32

Source§

typeOutput =u32

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

fnshl(self, other:i32) ->u32

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<i32> foru64

Source§

typeOutput =u64

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

fnshl(self, other:i32) ->u64

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<i32> foru8

Source§

typeOutput =u8

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

fnshl(self, other:i32) ->u8

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<i32> forusize

Source§

typeOutput =usize

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

fnshl(self, other:i32) ->usize

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<i64> for &i32

Source§

typeOutput = <i32 asShl<i64>>::Output

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

fnshl(self, other:i64) -> <i32 asShl<i64>>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<i64> fori32

Source§

typeOutput =i32

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

fnshl(self, other:i64) ->i32

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<i8> for &i32

Source§

typeOutput = <i32 asShl<i8>>::Output

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

fnshl(self, other:i8) -> <i32 asShl<i8>>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<i8> fori32

Source§

typeOutput =i32

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

fnshl(self, other:i8) ->i32

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<isize> for &i32

Source§

typeOutput = <i32 asShl<isize>>::Output

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

fnshl(self, other:isize) -> <i32 asShl<isize>>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<isize> fori32

Source§

typeOutput =i32

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

fnshl(self, other:isize) ->i32

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<u128> for &i32

Source§

typeOutput = <i32 asShl<u128>>::Output

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

fnshl(self, other:u128) -> <i32 asShl<u128>>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<u128> fori32

Source§

typeOutput =i32

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

fnshl(self, other:u128) ->i32

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<u16> for &i32

Source§

typeOutput = <i32 asShl<u16>>::Output

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

fnshl(self, other:u16) -> <i32 asShl<u16>>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<u16> fori32

Source§

typeOutput =i32

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

fnshl(self, other:u16) ->i32

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<u32> for &i32

Source§

typeOutput = <i32 asShl<u32>>::Output

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

fnshl(self, other:u32) -> <i32 asShl<u32>>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<u32> fori32

Source§

typeOutput =i32

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

fnshl(self, other:u32) ->i32

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<u64> for &i32

Source§

typeOutput = <i32 asShl<u64>>::Output

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

fnshl(self, other:u64) -> <i32 asShl<u64>>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<u64> fori32

Source§

typeOutput =i32

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

fnshl(self, other:u64) ->i32

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<u8> for &i32

Source§

typeOutput = <i32 asShl<u8>>::Output

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

fnshl(self, other:u8) -> <i32 asShl<u8>>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<u8> fori32

Source§

typeOutput =i32

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

fnshl(self, other:u8) ->i32

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<usize> for &i32

Source§

typeOutput = <i32 asShl<usize>>::Output

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

fnshl(self, other:usize) -> <i32 asShl<usize>>::Output

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl<usize> fori32

Source§

typeOutput =i32

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

fnshl(self, other:usize) ->i32

Performs the<< operation.Read more
1.0.0 (const:unstable) ·Source§

implShl fori32

Source§

typeOutput =i32

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

fnshl(self, other:i32) ->i32

Performs the<< operation.Read more
1.22.0 (const:unstable) ·Source§

implShlAssign<&i128> fori32

Source§

fnshl_assign(&mut self, other: &i128)

Performs the<<= operation.Read more
1.22.0 (const:unstable) ·Source§

implShlAssign<&i16> fori32

Source§

fnshl_assign(&mut self, other: &i16)

Performs the<<= operation.Read more
1.22.0 (const:unstable) ·Source§

implShlAssign<&i32> fori128

Source§

fnshl_assign(&mut self, other: &i32)

Performs the<<= operation.Read more
1.22.0 (const:unstable) ·Source§

implShlAssign<&i32> fori16

Source§

fnshl_assign(&mut self, other: &i32)

Performs the<<= operation.Read more
1.22.0 (const:unstable) ·Source§

implShlAssign<&i32> fori32

Source§

fnshl_assign(&mut self, other: &i32)

Performs the<<= operation.Read more
1.22.0 (const:unstable) ·Source§

implShlAssign<&i32> fori64

Source§

fnshl_assign(&mut self, other: &i32)

Performs the<<= operation.Read more
1.22.0 (const:unstable) ·Source§

implShlAssign<&i32> fori8

Source§

fnshl_assign(&mut self, other: &i32)

Performs the<<= operation.Read more
1.22.0 (const:unstable) ·Source§

implShlAssign<&i32> forisize

Source§

fnshl_assign(&mut self, other: &i32)

Performs the<<= operation.Read more
1.22.0 (const:unstable) ·Source§

implShlAssign<&i32> foru128

Source§

fnshl_assign(&mut self, other: &i32)

Performs the<<= operation.Read more
1.22.0 (const:unstable) ·Source§

implShlAssign<&i32> foru16

Source§

fnshl_assign(&mut self, other: &i32)

Performs the<<= operation.Read more
1.22.0 (const:unstable) ·Source§

implShlAssign<&i32> foru32

Source§

fnshl_assign(&mut self, other: &i32)

Performs the<<= operation.Read more
1.22.0 (const:unstable) ·Source§

implShlAssign<&i32> foru64

Source§

fnshl_assign(&mut self, other: &i32)

Performs the<<= operation.Read more
1.22.0 (const:unstable) ·Source§

implShlAssign<&i32> foru8

Source§

fnshl_assign(&mut self, other: &i32)

Performs the<<= operation.Read more
1.22.0 (const:unstable) ·Source§

implShlAssign<&i32> forusize

Source§

fnshl_assign(&mut self, other: &i32)

Performs the<<= operation.Read more
1.22.0 (const:unstable) ·Source§

implShlAssign<&i64> fori32

Source§

fnshl_assign(&mut self, other: &i64)

Performs the<<= operation.Read more
1.22.0 (const:unstable) ·Source§

implShlAssign<&i8> fori32

Source§

fnshl_assign(&mut self, other: &i8)

Performs the<<= operation.Read more
1.22.0 (const:unstable) ·Source§

implShlAssign<&isize> fori32

Source§

fnshl_assign(&mut self, other: &isize)

Performs the<<= operation.Read more
1.22.0 (const:unstable) ·Source§

implShlAssign<&u128> fori32

Source§

fnshl_assign(&mut self, other: &u128)

Performs the<<= operation.Read more
1.22.0 (const:unstable) ·Source§

implShlAssign<&u16> fori32

Source§

fnshl_assign(&mut self, other: &u16)

Performs the<<= operation.Read more
1.22.0 (const:unstable) ·Source§

implShlAssign<&u32> fori32

Source§

fnshl_assign(&mut self, other: &u32)

Performs the<<= operation.Read more
1.22.0 (const:unstable) ·Source§

implShlAssign<&u64> fori32

Source§

fnshl_assign(&mut self, other: &u64)

Performs the<<= operation.Read more
1.22.0 (const:unstable) ·Source§

implShlAssign<&u8> fori32

Source§

fnshl_assign(&mut self, other: &u8)

Performs the<<= operation.Read more
1.22.0 (const:unstable) ·Source§

implShlAssign<&usize> fori32

Source§

fnshl_assign(&mut self, other: &usize)

Performs the<<= operation.Read more
1.8.0 (const:unstable) ·Source§

implShlAssign<i128> fori32

Source§

fnshl_assign(&mut self, other:i128)

Performs the<<= operation.Read more
1.8.0 (const:unstable) ·Source§

implShlAssign<i16> fori32

Source§

fnshl_assign(&mut self, other:i16)

Performs the<<= operation.Read more
1.8.0 (const:unstable) ·Source§

implShlAssign<i32> fori128

Source§

fnshl_assign(&mut self, other:i32)

Performs the<<= operation.Read more
1.8.0 (const:unstable) ·Source§

implShlAssign<i32> fori16

Source§

fnshl_assign(&mut self, other:i32)

Performs the<<= operation.Read more
1.8.0 (const:unstable) ·Source§

implShlAssign<i32> fori64

Source§

fnshl_assign(&mut self, other:i32)

Performs the<<= operation.Read more
1.8.0 (const:unstable) ·Source§

implShlAssign<i32> fori8

Source§

fnshl_assign(&mut self, other:i32)

Performs the<<= operation.Read more
1.8.0 (const:unstable) ·Source§

implShlAssign<i32> forisize

Source§

fnshl_assign(&mut self, other:i32)

Performs the<<= operation.Read more
1.8.0 (const:unstable) ·Source§

implShlAssign<i32> foru128

Source§

fnshl_assign(&mut self, other:i32)

Performs the<<= operation.Read more
1.8.0 (const:unstable) ·Source§

implShlAssign<i32> foru16

Source§

fnshl_assign(&mut self, other:i32)

Performs the<<= operation.Read more
1.8.0 (const:unstable) ·Source§

implShlAssign<i32> foru32

Source§

fnshl_assign(&mut self, other:i32)

Performs the<<= operation.Read more
1.8.0 (const:unstable) ·Source§

implShlAssign<i32> foru64

Source§

fnshl_assign(&mut self, other:i32)

Performs the<<= operation.Read more
1.8.0 (const:unstable) ·Source§

implShlAssign<i32> foru8

Source§

fnshl_assign(&mut self, other:i32)

Performs the<<= operation.Read more
1.8.0 (const:unstable) ·Source§

implShlAssign<i32> forusize

Source§

fnshl_assign(&mut self, other:i32)

Performs the<<= operation.Read more
1.8.0 (const:unstable) ·Source§

implShlAssign<i64> fori32

Source§

fnshl_assign(&mut self, other:i64)

Performs the<<= operation.Read more
1.8.0 (const:unstable) ·Source§

implShlAssign<i8> fori32

Source§

fnshl_assign(&mut self, other:i8)

Performs the<<= operation.Read more
1.8.0 (const:unstable) ·Source§

implShlAssign<isize> fori32

Source§

fnshl_assign(&mut self, other:isize)

Performs the<<= operation.Read more
1.8.0 (const:unstable) ·Source§

implShlAssign<u128> fori32

Source§

fnshl_assign(&mut self, other:u128)

Performs the<<= operation.Read more
1.8.0 (const:unstable) ·Source§

implShlAssign<u16> fori32

Source§

fnshl_assign(&mut self, other:u16)

Performs the<<= operation.Read more
1.8.0 (const:unstable) ·Source§

implShlAssign<u32> fori32

Source§

fnshl_assign(&mut self, other:u32)

Performs the<<= operation.Read more
1.8.0 (const:unstable) ·Source§

implShlAssign<u64> fori32

Source§

fnshl_assign(&mut self, other:u64)

Performs the<<= operation.Read more
1.8.0 (const:unstable) ·Source§

implShlAssign<u8> fori32

Source§

fnshl_assign(&mut self, other:u8)

Performs the<<= operation.Read more
1.8.0 (const:unstable) ·Source§

implShlAssign<usize> fori32

Source§

fnshl_assign(&mut self, other:usize)

Performs the<<= operation.Read more
1.8.0 (const:unstable) ·Source§

implShlAssign fori32

Source§

fnshl_assign(&mut self, other:i32)

Performs the<<= operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<&i128> for &i32

Source§

typeOutput = <i32 asShr<i128>>::Output

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

fnshr(self, other: &i128) -> <i32 asShr<i128>>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<&i128> fori32

Source§

typeOutput = <i32 asShr<i128>>::Output

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

fnshr(self, other: &i128) -> <i32 asShr<i128>>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<&i16> for &i32

Source§

typeOutput = <i32 asShr<i16>>::Output

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

fnshr(self, other: &i16) -> <i32 asShr<i16>>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<&i16> fori32

Source§

typeOutput = <i32 asShr<i16>>::Output

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

fnshr(self, other: &i16) -> <i32 asShr<i16>>::Output

Performs the>> operation.Read more
Source§

impl<'lhs, const N:usize>Shr<&i32> for &'lhsSimd<i32, N>

Source§

typeOutput =Simd<i32, N>

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

fnshr(self, rhs: &i32) -> <&'lhsSimd<i32, N> asShr<&i32>>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<&i32> for &i128

Source§

typeOutput = <i128 asShr<i32>>::Output

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

fnshr(self, other: &i32) -> <i128 asShr<i32>>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<&i32> for &i16

Source§

typeOutput = <i16 asShr<i32>>::Output

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

fnshr(self, other: &i32) -> <i16 asShr<i32>>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<&i32> for &i32

Source§

typeOutput = <i32 asShr>::Output

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

fnshr(self, other: &i32) -> <i32 asShr>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<&i32> for &i64

Source§

typeOutput = <i64 asShr<i32>>::Output

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

fnshr(self, other: &i32) -> <i64 asShr<i32>>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<&i32> for &i8

Source§

typeOutput = <i8 asShr<i32>>::Output

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

fnshr(self, other: &i32) -> <i8 asShr<i32>>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<&i32> for &isize

Source§

typeOutput = <isize asShr<i32>>::Output

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

fnshr(self, other: &i32) -> <isize asShr<i32>>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<&i32> for &u128

Source§

typeOutput = <u128 asShr<i32>>::Output

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

fnshr(self, other: &i32) -> <u128 asShr<i32>>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<&i32> for &u16

Source§

typeOutput = <u16 asShr<i32>>::Output

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

fnshr(self, other: &i32) -> <u16 asShr<i32>>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<&i32> for &u32

Source§

typeOutput = <u32 asShr<i32>>::Output

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

fnshr(self, other: &i32) -> <u32 asShr<i32>>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<&i32> for &u64

Source§

typeOutput = <u64 asShr<i32>>::Output

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

fnshr(self, other: &i32) -> <u64 asShr<i32>>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<&i32> for &u8

Source§

typeOutput = <u8 asShr<i32>>::Output

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

fnshr(self, other: &i32) -> <u8 asShr<i32>>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<&i32> for &usize

Source§

typeOutput = <usize asShr<i32>>::Output

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

fnshr(self, other: &i32) -> <usize asShr<i32>>::Output

Performs the>> operation.Read more
Source§

impl<const N:usize>Shr<&i32> forSimd<i32, N>

Source§

typeOutput =Simd<i32, N>

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

fnshr(self, rhs: &i32) -> <Simd<i32, N> asShr<&i32>>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<&i32> fori128

Source§

typeOutput = <i128 asShr<i32>>::Output

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

fnshr(self, other: &i32) -> <i128 asShr<i32>>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<&i32> fori16

Source§

typeOutput = <i16 asShr<i32>>::Output

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

fnshr(self, other: &i32) -> <i16 asShr<i32>>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<&i32> fori32

Source§

typeOutput = <i32 asShr>::Output

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

fnshr(self, other: &i32) -> <i32 asShr>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<&i32> fori64

Source§

typeOutput = <i64 asShr<i32>>::Output

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

fnshr(self, other: &i32) -> <i64 asShr<i32>>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<&i32> fori8

Source§

typeOutput = <i8 asShr<i32>>::Output

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

fnshr(self, other: &i32) -> <i8 asShr<i32>>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<&i32> forisize

Source§

typeOutput = <isize asShr<i32>>::Output

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

fnshr(self, other: &i32) -> <isize asShr<i32>>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<&i32> foru128

Source§

typeOutput = <u128 asShr<i32>>::Output

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

fnshr(self, other: &i32) -> <u128 asShr<i32>>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<&i32> foru16

Source§

typeOutput = <u16 asShr<i32>>::Output

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

fnshr(self, other: &i32) -> <u16 asShr<i32>>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<&i32> foru32

Source§

typeOutput = <u32 asShr<i32>>::Output

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

fnshr(self, other: &i32) -> <u32 asShr<i32>>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<&i32> foru64

Source§

typeOutput = <u64 asShr<i32>>::Output

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

fnshr(self, other: &i32) -> <u64 asShr<i32>>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<&i32> foru8

Source§

typeOutput = <u8 asShr<i32>>::Output

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

fnshr(self, other: &i32) -> <u8 asShr<i32>>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<&i32> forusize

Source§

typeOutput = <usize asShr<i32>>::Output

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

fnshr(self, other: &i32) -> <usize asShr<i32>>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<&i64> for &i32

Source§

typeOutput = <i32 asShr<i64>>::Output

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

fnshr(self, other: &i64) -> <i32 asShr<i64>>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<&i64> fori32

Source§

typeOutput = <i32 asShr<i64>>::Output

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

fnshr(self, other: &i64) -> <i32 asShr<i64>>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<&i8> for &i32

Source§

typeOutput = <i32 asShr<i8>>::Output

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

fnshr(self, other: &i8) -> <i32 asShr<i8>>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<&i8> fori32

Source§

typeOutput = <i32 asShr<i8>>::Output

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

fnshr(self, other: &i8) -> <i32 asShr<i8>>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<&isize> for &i32

Source§

typeOutput = <i32 asShr<isize>>::Output

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

fnshr(self, other: &isize) -> <i32 asShr<isize>>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<&isize> fori32

Source§

typeOutput = <i32 asShr<isize>>::Output

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

fnshr(self, other: &isize) -> <i32 asShr<isize>>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<&u128> for &i32

Source§

typeOutput = <i32 asShr<u128>>::Output

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

fnshr(self, other: &u128) -> <i32 asShr<u128>>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<&u128> fori32

Source§

typeOutput = <i32 asShr<u128>>::Output

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

fnshr(self, other: &u128) -> <i32 asShr<u128>>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<&u16> for &i32

Source§

typeOutput = <i32 asShr<u16>>::Output

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

fnshr(self, other: &u16) -> <i32 asShr<u16>>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<&u16> fori32

Source§

typeOutput = <i32 asShr<u16>>::Output

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

fnshr(self, other: &u16) -> <i32 asShr<u16>>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<&u32> for &i32

Source§

typeOutput = <i32 asShr<u32>>::Output

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

fnshr(self, other: &u32) -> <i32 asShr<u32>>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<&u32> fori32

Source§

typeOutput = <i32 asShr<u32>>::Output

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

fnshr(self, other: &u32) -> <i32 asShr<u32>>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<&u64> for &i32

Source§

typeOutput = <i32 asShr<u64>>::Output

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

fnshr(self, other: &u64) -> <i32 asShr<u64>>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<&u64> fori32

Source§

typeOutput = <i32 asShr<u64>>::Output

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

fnshr(self, other: &u64) -> <i32 asShr<u64>>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<&u8> for &i32

Source§

typeOutput = <i32 asShr<u8>>::Output

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

fnshr(self, other: &u8) -> <i32 asShr<u8>>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<&u8> fori32

Source§

typeOutput = <i32 asShr<u8>>::Output

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

fnshr(self, other: &u8) -> <i32 asShr<u8>>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<&usize> for &i32

Source§

typeOutput = <i32 asShr<usize>>::Output

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

fnshr(self, other: &usize) -> <i32 asShr<usize>>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<&usize> fori32

Source§

typeOutput = <i32 asShr<usize>>::Output

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

fnshr(self, other: &usize) -> <i32 asShr<usize>>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<i128> for &i32

Source§

typeOutput = <i32 asShr<i128>>::Output

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

fnshr(self, other:i128) -> <i32 asShr<i128>>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<i128> fori32

Source§

typeOutput =i32

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

fnshr(self, other:i128) ->i32

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<i16> for &i32

Source§

typeOutput = <i32 asShr<i16>>::Output

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

fnshr(self, other:i16) -> <i32 asShr<i16>>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<i16> fori32

Source§

typeOutput =i32

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

fnshr(self, other:i16) ->i32

Performs the>> operation.Read more
Source§

impl<'lhs, const N:usize>Shr<i32> for &'lhsSimd<i32, N>

Source§

typeOutput =Simd<i32, N>

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

fnshr(self, rhs:i32) -> <&'lhsSimd<i32, N> asShr<i32>>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<i32> for &i128

Source§

typeOutput = <i128 asShr<i32>>::Output

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

fnshr(self, other:i32) -> <i128 asShr<i32>>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<i32> for &i16

Source§

typeOutput = <i16 asShr<i32>>::Output

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

fnshr(self, other:i32) -> <i16 asShr<i32>>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<i32> for &i32

Source§

typeOutput = <i32 asShr>::Output

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

fnshr(self, other:i32) -> <i32 asShr>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<i32> for &i64

Source§

typeOutput = <i64 asShr<i32>>::Output

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

fnshr(self, other:i32) -> <i64 asShr<i32>>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<i32> for &i8

Source§

typeOutput = <i8 asShr<i32>>::Output

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

fnshr(self, other:i32) -> <i8 asShr<i32>>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<i32> for &isize

Source§

typeOutput = <isize asShr<i32>>::Output

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

fnshr(self, other:i32) -> <isize asShr<i32>>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<i32> for &u128

Source§

typeOutput = <u128 asShr<i32>>::Output

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

fnshr(self, other:i32) -> <u128 asShr<i32>>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<i32> for &u16

Source§

typeOutput = <u16 asShr<i32>>::Output

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

fnshr(self, other:i32) -> <u16 asShr<i32>>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<i32> for &u32

Source§

typeOutput = <u32 asShr<i32>>::Output

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

fnshr(self, other:i32) -> <u32 asShr<i32>>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<i32> for &u64

Source§

typeOutput = <u64 asShr<i32>>::Output

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

fnshr(self, other:i32) -> <u64 asShr<i32>>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<i32> for &u8

Source§

typeOutput = <u8 asShr<i32>>::Output

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

fnshr(self, other:i32) -> <u8 asShr<i32>>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<i32> for &usize

Source§

typeOutput = <usize asShr<i32>>::Output

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

fnshr(self, other:i32) -> <usize asShr<i32>>::Output

Performs the>> operation.Read more
Source§

impl<const N:usize>Shr<i32> forSimd<i32, N>

Source§

typeOutput =Simd<i32, N>

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

fnshr(self, rhs:i32) -> <Simd<i32, N> asShr<i32>>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<i32> fori128

Source§

typeOutput =i128

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

fnshr(self, other:i32) ->i128

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<i32> fori16

Source§

typeOutput =i16

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

fnshr(self, other:i32) ->i16

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<i32> fori64

Source§

typeOutput =i64

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

fnshr(self, other:i32) ->i64

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<i32> fori8

Source§

typeOutput =i8

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

fnshr(self, other:i32) ->i8

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<i32> forisize

Source§

typeOutput =isize

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

fnshr(self, other:i32) ->isize

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<i32> foru128

Source§

typeOutput =u128

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

fnshr(self, other:i32) ->u128

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<i32> foru16

Source§

typeOutput =u16

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

fnshr(self, other:i32) ->u16

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<i32> foru32

Source§

typeOutput =u32

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

fnshr(self, other:i32) ->u32

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<i32> foru64

Source§

typeOutput =u64

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

fnshr(self, other:i32) ->u64

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<i32> foru8

Source§

typeOutput =u8

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

fnshr(self, other:i32) ->u8

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<i32> forusize

Source§

typeOutput =usize

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

fnshr(self, other:i32) ->usize

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<i64> for &i32

Source§

typeOutput = <i32 asShr<i64>>::Output

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

fnshr(self, other:i64) -> <i32 asShr<i64>>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<i64> fori32

Source§

typeOutput =i32

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

fnshr(self, other:i64) ->i32

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<i8> for &i32

Source§

typeOutput = <i32 asShr<i8>>::Output

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

fnshr(self, other:i8) -> <i32 asShr<i8>>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<i8> fori32

Source§

typeOutput =i32

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

fnshr(self, other:i8) ->i32

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<isize> for &i32

Source§

typeOutput = <i32 asShr<isize>>::Output

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

fnshr(self, other:isize) -> <i32 asShr<isize>>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<isize> fori32

Source§

typeOutput =i32

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

fnshr(self, other:isize) ->i32

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<u128> for &i32

Source§

typeOutput = <i32 asShr<u128>>::Output

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

fnshr(self, other:u128) -> <i32 asShr<u128>>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<u128> fori32

Source§

typeOutput =i32

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

fnshr(self, other:u128) ->i32

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<u16> for &i32

Source§

typeOutput = <i32 asShr<u16>>::Output

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

fnshr(self, other:u16) -> <i32 asShr<u16>>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<u16> fori32

Source§

typeOutput =i32

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

fnshr(self, other:u16) ->i32

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<u32> for &i32

Source§

typeOutput = <i32 asShr<u32>>::Output

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

fnshr(self, other:u32) -> <i32 asShr<u32>>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<u32> fori32

Source§

typeOutput =i32

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

fnshr(self, other:u32) ->i32

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<u64> for &i32

Source§

typeOutput = <i32 asShr<u64>>::Output

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

fnshr(self, other:u64) -> <i32 asShr<u64>>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<u64> fori32

Source§

typeOutput =i32

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

fnshr(self, other:u64) ->i32

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<u8> for &i32

Source§

typeOutput = <i32 asShr<u8>>::Output

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

fnshr(self, other:u8) -> <i32 asShr<u8>>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<u8> fori32

Source§

typeOutput =i32

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

fnshr(self, other:u8) ->i32

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<usize> for &i32

Source§

typeOutput = <i32 asShr<usize>>::Output

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

fnshr(self, other:usize) -> <i32 asShr<usize>>::Output

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr<usize> fori32

Source§

typeOutput =i32

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

fnshr(self, other:usize) ->i32

Performs the>> operation.Read more
1.0.0 (const:unstable) ·Source§

implShr fori32

Source§

typeOutput =i32

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

fnshr(self, other:i32) ->i32

Performs the>> operation.Read more
1.22.0 (const:unstable) ·Source§

implShrAssign<&i128> fori32

Source§

fnshr_assign(&mut self, other: &i128)

Performs the>>= operation.Read more
1.22.0 (const:unstable) ·Source§

implShrAssign<&i16> fori32

Source§

fnshr_assign(&mut self, other: &i16)

Performs the>>= operation.Read more
1.22.0 (const:unstable) ·Source§

implShrAssign<&i32> fori128

Source§

fnshr_assign(&mut self, other: &i32)

Performs the>>= operation.Read more
1.22.0 (const:unstable) ·Source§

implShrAssign<&i32> fori16

Source§

fnshr_assign(&mut self, other: &i32)

Performs the>>= operation.Read more
1.22.0 (const:unstable) ·Source§

implShrAssign<&i32> fori32

Source§

fnshr_assign(&mut self, other: &i32)

Performs the>>= operation.Read more
1.22.0 (const:unstable) ·Source§

implShrAssign<&i32> fori64

Source§

fnshr_assign(&mut self, other: &i32)

Performs the>>= operation.Read more
1.22.0 (const:unstable) ·Source§

implShrAssign<&i32> fori8

Source§

fnshr_assign(&mut self, other: &i32)

Performs the>>= operation.Read more
1.22.0 (const:unstable) ·Source§

implShrAssign<&i32> forisize

Source§

fnshr_assign(&mut self, other: &i32)

Performs the>>= operation.Read more
1.22.0 (const:unstable) ·Source§

implShrAssign<&i32> foru128

Source§

fnshr_assign(&mut self, other: &i32)

Performs the>>= operation.Read more
1.22.0 (const:unstable) ·Source§

implShrAssign<&i32> foru16

Source§

fnshr_assign(&mut self, other: &i32)

Performs the>>= operation.Read more
1.22.0 (const:unstable) ·Source§

implShrAssign<&i32> foru32

Source§

fnshr_assign(&mut self, other: &i32)

Performs the>>= operation.Read more
1.22.0 (const:unstable) ·Source§

implShrAssign<&i32> foru64

Source§

fnshr_assign(&mut self, other: &i32)

Performs the>>= operation.Read more
1.22.0 (const:unstable) ·Source§

implShrAssign<&i32> foru8

Source§

fnshr_assign(&mut self, other: &i32)

Performs the>>= operation.Read more
1.22.0 (const:unstable) ·Source§

implShrAssign<&i32> forusize

Source§

fnshr_assign(&mut self, other: &i32)

Performs the>>= operation.Read more
1.22.0 (const:unstable) ·Source§

implShrAssign<&i64> fori32

Source§

fnshr_assign(&mut self, other: &i64)

Performs the>>= operation.Read more
1.22.0 (const:unstable) ·Source§

implShrAssign<&i8> fori32

Source§

fnshr_assign(&mut self, other: &i8)

Performs the>>= operation.Read more
1.22.0 (const:unstable) ·Source§

implShrAssign<&isize> fori32

Source§

fnshr_assign(&mut self, other: &isize)

Performs the>>= operation.Read more
1.22.0 (const:unstable) ·Source§

implShrAssign<&u128> fori32

Source§

fnshr_assign(&mut self, other: &u128)

Performs the>>= operation.Read more
1.22.0 (const:unstable) ·Source§

implShrAssign<&u16> fori32

Source§

fnshr_assign(&mut self, other: &u16)

Performs the>>= operation.Read more
1.22.0 (const:unstable) ·Source§

implShrAssign<&u32> fori32

Source§

fnshr_assign(&mut self, other: &u32)

Performs the>>= operation.Read more
1.22.0 (const:unstable) ·Source§

implShrAssign<&u64> fori32

Source§

fnshr_assign(&mut self, other: &u64)

Performs the>>= operation.Read more
1.22.0 (const:unstable) ·Source§

implShrAssign<&u8> fori32

Source§

fnshr_assign(&mut self, other: &u8)

Performs the>>= operation.Read more
1.22.0 (const:unstable) ·Source§

implShrAssign<&usize> fori32

Source§

fnshr_assign(&mut self, other: &usize)

Performs the>>= operation.Read more
1.8.0 (const:unstable) ·Source§

implShrAssign<i128> fori32

Source§

fnshr_assign(&mut self, other:i128)

Performs the>>= operation.Read more
1.8.0 (const:unstable) ·Source§

implShrAssign<i16> fori32

Source§

fnshr_assign(&mut self, other:i16)

Performs the>>= operation.Read more
1.8.0 (const:unstable) ·Source§

implShrAssign<i32> fori128

Source§

fnshr_assign(&mut self, other:i32)

Performs the>>= operation.Read more
1.8.0 (const:unstable) ·Source§

implShrAssign<i32> fori16

Source§

fnshr_assign(&mut self, other:i32)

Performs the>>= operation.Read more
1.8.0 (const:unstable) ·Source§

implShrAssign<i32> fori64

Source§

fnshr_assign(&mut self, other:i32)

Performs the>>= operation.Read more
1.8.0 (const:unstable) ·Source§

implShrAssign<i32> fori8

Source§

fnshr_assign(&mut self, other:i32)

Performs the>>= operation.Read more
1.8.0 (const:unstable) ·Source§

implShrAssign<i32> forisize

Source§

fnshr_assign(&mut self, other:i32)

Performs the>>= operation.Read more
1.8.0 (const:unstable) ·Source§

implShrAssign<i32> foru128

Source§

fnshr_assign(&mut self, other:i32)

Performs the>>= operation.Read more
1.8.0 (const:unstable) ·Source§

implShrAssign<i32> foru16

Source§

fnshr_assign(&mut self, other:i32)

Performs the>>= operation.Read more
1.8.0 (const:unstable) ·Source§

implShrAssign<i32> foru32

Source§

fnshr_assign(&mut self, other:i32)

Performs the>>= operation.Read more
1.8.0 (const:unstable) ·Source§

implShrAssign<i32> foru64

Source§

fnshr_assign(&mut self, other:i32)

Performs the>>= operation.Read more
1.8.0 (const:unstable) ·Source§

implShrAssign<i32> foru8

Source§

fnshr_assign(&mut self, other:i32)

Performs the>>= operation.Read more
1.8.0 (const:unstable) ·Source§

implShrAssign<i32> forusize

Source§

fnshr_assign(&mut self, other:i32)

Performs the>>= operation.Read more
1.8.0 (const:unstable) ·Source§

implShrAssign<i64> fori32

Source§

fnshr_assign(&mut self, other:i64)

Performs the>>= operation.Read more
1.8.0 (const:unstable) ·Source§

implShrAssign<i8> fori32

Source§

fnshr_assign(&mut self, other:i8)

Performs the>>= operation.Read more
1.8.0 (const:unstable) ·Source§

implShrAssign<isize> fori32

Source§

fnshr_assign(&mut self, other:isize)

Performs the>>= operation.Read more
1.8.0 (const:unstable) ·Source§

implShrAssign<u128> fori32

Source§

fnshr_assign(&mut self, other:u128)

Performs the>>= operation.Read more
1.8.0 (const:unstable) ·Source§

implShrAssign<u16> fori32

Source§

fnshr_assign(&mut self, other:u16)

Performs the>>= operation.Read more
1.8.0 (const:unstable) ·Source§

implShrAssign<u32> fori32

Source§

fnshr_assign(&mut self, other:u32)

Performs the>>= operation.Read more
1.8.0 (const:unstable) ·Source§

implShrAssign<u64> fori32

Source§

fnshr_assign(&mut self, other:u64)

Performs the>>= operation.Read more
1.8.0 (const:unstable) ·Source§

implShrAssign<u8> fori32

Source§

fnshr_assign(&mut self, other:u8)

Performs the>>= operation.Read more
1.8.0 (const:unstable) ·Source§

implShrAssign<usize> fori32

Source§

fnshr_assign(&mut self, other:usize)

Performs the>>= operation.Read more
1.8.0 (const:unstable) ·Source§

implShrAssign fori32

Source§

fnshr_assign(&mut self, other:i32)

Performs the>>= operation.Read more
Source§

implSimdElement fori32

Source§

typeMask =i32

🔬This is a nightly-only experimental API. (portable_simd #86656)
The mask element type corresponding to this element type.
Source§

implStep fori32

Source§

fnforward(start:i32, n:usize) ->i32

🔬This is a nightly-only experimental API. (step_trait #42168)
Returns the value that would be obtained by taking thesuccessorofselfcount times.Read more
Source§

fnbackward(start:i32, n:usize) ->i32

🔬This is a nightly-only experimental API. (step_trait #42168)
Returns the value that would be obtained by taking thepredecessorofselfcount times.Read more
Source§

unsafe fnforward_unchecked(start:i32, n:usize) ->i32

🔬This is a nightly-only experimental API. (step_trait #42168)
Returns the value that would be obtained by taking thesuccessorofselfcount times.Read more
Source§

unsafe fnbackward_unchecked(start:i32, n:usize) ->i32

🔬This is a nightly-only experimental API. (step_trait #42168)
Returns the value that would be obtained by taking thepredecessorofselfcount times.Read more
Source§

fnsteps_between(start: &i32, end: &i32) -> (usize,Option<usize>)

🔬This is a nightly-only experimental API. (step_trait #42168)
Returns the bounds on the number ofsuccessor steps required to get fromstart toendlikeIterator::size_hint().Read more
Source§

fnforward_checked(start:i32, n:usize) ->Option<i32>

🔬This is a nightly-only experimental API. (step_trait #42168)
Returns the value that would be obtained by taking thesuccessorofselfcount times.Read more
Source§

fnbackward_checked(start:i32, n:usize) ->Option<i32>

🔬This is a nightly-only experimental API. (step_trait #42168)
Returns the value that would be obtained by taking thepredecessorofselfcount times.Read more
1.0.0 (const:unstable) ·Source§

implSub<&i32> for &i32

Source§

typeOutput = <i32 asSub>::Output

The resulting type after applying the- operator.
Source§

fnsub(self, other: &i32) -> <i32 asSub>::Output

Performs the- operation.Read more
1.0.0 (const:unstable) ·Source§

implSub<&i32> fori32

Source§

typeOutput = <i32 asSub>::Output

The resulting type after applying the- operator.
Source§

fnsub(self, other: &i32) -> <i32 asSub>::Output

Performs the- operation.Read more
1.0.0 (const:unstable) ·Source§

implSub<i32> for &i32

Source§

typeOutput = <i32 asSub>::Output

The resulting type after applying the- operator.
Source§

fnsub(self, other:i32) -> <i32 asSub>::Output

Performs the- operation.Read more
1.0.0 (const:unstable) ·Source§

implSub fori32

Source§

typeOutput =i32

The resulting type after applying the- operator.
Source§

fnsub(self, other:i32) ->i32

Performs the- operation.Read more
1.74.0 (const:unstable) ·Source§

implSubAssign<&i32> forSaturating<i32>

Source§

fnsub_assign(&mut self, other: &i32)

Performs the-= operation.Read more
1.22.0 (const:unstable) ·Source§

implSubAssign<&i32> forWrapping<i32>

Source§

fnsub_assign(&mut self, other: &i32)

Performs the-= operation.Read more
1.22.0 (const:unstable) ·Source§

implSubAssign<&i32> fori32

Source§

fnsub_assign(&mut self, other: &i32)

Performs the-= operation.Read more
1.74.0 (const:unstable) ·Source§

implSubAssign<i32> forSaturating<i32>

Source§

fnsub_assign(&mut self, other:i32)

Performs the-= operation.Read more
1.60.0 (const:unstable) ·Source§

implSubAssign<i32> forWrapping<i32>

Source§

fnsub_assign(&mut self, other:i32)

Performs the-= operation.Read more
1.8.0 (const:unstable) ·Source§

implSubAssign fori32

Source§

fnsub_assign(&mut self, other:i32)

Performs the-= operation.Read more
1.12.0 ·Source§

impl<'a>Sum<&'ai32> fori32

Source§

fnsum<I>(iter: I) ->i32
where I:Iterator<Item = &'ai32>,

Takes an iterator and generatesSelf from the elements by “summing up”the items.
1.12.0 ·Source§

implSum fori32

Source§

fnsum<I>(iter: I) ->i32
where I:Iterator<Item =i32>,

Takes an iterator and generatesSelf from the elements by “summing up”the items.
1.34.0 (const:unstable) ·Source§

implTryFrom<i128> fori32

Source§

fntry_from(u:i128) ->Result<i32, <i32 asTryFrom<i128>>::Error>

Tries to create the target number type from a sourcenumber type. This returns an error if the source valueis outside of the range of the target type.

Source§

typeError =TryFromIntError

The type returned in the event of a conversion error.
1.46.0 (const:unstable) ·Source§

implTryFrom<i32> forNonZero<i32>

Source§

fntry_from( value:i32,) ->Result<NonZero<i32>, <NonZero<i32> asTryFrom<i32>>::Error>

Attempts to converti32toNonZero<i32>.

Source§

typeError =TryFromIntError

The type returned in the event of a conversion error.
1.34.0 (const:unstable) ·Source§

implTryFrom<i32> fori16

Source§

fntry_from(u:i32) ->Result<i16, <i16 asTryFrom<i32>>::Error>

Tries to create the target number type from a sourcenumber type. This returns an error if the source valueis outside of the range of the target type.

Source§

typeError =TryFromIntError

The type returned in the event of a conversion error.
1.34.0 (const:unstable) ·Source§

implTryFrom<i32> fori8

Source§

fntry_from(u:i32) ->Result<i8, <i8 asTryFrom<i32>>::Error>

Tries to create the target number type from a sourcenumber type. This returns an error if the source valueis outside of the range of the target type.

Source§

typeError =TryFromIntError

The type returned in the event of a conversion error.
1.34.0 (const:unstable) ·Source§

implTryFrom<i32> forisize

Source§

fntry_from(value:i32) ->Result<isize, <isize asTryFrom<i32>>::Error>

Tries to create the target number type from a sourcenumber type. This returns an error if the source valueis outside of the range of the target type.

Source§

typeError =TryFromIntError

The type returned in the event of a conversion error.
1.34.0 (const:unstable) ·Source§

implTryFrom<i32> foru128

Source§

fntry_from(u:i32) ->Result<u128, <u128 asTryFrom<i32>>::Error>

Tries to create the target number type from a sourcenumber type. This returns an error if the source valueis outside of the range of the target type.

Source§

typeError =TryFromIntError

The type returned in the event of a conversion error.
1.34.0 (const:unstable) ·Source§

implTryFrom<i32> foru16

Source§

fntry_from(u:i32) ->Result<u16, <u16 asTryFrom<i32>>::Error>

Tries to create the target number type from a sourcenumber type. This returns an error if the source valueis outside of the range of the target type.

Source§

typeError =TryFromIntError

The type returned in the event of a conversion error.
1.34.0 (const:unstable) ·Source§

implTryFrom<i32> foru32

Source§

fntry_from(u:i32) ->Result<u32, <u32 asTryFrom<i32>>::Error>

Tries to create the target number type from a sourcenumber type. This returns an error if the source valueis outside of the range of the target type.

Source§

typeError =TryFromIntError

The type returned in the event of a conversion error.
1.34.0 (const:unstable) ·Source§

implTryFrom<i32> foru64

Source§

fntry_from(u:i32) ->Result<u64, <u64 asTryFrom<i32>>::Error>

Tries to create the target number type from a sourcenumber type. This returns an error if the source valueis outside of the range of the target type.

Source§

typeError =TryFromIntError

The type returned in the event of a conversion error.
1.34.0 (const:unstable) ·Source§

implTryFrom<i32> foru8

Source§

fntry_from(u:i32) ->Result<u8, <u8 asTryFrom<i32>>::Error>

Tries to create the target number type from a sourcenumber type. This returns an error if the source valueis outside of the range of the target type.

Source§

typeError =TryFromIntError

The type returned in the event of a conversion error.
1.34.0 (const:unstable) ·Source§

implTryFrom<i32> forusize

Source§

fntry_from(u:i32) ->Result<usize, <usize asTryFrom<i32>>::Error>

Tries to create the target number type from a sourcenumber type. This returns an error if the source valueis outside of the range of the target type.

Source§

typeError =TryFromIntError

The type returned in the event of a conversion error.
1.34.0 (const:unstable) ·Source§

implTryFrom<i64> fori32

Source§

fntry_from(u:i64) ->Result<i32, <i32 asTryFrom<i64>>::Error>

Tries to create the target number type from a sourcenumber type. This returns an error if the source valueis outside of the range of the target type.

Source§

typeError =TryFromIntError

The type returned in the event of a conversion error.
1.34.0 (const:unstable) ·Source§

implTryFrom<isize> fori32

Source§

fntry_from(u:isize) ->Result<i32, <i32 asTryFrom<isize>>::Error>

Tries to create the target number type from a sourcenumber type. This returns an error if the source valueis outside of the range of the target type.

Source§

typeError =TryFromIntError

The type returned in the event of a conversion error.
1.34.0 (const:unstable) ·Source§

implTryFrom<u128> fori32

Source§

fntry_from(u:u128) ->Result<i32, <i32 asTryFrom<u128>>::Error>

Tries to create the target number type from a sourcenumber type. This returns an error if the source valueis outside of the range of the target type.

Source§

typeError =TryFromIntError

The type returned in the event of a conversion error.
1.34.0 (const:unstable) ·Source§

implTryFrom<u32> fori32

Source§

fntry_from(u:u32) ->Result<i32, <i32 asTryFrom<u32>>::Error>

Tries to create the target number type from a sourcenumber type. This returns an error if the source valueis outside of the range of the target type.

Source§

typeError =TryFromIntError

The type returned in the event of a conversion error.
1.34.0 (const:unstable) ·Source§

implTryFrom<u64> fori32

Source§

fntry_from(u:u64) ->Result<i32, <i32 asTryFrom<u64>>::Error>

Tries to create the target number type from a sourcenumber type. This returns an error if the source valueis outside of the range of the target type.

Source§

typeError =TryFromIntError

The type returned in the event of a conversion error.
1.34.0 (const:unstable) ·Source§

implTryFrom<usize> fori32

Source§

fntry_from(u:usize) ->Result<i32, <i32 asTryFrom<usize>>::Error>

Tries to create the target number type from a sourcenumber type. This returns an error if the source valueis outside of the range of the target type.

Source§

typeError =TryFromIntError

The type returned in the event of a conversion error.
1.42.0 ·Source§

implUpperExp fori32

Source§

fnfmt(&self, f: &mutFormatter<'_>) ->Result<(),Error>

Formats the value using the given formatter.Read more
1.0.0 ·Source§

implUpperHex fori32

Source§

fnfmt(&self, f: &mutFormatter<'_>) ->Result<(),Error>

Format signed integers in the two’s-complement form.

Source§

implConstParamTy_ fori32

1.0.0 ·Source§

implCopy fori32

1.0.0 (const:unstable) ·Source§

implEq fori32

Source§

implFloatToInt<i32> forf128

Source§

implFloatToInt<i32> forf16

Source§

implFloatToInt<i32> forf32

Source§

implFloatToInt<i32> forf64

Source§

implMaskElement fori32

Source§

implSimdCast fori32

Source§

implStructuralPartialEq fori32

Source§

implTrustedStep fori32

Source§

implUseCloned fori32

Source§

implVaArgSafe fori32

Source§

implZeroablePrimitive fori32

Auto Trait Implementations§

§

implFreeze fori32

§

implRefUnwindSafe fori32

§

implSend fori32

§

implSync fori32

§

implUnpin fori32

§

implUnwindSafe fori32

Blanket Implementations§

Source§

impl<T>Any for T
where T: 'static + ?Sized,

Source§

fntype_id(&self) ->TypeId

Gets theTypeId ofself.Read more
Source§

impl<T>BitOr<NonZero<T>> for T
where T:ZeroablePrimitive +BitOr<Output = T>,

Source§

typeOutput =NonZero<T>

The resulting type after applying the| operator.
Source§

fnbitor(self, rhs:NonZero<T>) -> <T asBitOr<NonZero<T>>>::Output

Performs the| operation.Read more
Source§

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

Source§

fnborrow(&self) ->&T

Immutably borrows from an owned value.Read more
Source§

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

Source§

fnborrow_mut(&mut self) ->&mut T

Mutably borrows from an owned value.Read more
Source§

impl<T>CloneToUninit for T
where T:Clone,

Source§

unsafe fnclone_to_uninit(&self, dest:*mutu8)

🔬This is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment fromself todest.Read more
Source§

impl<T>From<NonZero<T>> for T

Source§

fnfrom(nonzero:NonZero<T>) -> T

Converts to this type from the input type.
Source§

impl<T>From<T> for T

Source§

fnfrom(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U>Into<U> for T
where U:From<T>,

Source§

fninto(self) -> U

CallsU::from(self).

That is, this conversion is whatever the implementation ofFrom<T> for U chooses to do.

Source§

impl<T>ToOwned for T
where T:Clone,

Source§

typeOwned = T

The resulting type after obtaining ownership.
Source§

fnto_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning.Read more
Source§

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

fnto_string(&self) ->String

Converts the given value to aString.Read more
Source§

impl<T, U>TryFrom<U> for T
where U:Into<T>,

Source§

typeError =Infallible

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

fntry_from(value: U) ->Result<T, <T asTryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U>TryInto<U> for T
where U:TryFrom<T>,

Source§

typeError = <U asTryFrom<T>>::Error

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

fntry_into(self) ->Result<U, <U asTryFrom<T>>::Error>

Performs the conversion.

[8]ページ先頭

©2009-2025 Movatter.jp