Primitive Type i16

1.0.0 ·
Expand description

16 位带符号整数类型。

Implementations§

source§

impl i16

1.43.0 · source

pub const MIN: i16 = -32_768i16

该整数类型可以表示的最小值 (−215).

Examples

基本用法:

assert_eq!(i16::MIN, -32768);
Run
1.43.0 · source

pub const MAX: i16 = 32_767i16

该整数类型可以表示的最大值 (215 − 1).

Examples

基本用法:

assert_eq!(i16::MAX, 32767);
Run
1.53.0 · source

pub const BITS: u32 = 16u32

此整数类型的大小 (以位为单位)。

Examples
assert_eq!(i16::BITS, 16);
Run
source

pub fn from_str_radix(src: &str, radix: u32) -> Result<i16, ParseIntError>

将给定基数的字符串切片转换为整数。

该字符串应为可选的 +- 符号,后跟数字。 前导和尾随空格表示错误。 根据 radix,数字是这些字符的子集:

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

如果 radix 不在 2 到 36 之间,则此函数 panics。

Examples

基本用法:

assert_eq!(i16::from_str_radix("A", 16), Ok(10));
Run
const: 1.32.0 · source

pub const fn count_ones(self) -> u32

返回 self 二进制表示形式中的位数。

Examples

基本用法:

let n = 0b100_0000i16;

assert_eq!(n.count_ones(), 1);
Run
const: 1.32.0 · source

pub const fn count_zeros(self) -> u32

返回 self 二进制表示形式中的零数。

Examples

基本用法:

assert_eq!(i16::MAX.count_zeros(), 1);
Run
const: 1.32.0 · source

pub const fn leading_zeros(self) -> u32

返回 self 二进制表示形式中前导零的数目。

根据您对值的处理方式,您可能还对 ilog2 函数感兴趣,它返回一致的数字,即使类型变宽。

Examples

基本用法:

let n = -1i16;

assert_eq!(n.leading_zeros(), 0);
Run
const: 1.32.0 · source

pub const fn trailing_zeros(self) -> u32

返回 self 二进制表示形式中的尾随零数。

Examples

基本用法:

let n = -4i16;

assert_eq!(n.trailing_zeros(), 2);
Run
1.46.0 (const: 1.46.0) · source

pub const fn leading_ones(self) -> u32

返回 self 二进制表示形式中前导数字。

Examples

基本用法:

let n = -1i16;

assert_eq!(n.leading_ones(), 16);
Run
1.46.0 (const: 1.46.0) · source

pub const fn trailing_ones(self) -> u32

返回 self 二进制表示形式中的尾随数字。

Examples

基本用法:

let n = 3i16;

assert_eq!(n.trailing_ones(), 2);
Run
const: 1.32.0 · source

pub const fn rotate_left(self, n: u32) -> i16

将位左移指定的量 n,将截断的位包装到结果整数的末尾。

请注意,此操作与 << 移位运算符不同!

Examples

基本用法:

let n = -0x5ffdi16;
let m = 0x3a;

assert_eq!(n.rotate_left(4), m);
Run
const: 1.32.0 · source

pub const fn rotate_right(self, n: u32) -> i16

将位右移指定的量 n,将截断的位包装到结果整数的开头。

请注意,此操作与 >> 移位运算符不同!

Examples

基本用法:

let n = 0x3ai16;
let m = -0x5ffd;

assert_eq!(n.rotate_right(4), m);
Run
const: 1.32.0 · source

pub const fn swap_bytes(self) -> i16

反转整数的字节顺序。

Examples

基本用法:

let n = 0x1234i16;

let m = n.swap_bytes();

assert_eq!(m, 0x3412);
Run
1.37.0 (const: 1.37.0) · source

pub const fn reverse_bits(self) -> i16

反转整数中的位顺序。 最低有效位变为最高有效位,第二最低有效位变为第二最高有效位,依此类推。

Examples

基本用法:

let n = 0x1234i16;
let m = n.reverse_bits();

assert_eq!(m, 0x2c48);
assert_eq!(0, 0i16.reverse_bits());
Run
const: 1.32.0 · source

pub const fn from_be(x: i16) -> i16

将整数从大端字节序转换为目标的字节序。

在大端节序序上,这是个禁忌。在小端字节序上,字节被交换。

Examples

基本用法:

let n = 0x1Ai16;

if cfg!(target_endian = "big") {
    assert_eq!(i16::from_be(n), n)
} else {
    assert_eq!(i16::from_be(n), n.swap_bytes())
}
Run
const: 1.32.0 · source

pub const fn from_le(x: i16) -> i16

将整数从小端字节序转换为目标的字节序。

在小端字节序上,这是个禁忌。在大字节序中,字节被交换。

Examples

基本用法:

let n = 0x1Ai16;

if cfg!(target_endian = "little") {
    assert_eq!(i16::from_le(n), n)
} else {
    assert_eq!(i16::from_le(n), n.swap_bytes())
}
Run
const: 1.32.0 · source

pub const fn to_be(self) -> i16

self 从目标的字节序转换为大字节序。

在大端节序序上,这是个禁忌。在小端字节序上,字节被交换。

Examples

基本用法:

let n = 0x1Ai16;

if cfg!(target_endian = "big") {
    assert_eq!(n.to_be(), n)
} else {
    assert_eq!(n.to_be(), n.swap_bytes())
}
Run
const: 1.32.0 · source

pub const fn to_le(self) -> i16

self 从目标的字节序转换为 Little Endian。

在小端字节序上,这是个禁忌。在大字节序中,字节被交换。

Examples

基本用法:

let n = 0x1Ai16;

if cfg!(target_endian = "little") {
    assert_eq!(n.to_le(), n)
} else {
    assert_eq!(n.to_le(), n.swap_bytes())
}
Run
const: 1.47.0 · source

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

检查整数加法。 计算 self + rhs,如果发生溢出则返回 None

Examples

基本用法:

assert_eq!((i16::MAX - 2).checked_add(1), Some(i16::MAX - 1));
assert_eq!((i16::MAX - 2).checked_add(3), None);
Run
const: unstable · source

pub unsafe fn unchecked_add(self, rhs: i16) -> i16

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

未经检查的整数加法。 假设不会发生溢出,则计算 self + rhs

Safety

当以下情况时,这导致未定义的行为 self + rhs > i16::MAX or self + rhs < i16::MIN, 即当 checked_add 将返回 None 时。

1.66.0 (const: 1.66.0) · source

pub const fn checked_add_unsigned(self, rhs: u16) -> Option<i16>

用无符号整数检查加法。 计算 self + rhs,如果发生溢出则返回 None

Examples

基本用法:

assert_eq!(1i16.checked_add_unsigned(2), Some(3));
assert_eq!((i16::MAX - 2).checked_add_unsigned(3), None);
Run
const: 1.47.0 · source

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

检查整数减法。 计算 self - rhs,如果发生溢出则返回 None

Examples

基本用法:

assert_eq!((i16::MIN + 2).checked_sub(1), Some(i16::MIN + 1));
assert_eq!((i16::MIN + 2).checked_sub(3), None);
Run
const: unstable · source

pub unsafe fn unchecked_sub(self, rhs: i16) -> i16

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

未经检查的整数减法。 假设不会发生溢出,则计算 self - rhs

Safety

当以下情况时,这导致未定义的行为 self - rhs > i16::MAX or self - rhs < i16::MIN, 即当 checked_sub 将返回 None 时。

1.66.0 (const: 1.66.0) · source

pub const fn checked_sub_unsigned(self, rhs: u16) -> Option<i16>

用无符号整数检查减法。 计算 self - rhs,如果发生溢出则返回 None

Examples

基本用法:

assert_eq!(1i16.checked_sub_unsigned(2), Some(-1));
assert_eq!((i16::MIN + 2).checked_sub_unsigned(3), None);
Run
const: 1.47.0 · source

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

检查整数乘法。 计算 self * rhs,如果发生溢出则返回 None

Examples

基本用法:

assert_eq!(i16::MAX.checked_mul(1), Some(i16::MAX));
assert_eq!(i16::MAX.checked_mul(2), None);
Run
const: unstable · source

pub unsafe fn unchecked_mul(self, rhs: i16) -> i16

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

未经检查的整数乘法。 假设不会发生溢出,则计算 self * rhs

Safety

当以下情况时,这导致未定义的行为 self * rhs > i16::MAX or self * rhs < i16::MIN, 即当 checked_mul 将返回 None 时。

const: 1.52.0 · source

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

检查整数除法。 计算 self / rhs,如果 rhs == 0 或除法导致溢出,则返回 None

Examples

基本用法:

assert_eq!((i16::MIN + 1).checked_div(-1), Some(32767));
assert_eq!(i16::MIN.checked_div(-1), None);
assert_eq!((1i16).checked_div(0), None);
Run
1.38.0 (const: 1.52.0) · source

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

检查欧几里得除法。 计算 self.div_euclid(rhs),如果 rhs == 0 或除法导致溢出,则返回 None

Examples

基本用法:

assert_eq!((i16::MIN + 1).checked_div_euclid(-1), Some(32767));
assert_eq!(i16::MIN.checked_div_euclid(-1), None);
assert_eq!((1i16).checked_div_euclid(0), None);
Run
1.7.0 (const: 1.52.0) · source

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

检查整数余数。 计算 self % rhs,如果 rhs == 0 或除法导致溢出,则返回 None

Examples

基本用法:

assert_eq!(5i16.checked_rem(2), Some(1));
assert_eq!(5i16.checked_rem(0), None);
assert_eq!(i16::MIN.checked_rem(-1), None);
Run
1.38.0 (const: 1.52.0) · source

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

检查欧几里得的余数。 计算 self.rem_euclid(rhs),如果 rhs == 0 或除法导致溢出,则返回 None

Examples

基本用法:

assert_eq!(5i16.checked_rem_euclid(2), Some(1));
assert_eq!(5i16.checked_rem_euclid(0), None);
assert_eq!(i16::MIN.checked_rem_euclid(-1), None);
Run
1.7.0 (const: 1.47.0) · source

pub const fn checked_neg(self) -> Option<i16>

检查否定。计算 -self,如果为 self == MIN,则返回 None

Examples

基本用法:

assert_eq!(5i16.checked_neg(), Some(-5));
assert_eq!(i16::MIN.checked_neg(), None);
Run
1.7.0 (const: 1.47.0) · source

pub const fn checked_shl(self, rhs: u32) -> Option<i16>

检查左移。 计算 self << rhs,如果 rhs 大于或等于 self 中的位数,则返回 None

Examples

基本用法:

assert_eq!(0x1i16.checked_shl(4), Some(0x10));
assert_eq!(0x1i16.checked_shl(129), None);
Run
const: unstable · source

pub unsafe fn unchecked_shl(self, rhs: u32) -> i16

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

未检查的左移。 计算 self << rhs,假设 rhs 小于 self 中的位数。

Safety

如果 rhs 大于或等于 self 中的位数,则会导致未定义的行为,即

checked_shl 返回 None 时。

1.7.0 (const: 1.47.0) · source

pub const fn checked_shr(self, rhs: u32) -> Option<i16>

检查右移。 计算 self >> rhs,如果 rhs 大于或等于 self 中的位数,则返回 None

Examples

基本用法:

assert_eq!(0x10i16.checked_shr(4), Some(0x1));
assert_eq!(0x10i16.checked_shr(128), None);
Run
const: unstable · source

pub unsafe fn unchecked_shr(self, rhs: u32) -> i16

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

未检查右移。 计算 self >> rhs,假设 rhs 小于 self 中的位数。

Safety

如果 rhs 大于或等于 self 中的位数,则会导致未定义的行为,即

checked_shr 返回 None 时。

1.13.0 (const: 1.47.0) · source

pub const fn checked_abs(self) -> Option<i16>

检查的绝对值。 计算 self.abs(),如果为 self == MIN,则返回 None

Examples

基本用法:

assert_eq!((-5i16).checked_abs(), Some(5));
assert_eq!(i16::MIN.checked_abs(), None);
Run
1.34.0 (const: 1.50.0) · source

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

检查取幂。 计算 self.pow(exp),如果发生溢出则返回 None

Examples

基本用法:

assert_eq!(8i16.checked_pow(2), Some(64));
assert_eq!(i16::MAX.checked_pow(2), None);
Run
const: 1.47.0 · source

pub const fn saturating_add(self, rhs: i16) -> i16

饱和整数加法。 计算 self + rhs,在数字范围内饱和,而不是溢出。

Examples

基本用法:

assert_eq!(100i16.saturating_add(1), 101);
assert_eq!(i16::MAX.saturating_add(100), i16::MAX);
assert_eq!(i16::MIN.saturating_add(-1), i16::MIN);
Run
1.66.0 (const: 1.66.0) · source

pub const fn saturating_add_unsigned(self, rhs: u16) -> i16

使用无符号整数进行饱和加法。 计算 self + rhs,在数字范围内饱和,而不是溢出。

Examples

基本用法:

assert_eq!(1i16.saturating_add_unsigned(2), 3);
assert_eq!(i16::MAX.saturating_add_unsigned(100), i16::MAX);
Run
const: 1.47.0 · source

pub const fn saturating_sub(self, rhs: i16) -> i16

饱和整数减法。 计算 self - rhs,在数字范围内饱和,而不是溢出。

Examples

基本用法:

assert_eq!(100i16.saturating_sub(127), -27);
assert_eq!(i16::MIN.saturating_sub(100), i16::MIN);
assert_eq!(i16::MAX.saturating_sub(-1), i16::MAX);
Run
1.66.0 (const: 1.66.0) · source

pub const fn saturating_sub_unsigned(self, rhs: u16) -> i16

使用无符号整数进行饱和减法。 计算 self - rhs,在数字范围内饱和,而不是溢出。

Examples

基本用法:

assert_eq!(100i16.saturating_sub_unsigned(127), -27);
assert_eq!(i16::MIN.saturating_sub_unsigned(100), i16::MIN);
Run
1.45.0 (const: 1.47.0) · source

pub const fn saturating_neg(self) -> i16

饱和整数求反。 计算 -self,如果 self == MIN 则返回 MAX 而不是溢出。

Examples

基本用法:

assert_eq!(100i16.saturating_neg(), -100);
assert_eq!((-100i16).saturating_neg(), 100);
assert_eq!(i16::MIN.saturating_neg(), i16::MAX);
assert_eq!(i16::MAX.saturating_neg(), i16::MIN + 1);
Run
1.45.0 (const: 1.47.0) · source

pub const fn saturating_abs(self) -> i16

饱和绝对值。 计算 self.abs(),如果 self == MIN 则返回 MAX 而不是溢出。

Examples

基本用法:

assert_eq!(100i16.saturating_abs(), 100);
assert_eq!((-100i16).saturating_abs(), 100);
assert_eq!(i16::MIN.saturating_abs(), i16::MAX);
assert_eq!((i16::MIN + 1).saturating_abs(), i16::MAX);
Run
1.7.0 (const: 1.47.0) · source

pub const fn saturating_mul(self, rhs: i16) -> i16

饱和整数乘法。 计算 self * rhs,在数字范围内饱和,而不是溢出。

Examples

基本用法:

assert_eq!(10i16.saturating_mul(12), 120);
assert_eq!(i16::MAX.saturating_mul(10), i16::MAX);
assert_eq!(i16::MIN.saturating_mul(10), i16::MIN);
Run
1.58.0 (const: 1.58.0) · source

pub const fn saturating_div(self, rhs: i16) -> i16

饱和整数除法。 计算 self / rhs,在数值边界处饱和而不是溢出。

Examples

基本用法:

assert_eq!(5i16.saturating_div(2), 2);
assert_eq!(i16::MAX.saturating_div(-1), i16::MIN + 1);
assert_eq!(i16::MIN.saturating_div(-1), i16::MAX);
Run
let _ = 1i16.saturating_div(0);
Run
1.34.0 (const: 1.50.0) · source

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

饱和整数幂。 计算 self.pow(exp),在数字范围内饱和,而不是溢出。

Examples

基本用法:

assert_eq!((-4i16).saturating_pow(3), -64);
assert_eq!(i16::MIN.saturating_pow(2), i16::MAX);
assert_eq!(i16::MIN.saturating_pow(3), i16::MIN);
Run
const: 1.32.0 · source

pub const fn wrapping_add(self, rhs: i16) -> i16

包装 (modular) 添加。 计算 self + rhs,在类型的边界处回绕。

Examples

基本用法:

assert_eq!(100i16.wrapping_add(27), 127);
assert_eq!(i16::MAX.wrapping_add(2), i16::MIN + 1);
Run
1.66.0 (const: 1.66.0) · source

pub const fn wrapping_add_unsigned(self, rhs: u16) -> i16

用无符号整数包装 (modular) 加法。 计算 self + rhs,在类型的边界处回绕。

Examples

基本用法:

assert_eq!(100i16.wrapping_add_unsigned(27), 127);
assert_eq!(i16::MAX.wrapping_add_unsigned(2), i16::MIN + 1);
Run
const: 1.32.0 · source

pub const fn wrapping_sub(self, rhs: i16) -> i16

包装 (modular) 减法。 计算 self - rhs,在类型的边界处回绕。

Examples

基本用法:

assert_eq!(0i16.wrapping_sub(127), -127);
assert_eq!((-2i16).wrapping_sub(i16::MAX), i16::MAX);
Run
1.66.0 (const: 1.66.0) · source

pub const fn wrapping_sub_unsigned(self, rhs: u16) -> i16

用无符号整数包装 (modular) 减法。 计算 self - rhs,在类型的边界处回绕。

Examples

基本用法:

assert_eq!(0i16.wrapping_sub_unsigned(127), -127);
assert_eq!((-2i16).wrapping_sub_unsigned(u16::MAX), -1);
Run
const: 1.32.0 · source

pub const fn wrapping_mul(self, rhs: i16) -> i16

包装 (modular) 乘法。 计算 self * rhs,在类型的边界处回绕。

Examples

基本用法:

assert_eq!(10i16.wrapping_mul(12), 120);
assert_eq!(11i8.wrapping_mul(12), -124);
Run
1.2.0 (const: 1.52.0) · source

pub const fn wrapping_div(self, rhs: i16) -> i16

包装 (modular) 分区。计算 self / rhs,在类型的边界处回绕。

可能发生这种换行的唯一情况是将 MIN / -1 除以有符号类型 (其中 MIN 是该类型的负最小值)。这等效于 -MIN,它是一个太大的正值,无法在类型中表示。 在这种情况下,此函数将返回 MIN 本身。

Panics

如果 rhs 是,这个函数会 panic 0.

Examples

基本用法:

assert_eq!(100i16.wrapping_div(10), 10);
assert_eq!((-128i8).wrapping_div(-1), -128);
Run
1.38.0 (const: 1.52.0) · source

pub const fn wrapping_div_euclid(self, rhs: i16) -> i16

包装欧几里得除法。 计算 self.div_euclid(rhs),在类型的边界处回绕。

包装只会在 MIN / -1 上的带符号类型 (其中 MIN 是该类型的负最小值) 上发生。 这等效于 -MIN,它是一个太大的正值,无法在类型中表示。 在这种情况下,此方法将返回 MIN 本身。

Panics

如果 rhs 是,这个函数会 panic 0.

Examples

基本用法:

assert_eq!(100i16.wrapping_div_euclid(10), 10);
assert_eq!((-128i8).wrapping_div_euclid(-1), -128);
Run
1.2.0 (const: 1.52.0) · source

pub const fn wrapping_rem(self, rhs: i16) -> i16

包装 (modular) 余数。计算 self % rhs,在类型的边界处回绕。

这种折回实际上在数学上从来没有发生过。实现工件会导致 x % y 对于带符号类型的 MIN / -1 无效 (其中 MIN 为负最小值)。

在这种情况下,此函数返回 0

Panics

如果 rhs 是,这个函数会 panic 0.

Examples

基本用法:

assert_eq!(100i16.wrapping_rem(10), 0);
assert_eq!((-128i8).wrapping_rem(-1), 0);
Run
1.38.0 (const: 1.52.0) · source

pub const fn wrapping_rem_euclid(self, rhs: i16) -> i16

包装欧几里得的余数。计算 self.rem_euclid(rhs),在类型的边界处回绕。

包装只会在 MIN % -1 上的带符号类型 (其中 MIN 是该类型的负最小值) 上发生。 在这种情况下,此方法返回 0.

Panics

如果 rhs 是,这个函数会 panic 0.

Examples

基本用法:

assert_eq!(100i16.wrapping_rem_euclid(10), 0);
assert_eq!((-128i8).wrapping_rem_euclid(-1), 0);
Run
1.2.0 (const: 1.32.0) · source

pub const fn wrapping_neg(self) -> i16

包装 (modular) 取反。计算 -self,在类型的边界处回绕。

可能发生这种换行的唯一情况是对有符号类型的 MIN 求反 (其中 MIN 是该类型的负最小值) ; 否则,可能会发生这种换行。这是一个太大的正值,无法在类型中表示。 在这种情况下,此函数将返回 MIN 本身。

Examples

基本用法:

assert_eq!(100i16.wrapping_neg(), -100);
assert_eq!(i16::MIN.wrapping_neg(), i16::MIN);
Run
1.2.0 (const: 1.32.0) · source

pub const fn wrapping_shl(self, rhs: u32) -> i16

无 Panic - 按位左移; 产生 self << mask(rhs),其中 mask 删除 rhs 的所有高位,这些高位将导致移位超过该类型的位宽。

注意,这与左旋不同; 环绕左移的 RHS 限于该类型的范围,而不是从 LHS 移出的位返回到另一端。

所有原始整数类型都实现了 rotate_left 函数,而您可能想要的是 rotate_left 函数。

Examples

基本用法:

assert_eq!((-1i16).wrapping_shl(7), -128);
assert_eq!((-1i16).wrapping_shl(128), -1);
Run
1.2.0 (const: 1.32.0) · source

pub const fn wrapping_shr(self, rhs: u32) -> i16

无 Panic - 按位右移; 产生 self >> mask(rhs),其中 mask 删除 rhs 的所有高位,这些高位将导致移位超过该类型的位宽。

注意,这与右旋转不同。换行右移的 RHS 限于类型的范围,而不是从 LHS 移出的位返回到另一端。

所有原始整数类型都实现了 rotate_right 函数,而您可能想要的是 rotate_right 函数。

Examples

基本用法:

assert_eq!((-128i16).wrapping_shr(7), -1);
assert_eq!((-128i16).wrapping_shr(64), -128);
Run
1.13.0 (const: 1.32.0) · source

pub const fn wrapping_abs(self) -> i16

包装 (modular) 绝对值。计算 self.abs(),在类型的边界处回绕。

可能发生这种换行的唯一情况是,当类型取负的最小值的绝对值时; 这是一个太大的正值,无法在类型中表示。 在这种情况下,此函数将返回 MIN 本身。

Examples

基本用法:

assert_eq!(100i16.wrapping_abs(), 100);
assert_eq!((-100i16).wrapping_abs(), 100);
assert_eq!(i16::MIN.wrapping_abs(), i16::MIN);
assert_eq!((-128i8).wrapping_abs() as u8, 128);
Run
1.51.0 (const: 1.51.0) · source

pub const fn unsigned_abs(self) -> u16

计算 self 的绝对值,而不会引起任何包装或 panic。

Examples

基本用法:

assert_eq!(100i16.unsigned_abs(), 100u16);
assert_eq!((-100i16).unsigned_abs(), 100u16);
assert_eq!((-128i8).unsigned_abs(), 128u8);
Run
1.34.0 (const: 1.50.0) · source

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

包装 (modular) 指数。 计算 self.pow(exp),在类型的边界处回绕。

Examples

基本用法:

assert_eq!(3i16.wrapping_pow(4), 81);
assert_eq!(3i8.wrapping_pow(5), -13);
assert_eq!(3i8.wrapping_pow(6), -39);
Run
1.7.0 (const: 1.32.0) · source

pub const fn overflowing_add(self, rhs: i16) -> (i16, bool)

计算 self + rhs

返回一个加法元组以及一个布尔值,该布尔值指示是否会发生算术溢出。 如果将发生溢出,则返回包装的值。

Examples

基本用法:

assert_eq!(5i16.overflowing_add(2), (7, false));
assert_eq!(i16::MAX.overflowing_add(1), (i16::MIN, true));
Run
const: unstable · source

pub fn carrying_add(self, rhs: i16, carry: bool) -> (i16, bool)

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

计算 self + rhs + carry 并检查溢出。

执行两个整数操作数和一个进位位的 “ternary addition”,并返回一个总和元组以及一个指示是否会发生算术溢出的布尔值。 溢出时,返回包装后的值。

这允许将多个加法链接在一起以创建更广泛的加法,并且对于 bignum 加法很有用。 这种方法应该只用于最重要的词; 对于不太重要的词,无符号方法

u16::carrying_add 应该使用。

此方法返回的输出布尔值不是进位标志,应该添加到更重要的词中。

如果输入进位为假,则此方法等同于 overflowing_add

Examples
#![feature(bigint_helper_methods)]
// 只有最重要的字被签名。
//   10  MAX    (a = 10 × 2^16 + 2^16 - 1)
// + -5    9    (b = -5 × 2^16 + 9)
// ---------
//    6    8    (sum = 6 × 2^16 + 8)

let (a1, a0): (i16, u16) = (10, u16::MAX);
let (b1, b0): (i16, u16) = (-5, 9);
let carry0 = false;

// u16::carrying_add for the less significant words
let (sum0, carry1) = a0.carrying_add(b0, carry0);
assert_eq!(carry1, true);

// i16::carrying_add for the most significant word
let (sum1, overflow) = a1.carrying_add(b1, carry1);
assert_eq!(overflow, false);

assert_eq!((sum1, sum0), (6, 8));
Run
1.66.0 (const: 1.66.0) · source

pub const fn overflowing_add_unsigned(self, rhs: u16) -> (i16, bool)

使用无符号 rhs 计算 self + rhs

返回一个加法元组以及一个布尔值,该布尔值指示是否会发生算术溢出。 如果将发生溢出,则返回包装的值。

Examples

基本用法:

assert_eq!(1i16.overflowing_add_unsigned(2), (3, false));
assert_eq!((i16::MIN).overflowing_add_unsigned(u16::MAX), (i16::MAX, false));
assert_eq!((i16::MAX - 2).overflowing_add_unsigned(3), (i16::MIN, true));
Run
1.7.0 (const: 1.32.0) · source

pub const fn overflowing_sub(self, rhs: i16) -> (i16, bool)

计算 self-rhs

返回一个减法的元组以及一个布尔值,该布尔值指示是否会发生算术溢出。 如果将发生溢出,则返回包装的值。

Examples

基本用法:

assert_eq!(5i16.overflowing_sub(2), (3, false));
assert_eq!(i16::MIN.overflowing_sub(1), (i16::MAX, true));
Run
const: unstable · source

pub fn borrowing_sub(self, rhs: i16, borrow: bool) -> (i16, bool)

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

计算 selfrhsborrow 并检查溢出。

通过从 self 中减去一个整数操作数和一个借用输入位来执行 “ternary subtraction”,并返回一个差元组以及一个指示是否会发生算术溢出的布尔值。

溢出时,返回包装后的值。

这允许将多个减法链接在一起以创建更广泛的减法,并且对于 bignum 减法很有用。 这种方法应该只用于最重要的词; 对于不太重要的词,无符号方法

u16::borrowing_sub 应该使用。

此方法返回的输出布尔值不是借用标志,应该从更重要的词中减去。

如果输入借用为 false,该方法等同于 overflowing_sub

Examples
#![feature(bigint_helper_methods)]
// 只有最重要的字被签名。
//    6    8    (a = 6 × 2^16 + 8)
// - -5    9    (b = -5 × 2^16 + 9)
// ---------
//   10  MAX    (diff = 10 × 2^16 + 2^16 - 1)

let (a1, a0): (i16, u16) = (6, 8);
let (b1, b0): (i16, u16) = (-5, 9);
let borrow0 = false;

// u16::borrowing_sub for the less significant words
let (diff0, borrow1) = a0.borrowing_sub(b0, borrow0);
assert_eq!(borrow1, true);

// i16::borrowing_sub for the most significant word
let (diff1, overflow) = a1.borrowing_sub(b1, borrow1);
assert_eq!(overflow, false);

assert_eq!((diff1, diff0), (10, u16::MAX));
Run
1.66.0 (const: 1.66.0) · source

pub const fn overflowing_sub_unsigned(self, rhs: u16) -> (i16, bool)

使用无符号 rhs 计算 self-rhs

返回一个减法的元组以及一个布尔值,该布尔值指示是否会发生算术溢出。 如果将发生溢出,则返回包装的值。

Examples

基本用法:

assert_eq!(1i16.overflowing_sub_unsigned(2), (-1, false));
assert_eq!((i16::MAX).overflowing_sub_unsigned(u16::MAX), (i16::MIN, false));
assert_eq!((i16::MIN + 2).overflowing_sub_unsigned(3), (i16::MAX, true));
Run
1.7.0 (const: 1.32.0) · source

pub const fn overflowing_mul(self, rhs: i16) -> (i16, bool)

计算 selfrhs 的乘法。

返回乘法的元组以及一个布尔值,该布尔值指示是否会发生算术溢出。 如果将发生溢出,则返回包装的值。

Examples

基本用法:

assert_eq!(5i16.overflowing_mul(2), (10, false));
assert_eq!(1_000_000_000i32.overflowing_mul(10), (1410065408, true));
Run
1.7.0 (const: 1.52.0) · source

pub const fn overflowing_div(self, rhs: i16) -> (i16, bool)

self 除以 rhs 时计算除数。

返回除数的元组以及指示是否将发生算术溢出的布尔值。 如果将发生溢出,则返回 self。

Panics

如果 rhs 是,这个函数会 panic 0.

Examples

基本用法:

assert_eq!(5i16.overflowing_div(2), (2, false));
assert_eq!(i16::MIN.overflowing_div(-1), (i16::MIN, true));
Run
1.38.0 (const: 1.52.0) · source

pub const fn overflowing_div_euclid(self, rhs: i16) -> (i16, bool)

计算欧几里得除法 self.div_euclid(rhs) 的商。

返回除数的元组以及指示是否将发生算术溢出的布尔值。 如果将发生溢出,则返回 self

Panics

如果 rhs 是,这个函数会 panic 0.

Examples

基本用法:

assert_eq!(5i16.overflowing_div_euclid(2), (2, false));
assert_eq!(i16::MIN.overflowing_div_euclid(-1), (i16::MIN, true));
Run
1.7.0 (const: 1.52.0) · source

pub const fn overflowing_rem(self, rhs: i16) -> (i16, bool)

self 除以 rhs 时计算余数。

返回除法运算后的余数元组和一个布尔值,该布尔值指示是否会发生算术溢出。 如果将发生溢出,则返回 0。

Panics

如果 rhs 是,这个函数会 panic 0.

Examples

基本用法:

assert_eq!(5i16.overflowing_rem(2), (1, false));
assert_eq!(i16::MIN.overflowing_rem(-1), (0, true));
Run
1.38.0 (const: 1.52.0) · source

pub const fn overflowing_rem_euclid(self, rhs: i16) -> (i16, bool)

溢出的欧几里得余数。计算 self.rem_euclid(rhs)

返回除法运算后的余数元组和一个布尔值,该布尔值指示是否会发生算术溢出。 如果将发生溢出,则返回 0。

Panics

如果 rhs 是,这个函数会 panic 0.

Examples

基本用法:

assert_eq!(5i16.overflowing_rem_euclid(2), (1, false));
assert_eq!(i16::MIN.overflowing_rem_euclid(-1), (0, true));
Run
1.7.0 (const: 1.32.0) · source

pub const fn overflowing_neg(self) -> (i16, bool)

否定 self,如果等于最小值,则溢出。

返回否定形式 self 的元组以及一个布尔值,该布尔值指示是否发生了溢出。 如果 self 是最小值 (例如,对于类型 i32 的值,则为 i32::MIN),则将再次返回该最小值,并且将发生溢出时返回 true

Examples

基本用法:

assert_eq!(2i16.overflowing_neg(), (-2, false));
assert_eq!(i16::MIN.overflowing_neg(), (i16::MIN, true));
Run
1.7.0 (const: 1.32.0) · source

pub const fn overflowing_shl(self, rhs: u32) -> (i16, bool)

将 self 左移 rhs 位。

返回 self 的移位版本的元组以及一个布尔值,该布尔值指示 shift 值是否大于或等于位数。 如果移位值太大,则将值屏蔽 (N-1),其中 N 是位数,然后使用该值执行移位。

Examples

基本用法:

assert_eq!(0x1i16.overflowing_shl(4), (0x10, false));
assert_eq!(0x1i32.overflowing_shl(36), (0x10, true));
Run
1.7.0 (const: 1.32.0) · source

pub const fn overflowing_shr(self, rhs: u32) -> (i16, bool)

将 self 右移 rhs 位。

返回 self 的移位版本的元组以及一个布尔值,该布尔值指示 shift 值是否大于或等于位数。 如果移位值太大,则将值屏蔽 (N-1),其中 N 是位数,然后使用该值执行移位。

Examples

基本用法:

assert_eq!(0x10i16.overflowing_shr(4), (0x1, false));
assert_eq!(0x10i32.overflowing_shr(36), (0x1, true));
Run
1.13.0 (const: 1.32.0) · source

pub const fn overflowing_abs(self) -> (i16, bool)

计算 self 的绝对值。

返回 self 的绝对版本的元组以及一个布尔值,该布尔值指示是否发生了溢出。 如果 self 是最小值 (e.g., i16::MIN for values of type i16), 然后将再次返回最小值,并在发生溢出时返回 true。

Examples

基本用法:

assert_eq!(10i16.overflowing_abs(), (10, false));
assert_eq!((-10i16).overflowing_abs(), (10, false));
assert_eq!((i16::MIN).overflowing_abs(), (i16::MIN, true));
Run
1.34.0 (const: 1.50.0) · source

pub const fn overflowing_pow(self, exp: u32) -> (i16, bool)

通过平方运算,将自己提升到 exp 的功效。

返回一个指数的元组以及一个 bool,指示是否发生了溢出。

Examples

基本用法:

assert_eq!(3i16.overflowing_pow(4), (81, false));
assert_eq!(3i8.overflowing_pow(5), (-13, true));
Run
const: 1.50.0 · source

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

通过平方运算,将自己提升到 exp 的功效。

Examples

基本用法:

let x: i16 = 2; // or any other integer type

assert_eq!(x.pow(5), 32);
Run
1.38.0 (const: 1.52.0) · source

pub const fn div_euclid(self, rhs: i16) -> i16

计算 self 的欧几里得除以 rhs 的商。

这将计算整数 q,使得 self = q * rhs + rr = self.rem_euclid(rhs)0 <= r < abs(rhs)

换句话说,结果是 self / rhs 舍入为整数 q,使得 self >= q * rhs。 如果为 self > 0,则等于舍入为零 (Rust 中的默认值) ; 如果为 self < 0,则等于朝 +/- 无限取整。

Panics

如果 rhs 为 0 或除法导致溢出,则该函数将为 panic。

Examples

基本用法:

let a: i16 = 7; // or any other integer type
let b = 4;

assert_eq!(a.div_euclid(b), 1); // 7 >= 4 * 1
assert_eq!(a.div_euclid(-b), -1); // 7 >= -4 * -1
assert_eq!((-a).div_euclid(b), -2); // -7 >= 4 * -2
assert_eq!((-a).div_euclid(-b), 2); // -7 >= -4 * 2
Run
1.38.0 (const: 1.52.0) · source

pub const fn rem_euclid(self, rhs: i16) -> i16

计算 self (mod rhs) 的最小非负余数。

就像通过欧几里得除法算法一样 - 给定 r = self.rem_euclid(rhs)self = rhs * self.div_euclid(rhs) + r0 <= r < abs(rhs)

Panics

如果 rhs 为 0 或除法导致溢出,则该函数将为 panic。

Examples

基本用法:

let a: i16 = 7; // or any other integer type
let b = 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);
Run
source

pub const fn div_floor(self, rhs: i16) -> i16

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

计算 selfrhs 的商,将结果四舍五入到负无穷大。

Panics

如果 rhs 为零,这个函数将会 panic。

溢出行为

溢出时,如果启用溢出检查 (默认在调试模式下),此函数将 panic,如果禁用溢出检查 (默认在,生产模式,下),则返回。

Examples

基本用法:

#![feature(int_roundings)]
let a: i16 = 8;
let b = 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);
Run
source

pub const fn div_ceil(self, rhs: i16) -> i16

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

计算 selfrhs 的商,将结果四舍五入到正无穷大。

Panics

如果 rhs 为零,这个函数将会 panic。

溢出行为

溢出时,如果启用溢出检查 (默认在调试模式下),此函数将 panic,如果禁用溢出检查 (默认在,生产模式,下),则返回。

Examples

基本用法:

#![feature(int_roundings)]
let a: i16 = 8;
let b = 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);
Run
source

pub const fn next_multiple_of(self, rhs: i16) -> i16

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

如果 rhs 为正数,则计算大于或等于 self 的最小值,即 rhs 的倍数。 如果 rhs 为负数,则计算小于或等于 rhs 倍数的 self 的最大值。

Panics

如果 rhs 为零,这个函数将会 panic。

溢出行为

溢出时,如果启用溢出检查 (默认在调试模式下),此函数将 panic,如果禁用溢出检查 (默认在,生产模式,下),则返回。

Examples

基本用法:

#![feature(int_roundings)]
assert_eq!(16_i16.next_multiple_of(8), 16);
assert_eq!(23_i16.next_multiple_of(8), 24);
assert_eq!(16_i16.next_multiple_of(-8), 16);
assert_eq!(23_i16.next_multiple_of(-8), 16);
assert_eq!((-16_i16).next_multiple_of(8), -16);
assert_eq!((-23_i16).next_multiple_of(8), -16);
assert_eq!((-16_i16).next_multiple_of(-8), -16);
assert_eq!((-23_i16).next_multiple_of(-8), -24);
Run
source

pub const fn checked_next_multiple_of(self, rhs: i16) -> Option<i16>

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

如果 rhs 为正数,则计算大于或等于 self 的最小值,即 rhs 的倍数。

如果 rhs 为负数,则计算小于或等于 rhs 倍数的 self 的最大值。 如果 rhs 为零,则返回 None,否则操作会导致溢出。

Examples

基本用法:

#![feature(int_roundings)]
assert_eq!(16_i16.checked_next_multiple_of(8), Some(16));
assert_eq!(23_i16.checked_next_multiple_of(8), Some(24));
assert_eq!(16_i16.checked_next_multiple_of(-8), Some(16));
assert_eq!(23_i16.checked_next_multiple_of(-8), Some(16));
assert_eq!((-16_i16).checked_next_multiple_of(8), Some(-16));
assert_eq!((-23_i16).checked_next_multiple_of(8), Some(-16));
assert_eq!((-16_i16).checked_next_multiple_of(-8), Some(-16));
assert_eq!((-23_i16).checked_next_multiple_of(-8), Some(-24));
assert_eq!(1_i16.checked_next_multiple_of(0), None);
assert_eq!(i16::MAX.checked_next_multiple_of(2), None);
Run
const: unstable · source

pub fn midpoint(self, rhs: i16) -> i16

🔬This is a nightly-only experimental API. (num_midpoint #110840)

计算 selfrhs 的中点。

midpoint(a, b)(a + b) >> 1,就好像它是在足够大的带符号整数类型中执行的一样。 这意味着结果总是向 negative 无穷大舍入,并且永远不会发生溢出。

Examples
#![feature(num_midpoint)]
assert_eq!(0i16.midpoint(4), 2);
assert_eq!(0i16.midpoint(-1), -1);
assert_eq!((-1i16).midpoint(0), -1);
Run
1.67.0 (const: 1.67.0) · source

pub const fn ilog(self, base: i16) -> u32

返回数字相对于任意底数的对数,向下取整。

由于实现细节,此方法可能未优化; ilog2 可以更有效地产生以 2 为底的结果,而 ilog10 可以更有效地产生以 10 为底的结果。

Panics

如果 self 小于或等于零,或者如果 base 小于,这个函数会 panic 2.

Examples
assert_eq!(5i16.ilog(5), 1);
Run
1.67.0 (const: 1.67.0) · source

pub const fn ilog2(self) -> u32

返回数字的以 2 为底的对数,向下取整。

Panics

如果 self 小于或等于 0,这个函数将会 panic。

Examples
assert_eq!(2i16.ilog2(), 1);
Run
1.67.0 (const: 1.67.0) · source

pub const fn ilog10(self) -> u32

返回数字的以 10 为底的对数,向下取整。

Panics

如果 self 小于或等于 0,这个函数将会 panic。

Example
assert_eq!(10i16.ilog10(), 1);
Run
1.67.0 (const: 1.67.0) · source

pub const fn checked_ilog(self, base: i16) -> Option<u32>

返回数字相对于任意底数的对数,向下取整。

如果数字为 negative 或零,或者基数不至少为,则返回 None 2.

由于实现细节,此方法可能未优化; checked_ilog2 可以更有效地产生以 2 为底的结果,而 checked_ilog10 可以更有效地产生以 10 为底的结果。

Examples
assert_eq!(5i16.checked_ilog(5), Some(1));
Run
1.67.0 (const: 1.67.0) · source

pub const fn checked_ilog2(self) -> Option<u32>

返回数字的以 2 为底的对数,向下取整。

如果数字为负数或零,则返回 None

Examples
assert_eq!(2i16.checked_ilog2(), Some(1));
Run
1.67.0 (const: 1.67.0) · source

pub const fn checked_ilog10(self) -> Option<u32>

返回数字的以 10 为底的对数,向下取整。

如果数字为负数或零,则返回 None

Example
assert_eq!(10i16.checked_ilog10(), Some(1));
Run
const: 1.32.0 · source

pub const fn abs(self) -> i16

计算 self 的绝对值。

溢出行为

的绝对值 i16::MIN 不能表示为 i16, 并尝试计算它会导致溢出。 这意味着在这种情况下,处于调试模式的代码将触发 panic,并且优化后的代码将返回

i16::MIN 没有 panic。

Examples

基本用法:

assert_eq!(10i16.abs(), 10);
assert_eq!((-10i16).abs(), 10);
Run
1.60.0 (const: 1.60.0) · source

pub const fn abs_diff(self, other: i16) -> u16

计算 selfother 之间的绝对差。

这个函数总是通过返回一个无符号整数来返回没有溢出或 panics 的正确答案。

Examples

基本用法:

assert_eq!(100i16.abs_diff(80), 20u16);
assert_eq!(100i16.abs_diff(110), 10u16);
assert_eq!((-100i16).abs_diff(80), 180u16);
assert_eq!((-100i16).abs_diff(-120), 20u16);
assert_eq!(i16::MIN.abs_diff(i16::MAX), u16::MAX);
Run
const: 1.47.0 · source

pub const fn signum(self) -> i16

返回一个表示 self 的符号的数字。

  • 0 如果数字为零
  • 1 如果数字是正数
  • -1 如果数字是负数
Examples

基本用法:

assert_eq!(10i16.signum(), 1);
assert_eq!(0i16.signum(), 0);
assert_eq!((-10i16).signum(), -1);
Run
const: 1.32.0 · source

pub const fn is_positive(self) -> bool

如果 self 为正数,则返回 true; 如果数字为零或负数,则返回 false

Examples

基本用法:

assert!(10i16.is_positive());
assert!(!(-10i16).is_positive());
Run
const: 1.32.0 · source

pub const fn is_negative(self) -> bool

如果 self 为负,则返回 true; 如果数字为零或正,则返回 false

Examples

基本用法:

assert!((-10i16).is_negative());
assert!(!10i16.is_negative());
Run
1.32.0 (const: 1.44.0) · source

pub const fn to_be_bytes(self) -> [u8; 2]

以大端 (网络) 字节顺序将这个整数的内存表示形式作为字节数组返回。

Examples
let bytes = 0x1234i16.to_be_bytes();
assert_eq!(bytes, [0x12, 0x34]);
Run
1.32.0 (const: 1.44.0) · source

pub const fn to_le_bytes(self) -> [u8; 2]

以小端字节顺序将这个整数的内存表示形式返回为字节数组。

Examples
let bytes = 0x1234i16.to_le_bytes();
assert_eq!(bytes, [0x34, 0x12]);
Run
1.32.0 (const: 1.44.0) · source

pub const fn to_ne_bytes(self) -> [u8; 2]

将此整数的内存表示作为本机字节顺序的字节数组返回。

由于使用了目标平台的原生字节序,因此,可移植代码应酌情使用 to_be_bytesto_le_bytes

Examples
let bytes = 0x1234i16.to_ne_bytes();
assert_eq!(
    bytes,
    if cfg!(target_endian = "big") {
        [0x12, 0x34]
    } else {
        [0x34, 0x12]
    }
);
Run
1.32.0 (const: 1.44.0) · source

pub const fn from_be_bytes(bytes: [u8; 2]) -> i16

从其表示形式以 big endian 的字节数组形式创建一个整数值。

Examples
let value = i16::from_be_bytes([0x12, 0x34]);
assert_eq!(value, 0x1234);
Run

从切片而不是数组开始时,可以使用容易出错的转换 API:

fn read_be_i16(input: &mut &[u8]) -> i16 {
    let (int_bytes, rest) = input.split_at(std::mem::size_of::<i16>());
    *input = rest;
    i16::from_be_bytes(int_bytes.try_into().unwrap())
}
Run
1.32.0 (const: 1.44.0) · source

pub const fn from_le_bytes(bytes: [u8; 2]) -> i16

从它的表示形式以 little endian 的字节数组形式创建一个整数值。

Examples
let value = i16::from_le_bytes([0x34, 0x12]);
assert_eq!(value, 0x1234);
Run

从切片而不是数组开始时,可以使用容易出错的转换 API:

fn read_le_i16(input: &mut &[u8]) -> i16 {
    let (int_bytes, rest) = input.split_at(std::mem::size_of::<i16>());
    *input = rest;
    i16::from_le_bytes(int_bytes.try_into().unwrap())
}
Run
1.32.0 (const: 1.44.0) · source

pub const fn from_ne_bytes(bytes: [u8; 2]) -> i16

从其内存表示形式创建一个整数值,以原生字节序表示为字节数组。

由于使用了目标平台的原生字节序,因此可移植代码可能希望酌情使用 from_be_bytesfrom_le_bytes

Examples
let value = i16::from_ne_bytes(if cfg!(target_endian = "big") {
    [0x12, 0x34]
} else {
    [0x34, 0x12]
});
assert_eq!(value, 0x1234);
Run

从切片而不是数组开始时,可以使用容易出错的转换 API:

fn read_ne_i16(input: &mut &[u8]) -> i16 {
    let (int_bytes, rest) = input.split_at(std::mem::size_of::<i16>());
    *input = rest;
    i16::from_ne_bytes(int_bytes.try_into().unwrap())
}
Run
const: 1.32.0 · source

pub const fn min_value() -> i16

👎Deprecating in a future Rust version: replaced by the MIN associated constant on this type

新代码应优先使用 i16::MIN instead.

返回此整数类型可以表示的最小值。

const: 1.32.0 · source

pub const fn max_value() -> i16

👎Deprecating in a future Rust version: replaced by the MAX associated constant on this type

新代码应优先使用 i16::MAX instead.

返回此整数类型可以表示的最大值。

Trait Implementations§

source§

impl Add<&i16> for &i16

§

type Output = <i16 as Add<i16>>::Output

应用 + 运算符后的结果类型。
source§

fn add(self, other: &i16) -> <i16 as Add<i16>>::Output

执行 + 操作。 Read more
source§

impl Add<&i16> for i16

§

type Output = <i16 as Add<i16>>::Output

应用 + 运算符后的结果类型。
source§

fn add(self, other: &i16) -> <i16 as Add<i16>>::Output

执行 + 操作。 Read more
source§

impl<'a> Add<i16> for &'a i16

§

type Output = <i16 as Add<i16>>::Output

应用 + 运算符后的结果类型。
source§

fn add(self, other: i16) -> <i16 as Add<i16>>::Output

执行 + 操作。 Read more
source§

impl Add<i16> for i16

§

type Output = i16

应用 + 运算符后的结果类型。
source§

fn add(self, other: i16) -> i16

执行 + 操作。 Read more
1.22.0 · source§

impl AddAssign<&i16> for Saturating<i16>

source§

fn add_assign(&mut self, other: &i16)

执行 += 操作。 Read more
1.22.0 · source§

impl AddAssign<&i16> for Wrapping<i16>

source§

fn add_assign(&mut self, other: &i16)

执行 += 操作。 Read more
1.22.0 · source§

impl AddAssign<&i16> for i16

source§

fn add_assign(&mut self, other: &i16)

执行 += 操作。 Read more
source§

impl AddAssign<i16> for Saturating<i16>

source§

fn add_assign(&mut self, other: i16)

执行 += 操作。 Read more
1.60.0 · source§

impl AddAssign<i16> for Wrapping<i16>

source§

fn add_assign(&mut self, other: i16)

执行 += 操作。 Read more
1.8.0 · source§

impl AddAssign<i16> for i16

source§

fn add_assign(&mut self, other: i16)

执行 += 操作。 Read more
source§

impl Binary for i16

source§

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

使用给定的格式化程序格式化该值。
source§

impl BitAnd<&i16> for &i16

§

type Output = <i16 as BitAnd<i16>>::Output

应用 & 运算符后的结果类型。
source§

fn bitand(self, other: &i16) -> <i16 as BitAnd<i16>>::Output

执行 & 操作。 Read more
source§

impl BitAnd<&i16> for i16

§

type Output = <i16 as BitAnd<i16>>::Output

应用 & 运算符后的结果类型。
source§

fn bitand(self, other: &i16) -> <i16 as BitAnd<i16>>::Output

执行 & 操作。 Read more
source§

impl<'a> BitAnd<i16> for &'a i16

§

type Output = <i16 as BitAnd<i16>>::Output

应用 & 运算符后的结果类型。
source§

fn bitand(self, other: i16) -> <i16 as BitAnd<i16>>::Output

执行 & 操作。 Read more
source§

impl BitAnd<i16> for i16

§

type Output = i16

应用 & 运算符后的结果类型。
source§

fn bitand(self, rhs: i16) -> i16

执行 & 操作。 Read more
1.22.0 · source§

impl BitAndAssign<&i16> for Saturating<i16>

source§

fn bitand_assign(&mut self, other: &i16)

执行 &= 操作。 Read more
1.22.0 · source§

impl BitAndAssign<&i16> for Wrapping<i16>

source§

fn bitand_assign(&mut self, other: &i16)

执行 &= 操作。 Read more
1.22.0 · source§

impl BitAndAssign<&i16> for i16

source§

fn bitand_assign(&mut self, other: &i16)

执行 &= 操作。 Read more
source§

impl BitAndAssign<i16> for Saturating<i16>

source§

fn bitand_assign(&mut self, other: i16)

执行 &= 操作。 Read more
1.60.0 · source§

impl BitAndAssign<i16> for Wrapping<i16>

source§

fn bitand_assign(&mut self, other: i16)

执行 &= 操作。 Read more
1.8.0 · source§

impl BitAndAssign<i16> for i16

source§

fn bitand_assign(&mut self, other: i16)

执行 &= 操作。 Read more
source§

impl BitOr<&i16> for &i16

§

type Output = <i16 as BitOr<i16>>::Output

应用 | 运算符后的结果类型。
source§

fn bitor(self, other: &i16) -> <i16 as BitOr<i16>>::Output

执行 | 操作。 Read more
source§

impl BitOr<&i16> for i16

§

type Output = <i16 as BitOr<i16>>::Output

应用 | 运算符后的结果类型。
source§

fn bitor(self, other: &i16) -> <i16 as BitOr<i16>>::Output

执行 | 操作。 Read more
1.45.0 · source§

impl BitOr<NonZeroI16> for i16

§

type Output = NonZeroI16

应用 | 运算符后的结果类型。
source§

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

执行 | 操作。 Read more
source§

impl<'a> BitOr<i16> for &'a i16

§

type Output = <i16 as BitOr<i16>>::Output

应用 | 运算符后的结果类型。
source§

fn bitor(self, other: i16) -> <i16 as BitOr<i16>>::Output

执行 | 操作。 Read more
1.45.0 · source§

impl BitOr<i16> for NonZeroI16

§

type Output = NonZeroI16

应用 | 运算符后的结果类型。
source§

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

执行 | 操作。 Read more
source§

impl BitOr<i16> for i16

§

type Output = i16

应用 | 运算符后的结果类型。
source§

fn bitor(self, rhs: i16) -> i16

执行 | 操作。 Read more
1.22.0 · source§

impl BitOrAssign<&i16> for Saturating<i16>

source§

fn bitor_assign(&mut self, other: &i16)

执行 |= 操作。 Read more
1.22.0 · source§

impl BitOrAssign<&i16> for Wrapping<i16>

source§

fn bitor_assign(&mut self, other: &i16)

执行 |= 操作。 Read more
1.22.0 · source§

impl BitOrAssign<&i16> for i16

source§

fn bitor_assign(&mut self, other: &i16)

执行 |= 操作。 Read more
1.45.0 · source§

impl BitOrAssign<i16> for NonZeroI16

source§

fn bitor_assign(&mut self, rhs: i16)

执行 |= 操作。 Read more
source§

impl BitOrAssign<i16> for Saturating<i16>

source§

fn bitor_assign(&mut self, other: i16)

执行 |= 操作。 Read more
1.60.0 · source§

impl BitOrAssign<i16> for Wrapping<i16>

source§

fn bitor_assign(&mut self, other: i16)

执行 |= 操作。 Read more
1.8.0 · source§

impl BitOrAssign<i16> for i16

source§

fn bitor_assign(&mut self, other: i16)

执行 |= 操作。 Read more
source§

impl BitXor<&i16> for &i16

§

type Output = <i16 as BitXor<i16>>::Output

应用 ^ 运算符后的结果类型。
source§

fn bitxor(self, other: &i16) -> <i16 as BitXor<i16>>::Output

执行 ^ 操作。 Read more
source§

impl BitXor<&i16> for i16

§

type Output = <i16 as BitXor<i16>>::Output

应用 ^ 运算符后的结果类型。
source§

fn bitxor(self, other: &i16) -> <i16 as BitXor<i16>>::Output

执行 ^ 操作。 Read more
source§

impl<'a> BitXor<i16> for &'a i16

§

type Output = <i16 as BitXor<i16>>::Output

应用 ^ 运算符后的结果类型。
source§

fn bitxor(self, other: i16) -> <i16 as BitXor<i16>>::Output

执行 ^ 操作。 Read more
source§

impl BitXor<i16> for i16

§

type Output = i16

应用 ^ 运算符后的结果类型。
source§

fn bitxor(self, other: i16) -> i16

执行 ^ 操作。 Read more
1.22.0 · source§

impl BitXorAssign<&i16> for Saturating<i16>

source§

fn bitxor_assign(&mut self, other: &i16)

执行 ^= 操作。 Read more
1.22.0 · source§

impl BitXorAssign<&i16> for Wrapping<i16>

source§

fn bitxor_assign(&mut self, other: &i16)

执行 ^= 操作。 Read more
1.22.0 · source§

impl BitXorAssign<&i16> for i16

source§

fn bitxor_assign(&mut self, other: &i16)

执行 ^= 操作。 Read more
source§

impl BitXorAssign<i16> for Saturating<i16>

source§

fn bitxor_assign(&mut self, other: i16)

执行 ^= 操作。 Read more
1.60.0 · source§

impl BitXorAssign<i16> for Wrapping<i16>

source§

fn bitxor_assign(&mut self, other: i16)

执行 ^= 操作。 Read more
1.8.0 · source§

impl BitXorAssign<i16> for i16

source§

fn bitxor_assign(&mut self, other: i16)

执行 ^= 操作。 Read more
source§

impl Clone for i16

source§

fn clone(&self) -> i16

返回值的副本。 Read more
source§

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

source 执行复制分配。 Read more
source§

impl Debug for i16

source§

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

使用给定的格式化程序格式化该值。 Read more
source§

impl Default for i16

source§

fn default() -> i16

Returns the default value of 0

source§

impl Display for i16

source§

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

使用给定的格式化程序格式化该值。 Read more
source§

impl Div<&i16> for &i16

§

type Output = <i16 as Div<i16>>::Output

应用 / 运算符后的结果类型。
source§

fn div(self, other: &i16) -> <i16 as Div<i16>>::Output

执行 / 操作。 Read more
source§

impl Div<&i16> for i16

§

type Output = <i16 as Div<i16>>::Output

应用 / 运算符后的结果类型。
source§

fn div(self, other: &i16) -> <i16 as Div<i16>>::Output

执行 / 操作。 Read more
source§

impl<'a> Div<i16> for &'a i16

§

type Output = <i16 as Div<i16>>::Output

应用 / 运算符后的结果类型。
source§

fn div(self, other: i16) -> <i16 as Div<i16>>::Output

执行 / 操作。 Read more
source§

impl Div<i16> for i16

此运算将舍入为零,舍去精确结果的任何小数部分。

Panics

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

§

type Output = i16

应用 / 运算符后的结果类型。
source§

fn div(self, other: i16) -> i16

执行 / 操作。 Read more
1.22.0 · source§

impl DivAssign<&i16> for Saturating<i16>

source§

fn div_assign(&mut self, other: &i16)

执行 /= 操作。 Read more
1.22.0 · source§

impl DivAssign<&i16> for Wrapping<i16>

source§

fn div_assign(&mut self, other: &i16)

执行 /= 操作。 Read more
1.22.0 · source§

impl DivAssign<&i16> for i16

source§

fn div_assign(&mut self, other: &i16)

执行 /= 操作。 Read more
source§

impl DivAssign<i16> for Saturating<i16>

source§

fn div_assign(&mut self, other: i16)

执行 /= 操作。 Read more
1.60.0 · source§

impl DivAssign<i16> for Wrapping<i16>

source§

fn div_assign(&mut self, other: i16)

执行 /= 操作。 Read more
1.8.0 · source§

impl DivAssign<i16> for i16

source§

fn div_assign(&mut self, other: i16)

执行 /= 操作。 Read more
1.31.0 · source§

impl From<NonZeroI16> for i16

source§

fn from(nonzero: NonZeroI16) -> i16

Converts a NonZeroI16 into an i16

1.28.0 · source§

impl From<bool> for i16

source§

fn from(small: bool) -> i16

Converts a bool to a i16. The resulting value is 0 for false and 1 for true values.

Examples
assert_eq!(i16::from(true), 1);
assert_eq!(i16::from(false), 0);
Run
1.34.0 · source§

impl From<i16> for AtomicI16

source§

fn from(v: i16) -> AtomicI16

Converts an i16 into an AtomicI16.

1.6.0 · source§

impl From<i16> for f32

source§

fn from(small: i16) -> f32

Converts i16 to f32 losslessly.

1.6.0 · source§

impl From<i16> for f64

source§

fn from(small: i16) -> f64

Converts i16 to f64 losslessly.

1.26.0 · source§

impl From<i16> for i128

source§

fn from(small: i16) -> i128

Converts i16 to i128 losslessly.

1.5.0 · source§

impl From<i16> for i32

source§

fn from(small: i16) -> i32

Converts i16 to i32 losslessly.

1.5.0 · source§

impl From<i16> for i64

source§

fn from(small: i16) -> i64

Converts i16 to i64 losslessly.

1.26.0 · source§

impl From<i16> for isize

source§

fn from(small: i16) -> isize

Converts i16 to isize losslessly.

1.5.0 · source§

impl From<i8> for i16

source§

fn from(small: i8) -> i16

Converts i8 to i16 losslessly.

1.5.0 · source§

impl From<u8> for i16

source§

fn from(small: u8) -> i16

Converts u8 to i16 losslessly.

source§

impl FromStr for i16

§

type Err = ParseIntError

可以从解析中返回的相关错误。
source§

fn from_str(src: &str) -> Result<i16, ParseIntError>

解析字符串 s 以返回此类型的值。 Read more
source§

impl Hash for i16

source§

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

将该值输入给定的 HasherRead more
source§

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

将这种类型的切片送入给定的 Hasher 中。 Read more
1.42.0 · source§

impl LowerExp for i16

source§

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

使用给定的格式化程序格式化该值。
source§

impl LowerHex for i16

source§

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

使用给定的格式化程序格式化该值。
source§

impl Mul<&i16> for &i16

§

type Output = <i16 as Mul<i16>>::Output

应用 * 运算符后的结果类型。
source§

fn mul(self, other: &i16) -> <i16 as Mul<i16>>::Output

执行 * 操作。 Read more
source§

impl Mul<&i16> for i16

§

type Output = <i16 as Mul<i16>>::Output

应用 * 运算符后的结果类型。
source§

fn mul(self, other: &i16) -> <i16 as Mul<i16>>::Output

执行 * 操作。 Read more
source§

impl<'a> Mul<i16> for &'a i16

§

type Output = <i16 as Mul<i16>>::Output

应用 * 运算符后的结果类型。
source§

fn mul(self, other: i16) -> <i16 as Mul<i16>>::Output

执行 * 操作。 Read more
source§

impl Mul<i16> for i16

§

type Output = i16

应用 * 运算符后的结果类型。
source§

fn mul(self, other: i16) -> i16

执行 * 操作。 Read more
1.22.0 · source§

impl MulAssign<&i16> for Saturating<i16>

source§

fn mul_assign(&mut self, other: &i16)

执行 *= 操作。 Read more
1.22.0 · source§

impl MulAssign<&i16> for Wrapping<i16>

source§

fn mul_assign(&mut self, other: &i16)

执行 *= 操作。 Read more
1.22.0 · source§

impl MulAssign<&i16> for i16

source§

fn mul_assign(&mut self, other: &i16)

执行 *= 操作。 Read more
source§

impl MulAssign<i16> for Saturating<i16>

source§

fn mul_assign(&mut self, other: i16)

执行 *= 操作。 Read more
1.60.0 · source§

impl MulAssign<i16> for Wrapping<i16>

source§

fn mul_assign(&mut self, other: i16)

执行 *= 操作。 Read more
1.8.0 · source§

impl MulAssign<i16> for i16

source§

fn mul_assign(&mut self, other: i16)

执行 *= 操作。 Read more
source§

impl Neg for &i16

§

type Output = <i16 as Neg>::Output

应用 - 运算符后的结果类型。
source§

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

执行一元 - 运算。 Read more
source§

impl Neg for i16

§

type Output = i16

应用 - 运算符后的结果类型。
source§

fn neg(self) -> i16

执行一元 - 运算。 Read more
source§

impl Not for &i16

§

type Output = <i16 as Not>::Output

应用 ! 运算符后的结果类型。
source§

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

执行一元 ! 操作。 Read more
source§

impl Not for i16

§

type Output = i16

应用 ! 运算符后的结果类型。
source§

fn not(self) -> i16

执行一元 ! 操作。 Read more
source§

impl Octal for i16

source§

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

使用给定的格式化程序格式化该值。
source§

impl Ord for i16

source§

fn cmp(&self, other: &i16) -> Ordering

此方法返回 selfother 之间的 OrderingRead more
1.21.0 · source§

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

比较并返回两个值中的最大值。 Read more
1.21.0 · source§

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

比较并返回两个值中的最小值。 Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>,

将值限制在某个时间间隔内。 Read more
source§

impl PartialEq<i16> for i16

source§

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

此方法测试 selfother 值是否相等,并由 == 使用。
source§

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

此方法测试 !=。 默认实现几乎总是足够的,并且不应在没有充分理由的情况下被覆盖。
source§

impl PartialOrd<i16> for i16

source§

fn partial_cmp(&self, other: &i16) -> Option<Ordering>

如果存在,则此方法返回 selfother 值之间的顺序。 Read more
source§

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

此方法测试的内容少于 (对于 selfother),并且由 < 操作员使用。 Read more
source§

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

此方法测试小于或等于 (对于 selfother),并且由 <= 运算符使用。 Read more
source§

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

此方法测试是否大于或等于 (对于 selfother),并且由 >= 运算符使用。 Read more
source§

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

此方法测试大于 (对于 selfother),并且由 > 操作员使用。 Read more
1.12.0 · source§

impl<'a> Product<&'a i16> for i16

source§

fn product<I>(iter: I) -> i16where I: Iterator<Item = &'a i16>,

该方法采用迭代器并通过乘以项从元素生成 Self
1.12.0 · source§

impl Product<i16> for i16

source§

fn product<I>(iter: I) -> i16where I: Iterator<Item = i16>,

该方法采用迭代器并通过乘以项从元素生成 Self
source§

impl Rem<&i16> for &i16

§

type Output = <i16 as Rem<i16>>::Output

应用 % 运算符后的结果类型。
source§

fn rem(self, other: &i16) -> <i16 as Rem<i16>>::Output

执行 % 操作。 Read more
source§

impl Rem<&i16> for i16

§

type Output = <i16 as Rem<i16>>::Output

应用 % 运算符后的结果类型。
source§

fn rem(self, other: &i16) -> <i16 as Rem<i16>>::Output

执行 % 操作。 Read more
source§

impl<'a> Rem<i16> for &'a i16

§

type Output = <i16 as Rem<i16>>::Output

应用 % 运算符后的结果类型。
source§

fn rem(self, other: i16) -> <i16 as Rem<i16>>::Output

执行 % 操作。 Read more
source§

impl Rem<i16> for i16

此操作满足 n % d == n - (n / d) * d。 结果具有与左操作数相同的符号。

Panics

This operation will panic if other == 0 or if self / other results in overflow.

§

type Output = i16

应用 % 运算符后的结果类型。
source§

fn rem(self, other: i16) -> i16

执行 % 操作。 Read more
1.22.0 · source§

impl RemAssign<&i16> for Saturating<i16>

source§

fn rem_assign(&mut self, other: &i16)

执行 %= 操作。 Read more
1.22.0 · source§

impl RemAssign<&i16> for Wrapping<i16>

source§

fn rem_assign(&mut self, other: &i16)

执行 %= 操作。 Read more
1.22.0 · source§

impl RemAssign<&i16> for i16

source§

fn rem_assign(&mut self, other: &i16)

执行 %= 操作。 Read more
source§

impl RemAssign<i16> for Saturating<i16>

source§

fn rem_assign(&mut self, other: i16)

执行 %= 操作。 Read more
1.60.0 · source§

impl RemAssign<i16> for Wrapping<i16>

source§

fn rem_assign(&mut self, other: i16)

执行 %= 操作。 Read more
1.8.0 · source§

impl RemAssign<i16> for i16

source§

fn rem_assign(&mut self, other: i16)

执行 %= 操作。 Read more
source§

impl Shl<&i128> for &i16

§

type Output = <i16 as Shl<i128>>::Output

应用 << 运算符后的结果类型。
source§

fn shl(self, other: &i128) -> <i16 as Shl<i128>>::Output

执行 << 操作。 Read more
source§

impl Shl<&i128> for i16

§

type Output = <i16 as Shl<i128>>::Output

应用 << 运算符后的结果类型。
source§

fn shl(self, other: &i128) -> <i16 as Shl<i128>>::Output

执行 << 操作。 Read more
source§

impl Shl<&i16> for &i128

§

type Output = <i128 as Shl<i16>>::Output

应用 << 运算符后的结果类型。
source§

fn shl(self, other: &i16) -> <i128 as Shl<i16>>::Output

执行 << 操作。 Read more
source§

impl Shl<&i16> for &i16

§

type Output = <i16 as Shl<i16>>::Output

应用 << 运算符后的结果类型。
source§

fn shl(self, other: &i16) -> <i16 as Shl<i16>>::Output

执行 << 操作。 Read more
source§

impl Shl<&i16> for &i32

§

type Output = <i32 as Shl<i16>>::Output

应用 << 运算符后的结果类型。
source§

fn shl(self, other: &i16) -> <i32 as Shl<i16>>::Output

执行 << 操作。 Read more
source§

impl Shl<&i16> for &i64

§

type Output = <i64 as Shl<i16>>::Output

应用 << 运算符后的结果类型。
source§

fn shl(self, other: &i16) -> <i64 as Shl<i16>>::Output

执行 << 操作。 Read more
source§

impl Shl<&i16> for &i8

§

type Output = <i8 as Shl<i16>>::Output

应用 << 运算符后的结果类型。
source§

fn shl(self, other: &i16) -> <i8 as Shl<i16>>::Output

执行 << 操作。 Read more
source§

impl Shl<&i16> for &isize

§

type Output = <isize as Shl<i16>>::Output

应用 << 运算符后的结果类型。
source§

fn shl(self, other: &i16) -> <isize as Shl<i16>>::Output

执行 << 操作。 Read more
source§

impl Shl<&i16> for &u128

§

type Output = <u128 as Shl<i16>>::Output

应用 << 运算符后的结果类型。
source§

fn shl(self, other: &i16) -> <u128 as Shl<i16>>::Output

执行 << 操作。 Read more
source§

impl Shl<&i16> for &u16

§

type Output = <u16 as Shl<i16>>::Output

应用 << 运算符后的结果类型。
source§

fn shl(self, other: &i16) -> <u16 as Shl<i16>>::Output

执行 << 操作。 Read more
source§

impl Shl<&i16> for &u32

§

type Output = <u32 as Shl<i16>>::Output

应用 << 运算符后的结果类型。
source§

fn shl(self, other: &i16) -> <u32 as Shl<i16>>::Output

执行 << 操作。 Read more
source§

impl Shl<&i16> for &u64

§

type Output = <u64 as Shl<i16>>::Output

应用 << 运算符后的结果类型。
source§

fn shl(self, other: &i16) -> <u64 as Shl<i16>>::Output

执行 << 操作。 Read more
source§

impl Shl<&i16> for &u8

§

type Output = <u8 as Shl<i16>>::Output

应用 << 运算符后的结果类型。
source§

fn shl(self, other: &i16) -> <u8 as Shl<i16>>::Output

执行 << 操作。 Read more
source§

impl Shl<&i16> for &usize

§

type Output = <usize as Shl<i16>>::Output

应用 << 运算符后的结果类型。
source§

fn shl(self, other: &i16) -> <usize as Shl<i16>>::Output

执行 << 操作。 Read more
source§

impl Shl<&i16> for i128

§

type Output = <i128 as Shl<i16>>::Output

应用 << 运算符后的结果类型。
source§

fn shl(self, other: &i16) -> <i128 as Shl<i16>>::Output

执行 << 操作。 Read more
source§

impl Shl<&i16> for i16

§

type Output = <i16 as Shl<i16>>::Output

应用 << 运算符后的结果类型。
source§

fn shl(self, other: &i16) -> <i16 as Shl<i16>>::Output

执行 << 操作。 Read more
source§

impl Shl<&i16> for i32

§

type Output = <i32 as Shl<i16>>::Output

应用 << 运算符后的结果类型。
source§

fn shl(self, other: &i16) -> <i32 as Shl<i16>>::Output

执行 << 操作。 Read more
source§

impl Shl<&i16> for i64

§

type Output = <i64 as Shl<i16>>::Output

应用 << 运算符后的结果类型。
source§

fn shl(self, other: &i16) -> <i64 as Shl<i16>>::Output

执行 << 操作。 Read more
source§

impl Shl<&i16> for i8

§

type Output = <i8 as Shl<i16>>::Output

应用 << 运算符后的结果类型。
source§

fn shl(self, other: &i16) -> <i8 as Shl<i16>>::Output

执行 << 操作。 Read more
source§

impl Shl<&i16> for isize

§

type Output = <isize as Shl<i16>>::Output

应用 << 运算符后的结果类型。
source§

fn shl(self, other: &i16) -> <isize as Shl<i16>>::Output

执行 << 操作。 Read more
source§

impl Shl<&i16> for u128

§

type Output = <u128 as Shl<i16>>::Output

应用 << 运算符后的结果类型。
source§

fn shl(self, other: &i16) -> <u128 as Shl<i16>>::Output

执行 << 操作。 Read more
source§

impl Shl<&i16> for u16

§

type Output = <u16 as Shl<i16>>::Output

应用 << 运算符后的结果类型。
source§

fn shl(self, other: &i16) -> <u16 as Shl<i16>>::Output

执行 << 操作。 Read more
source§

impl Shl<&i16> for u32

§

type Output = <u32 as Shl<i16>>::Output

应用 << 运算符后的结果类型。
source§

fn shl(self, other: &i16) -> <u32 as Shl<i16>>::Output

执行 << 操作。 Read more
source§

impl Shl<&i16> for u64

§

type Output = <u64 as Shl<i16>>::Output

应用 << 运算符后的结果类型。
source§

fn shl(self, other: &i16) -> <u64 as Shl<i16>>::Output

执行 << 操作。 Read more
source§

impl Shl<&i16> for u8

§

type Output = <u8 as Shl<i16>>::Output

应用 << 运算符后的结果类型。
source§

fn shl(self, other: &i16) -> <u8 as Shl<i16>>::Output

执行 << 操作。 Read more
source§

impl Shl<&i16> for usize

§

type Output = <usize as Shl<i16>>::Output

应用 << 运算符后的结果类型。
source§

fn shl(self, other: &i16) -> <usize as Shl<i16>>::Output

执行 << 操作。 Read more
source§

impl Shl<&i32> for &i16

§

type Output = <i16 as Shl<i32>>::Output

应用 << 运算符后的结果类型。
source§

fn shl(self, other: &i32) -> <i16 as Shl<i32>>::Output

执行 << 操作。 Read more
source§

impl Shl<&i32> for i16

§

type Output = <i16 as Shl<i32>>::Output

应用 << 运算符后的结果类型。
source§

fn shl(self, other: &i32) -> <i16 as Shl<i32>>::Output

执行 << 操作。 Read more
source§

impl Shl<&i64> for &i16

§

type Output = <i16 as Shl<i64>>::Output

应用 << 运算符后的结果类型。
source§

fn shl(self, other: &i64) -> <i16 as Shl<i64>>::Output

执行 << 操作。 Read more
source§

impl Shl<&i64> for i16

§

type Output = <i16 as Shl<i64>>::Output

应用 << 运算符后的结果类型。
source§

fn shl(self, other: &i64) -> <i16 as Shl<i64>>::Output

执行 << 操作。 Read more
source§

impl Shl<&i8> for &i16

§

type Output = <i16 as Shl<i8>>::Output

应用 << 运算符后的结果类型。
source§

fn shl(self, other: &i8) -> <i16 as Shl<i8>>::Output

执行 << 操作。 Read more
source§

impl Shl<&i8> for i16

§

type Output = <i16 as Shl<i8>>::Output

应用 << 运算符后的结果类型。
source§

fn shl(self, other: &i8) -> <i16 as Shl<i8>>::Output

执行 << 操作。 Read more
source§

impl Shl<&isize> for &i16

§

type Output = <i16 as Shl<isize>>::Output

应用 << 运算符后的结果类型。
source§

fn shl(self, other: &isize) -> <i16 as Shl<isize>>::Output

执行 << 操作。 Read more
source§

impl Shl<&isize> for i16

§

type Output = <i16 as Shl<isize>>::Output

应用 << 运算符后的结果类型。
source§

fn shl(self, other: &isize) -> <i16 as Shl<isize>>::Output

执行 << 操作。 Read more
source§

impl Shl<&u128> for &i16

§

type Output = <i16 as Shl<u128>>::Output

应用 << 运算符后的结果类型。
source§

fn shl(self, other: &u128) -> <i16 as Shl<u128>>::Output

执行 << 操作。 Read more
source§

impl Shl<&u128> for i16

§

type Output = <i16 as Shl<u128>>::Output

应用 << 运算符后的结果类型。
source§

fn shl(self, other: &u128) -> <i16 as Shl<u128>>::Output

执行 << 操作。 Read more
source§

impl Shl<&u16> for &i16

§

type Output = <i16 as Shl<u16>>::Output

应用 << 运算符后的结果类型。
source§

fn shl(self, other: &u16) -> <i16 as Shl<u16>>::Output

执行 << 操作。 Read more
source§

impl Shl<&u16> for i16

§

type Output = <i16 as Shl<u16>>::Output

应用 << 运算符后的结果类型。
source§

fn shl(self, other: &u16) -> <i16 as Shl<u16>>::Output

执行 << 操作。 Read more
source§

impl Shl<&u32> for &i16

§

type Output = <i16 as Shl<u32>>::Output

应用 << 运算符后的结果类型。
source§

fn shl(self, other: &u32) -> <i16 as Shl<u32>>::Output

执行 << 操作。 Read more
source§

impl Shl<&u32> for i16

§

type Output = <i16 as Shl<u32>>::Output

应用 << 运算符后的结果类型。
source§

fn shl(self, other: &u32) -> <i16 as Shl<u32>>::Output

执行 << 操作。 Read more
source§

impl Shl<&u64> for &i16

§

type Output = <i16 as Shl<u64>>::Output

应用 << 运算符后的结果类型。
source§

fn shl(self, other: &u64) -> <i16 as Shl<u64>>::Output

执行 << 操作。 Read more
source§

impl Shl<&u64> for i16

§

type Output = <i16 as Shl<u64>>::Output

应用 << 运算符后的结果类型。
source§

fn shl(self, other: &u64) -> <i16 as Shl<u64>>::Output

执行 << 操作。 Read more
source§

impl Shl<&u8> for &i16

§

type Output = <i16 as Shl<u8>>::Output

应用 << 运算符后的结果类型。
source§

fn shl(self, other: &u8) -> <i16 as Shl<u8>>::Output

执行 << 操作。 Read more
source§

impl Shl<&u8> for i16

§

type Output = <i16 as Shl<u8>>::Output

应用 << 运算符后的结果类型。
source§

fn shl(self, other: &u8) -> <i16 as Shl<u8>>::Output

执行 << 操作。 Read more
source§

impl Shl<&usize> for &i16

§

type Output = <i16 as Shl<usize>>::Output

应用 << 运算符后的结果类型。
source§

fn shl(self, other: &usize) -> <i16 as Shl<usize>>::Output

执行 << 操作。 Read more
source§

impl Shl<&usize> for i16

§

type Output = <i16 as Shl<usize>>::Output

应用 << 运算符后的结果类型。
source§

fn shl(self, other: &usize) -> <i16 as Shl<usize>>::Output

执行 << 操作。 Read more
source§

impl<'a> Shl<i128> for &'a i16

§

type Output = <i16 as Shl<i128>>::Output

应用 << 运算符后的结果类型。
source§

fn shl(self, other: i128) -> <i16 as Shl<i128>>::Output

执行 << 操作。 Read more
source§

impl Shl<i128> for i16

§

type Output = i16

应用 << 运算符后的结果类型。
source§

fn shl(self, other: i128) -> i16

执行 << 操作。 Read more
source§

impl<'a> Shl<i16> for &'a i128

§

type Output = <i128 as Shl<i16>>::Output

应用 << 运算符后的结果类型。
source§

fn shl(self, other: i16) -> <i128 as Shl<i16>>::Output

执行 << 操作。 Read more
source§

impl<'a> Shl<i16> for &'a i16

§

type Output = <i16 as Shl<i16>>::Output

应用 << 运算符后的结果类型。
source§

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

执行 << 操作。 Read more
source§

impl<'a> Shl<i16> for &'a i32

§

type Output = <i32 as Shl<i16>>::Output

应用 << 运算符后的结果类型。
source§

fn shl(self, other: i16) -> <i32 as Shl<i16>>::Output

执行 << 操作。 Read more
source§

impl<'a> Shl<i16> for &'a i64

§

type Output = <i64 as Shl<i16>>::Output

应用 << 运算符后的结果类型。
source§

fn shl(self, other: i16) -> <i64 as Shl<i16>>::Output

执行 << 操作。 Read more
source§

impl<'a> Shl<i16> for &'a i8

§

type Output = <i8 as Shl<i16>>::Output

应用 << 运算符后的结果类型。
source§

fn shl(self, other: i16) -> <i8 as Shl<i16>>::Output

执行 << 操作。 Read more
source§

impl<'a> Shl<i16> for &'a isize

§

type Output = <isize as Shl<i16>>::Output

应用 << 运算符后的结果类型。
source§

fn shl(self, other: i16) -> <isize as Shl<i16>>::Output

执行 << 操作。 Read more
source§

impl<'a> Shl<i16> for &'a u128

§

type Output = <u128 as Shl<i16>>::Output

应用 << 运算符后的结果类型。
source§

fn shl(self, other: i16) -> <u128 as Shl<i16>>::Output

执行 << 操作。 Read more
source§

impl<'a> Shl<i16> for &'a u16

§

type Output = <u16 as Shl<i16>>::Output

应用 << 运算符后的结果类型。
source§

fn shl(self, other: i16) -> <u16 as Shl<i16>>::Output

执行 << 操作。 Read more
source§

impl<'a> Shl<i16> for &'a u32

§

type Output = <u32 as Shl<i16>>::Output

应用 << 运算符后的结果类型。
source§

fn shl(self, other: i16) -> <u32 as Shl<i16>>::Output

执行 << 操作。 Read more
source§

impl<'a> Shl<i16> for &'a u64

§

type Output = <u64 as Shl<i16>>::Output

应用 << 运算符后的结果类型。
source§

fn shl(self, other: i16) -> <u64 as Shl<i16>>::Output

执行 << 操作。 Read more
source§

impl<'a> Shl<i16> for &'a u8

§

type Output = <u8 as Shl<i16>>::Output

应用 << 运算符后的结果类型。
source§

fn shl(self, other: i16) -> <u8 as Shl<i16>>::Output

执行 << 操作。 Read more
source§

impl<'a> Shl<i16> for &'a usize

§

type Output = <usize as Shl<i16>>::Output

应用 << 运算符后的结果类型。
source§

fn shl(self, other: i16) -> <usize as Shl<i16>>::Output

执行 << 操作。 Read more
source§

impl Shl<i16> for i128

§

type Output = i128

应用 << 运算符后的结果类型。
source§

fn shl(self, other: i16) -> i128

执行 << 操作。 Read more
source§

impl Shl<i16> for i16

§

type Output = i16

应用 << 运算符后的结果类型。
source§

fn shl(self, other: i16) -> i16

执行 << 操作。 Read more
source§

impl Shl<i16> for i32

§

type Output = i32

应用 << 运算符后的结果类型。
source§

fn shl(self, other: i16) -> i32

执行 << 操作。 Read more
source§

impl Shl<i16> for i64

§

type Output = i64

应用 << 运算符后的结果类型。
source§

fn shl(self, other: i16) -> i64

执行 << 操作。 Read more
source§

impl Shl<i16> for i8

§

type Output = i8

应用 << 运算符后的结果类型。
source§

fn shl(self, other: i16) -> i8

执行 << 操作。 Read more
source§

impl Shl<i16> for isize

§

type Output = isize

应用 << 运算符后的结果类型。
source§

fn shl(self, other: i16) -> isize

执行 << 操作。 Read more
source§

impl Shl<i16> for u128

§

type Output = u128

应用 << 运算符后的结果类型。
source§

fn shl(self, other: i16) -> u128

执行 << 操作。 Read more
source§

impl Shl<i16> for u16

§

type Output = u16

应用 << 运算符后的结果类型。
source§

fn shl(self, other: i16) -> u16

执行 << 操作。 Read more
source§

impl Shl<i16> for u32

§

type Output = u32

应用 << 运算符后的结果类型。
source§

fn shl(self, other: i16) -> u32

执行 << 操作。 Read more
source§

impl Shl<i16> for u64

§

type Output = u64

应用 << 运算符后的结果类型。
source§

fn shl(self, other: i16) -> u64

执行 << 操作。 Read more
source§

impl Shl<i16> for u8

§

type Output = u8

应用 << 运算符后的结果类型。
source§

fn shl(self, other: i16) -> u8

执行 << 操作。 Read more
source§

impl Shl<i16> for usize

§

type Output = usize

应用 << 运算符后的结果类型。
source§

fn shl(self, other: i16) -> usize

执行 << 操作。 Read more
source§

impl<'a> Shl<i32> for &'a i16

§

type Output = <i16 as Shl<i32>>::Output

应用 << 运算符后的结果类型。
source§

fn shl(self, other: i32) -> <i16 as Shl<i32>>::Output

执行 << 操作。 Read more
source§

impl Shl<i32> for i16

§

type Output = i16

应用 << 运算符后的结果类型。
source§

fn shl(self, other: i32) -> i16

执行 << 操作。 Read more
source§

impl<'a> Shl<i64> for &'a i16

§

type Output = <i16 as Shl<i64>>::Output

应用 << 运算符后的结果类型。
source§

fn shl(self, other: i64) -> <i16 as Shl<i64>>::Output

执行 << 操作。 Read more
source§

impl Shl<i64> for i16

§

type Output = i16

应用 << 运算符后的结果类型。
source§

fn shl(self, other: i64) -> i16

执行 << 操作。 Read more
source§

impl<'a> Shl<i8> for &'a i16

§

type Output = <i16 as Shl<i8>>::Output

应用 << 运算符后的结果类型。
source§

fn shl(self, other: i8) -> <i16 as Shl<i8>>::Output

执行 << 操作。 Read more
source§

impl Shl<i8> for i16

§

type Output = i16

应用 << 运算符后的结果类型。
source§

fn shl(self, other: i8) -> i16

执行 << 操作。 Read more
source§

impl<'a> Shl<isize> for &'a i16

§

type Output = <i16 as Shl<isize>>::Output

应用 << 运算符后的结果类型。
source§

fn shl(self, other: isize) -> <i16 as Shl<isize>>::Output

执行 << 操作。 Read more
source§

impl Shl<isize> for i16

§

type Output = i16

应用 << 运算符后的结果类型。
source§

fn shl(self, other: isize) -> i16

执行 << 操作。 Read more
source§

impl<'a> Shl<u128> for &'a i16

§

type Output = <i16 as Shl<u128>>::Output

应用 << 运算符后的结果类型。
source§

fn shl(self, other: u128) -> <i16 as Shl<u128>>::Output

执行 << 操作。 Read more
source§

impl Shl<u128> for i16

§

type Output = i16

应用 << 运算符后的结果类型。
source§

fn shl(self, other: u128) -> i16

执行 << 操作。 Read more
source§

impl<'a> Shl<u16> for &'a i16

§

type Output = <i16 as Shl<u16>>::Output

应用 << 运算符后的结果类型。
source§

fn shl(self, other: u16) -> <i16 as Shl<u16>>::Output

执行 << 操作。 Read more
source§

impl Shl<u16> for i16

§

type Output = i16

应用 << 运算符后的结果类型。
source§

fn shl(self, other: u16) -> i16

执行 << 操作。 Read more
source§

impl<'a> Shl<u32> for &'a i16

§

type Output = <i16 as Shl<u32>>::Output

应用 << 运算符后的结果类型。
source§

fn shl(self, other: u32) -> <i16 as Shl<u32>>::Output

执行 << 操作。 Read more
source§

impl Shl<u32> for i16

§

type Output = i16

应用 << 运算符后的结果类型。
source§

fn shl(self, other: u32) -> i16

执行 << 操作。 Read more
source§

impl<'a> Shl<u64> for &'a i16

§

type Output = <i16 as Shl<u64>>::Output

应用 << 运算符后的结果类型。
source§

fn shl(self, other: u64) -> <i16 as Shl<u64>>::Output

执行 << 操作。 Read more
source§

impl Shl<u64> for i16

§

type Output = i16

应用 << 运算符后的结果类型。
source§

fn shl(self, other: u64) -> i16

执行 << 操作。 Read more
source§

impl<'a> Shl<u8> for &'a i16

§

type Output = <i16 as Shl<u8>>::Output

应用 << 运算符后的结果类型。
source§

fn shl(self, other: u8) -> <i16 as Shl<u8>>::Output

执行 << 操作。 Read more
source§

impl Shl<u8> for i16

§

type Output = i16

应用 << 运算符后的结果类型。
source§

fn shl(self, other: u8) -> i16

执行 << 操作。 Read more
source§

impl<'a> Shl<usize> for &'a i16

§

type Output = <i16 as Shl<usize>>::Output

应用 << 运算符后的结果类型。
source§

fn shl(self, other: usize) -> <i16 as Shl<usize>>::Output

执行 << 操作。 Read more
source§

impl Shl<usize> for i16

§

type Output = i16

应用 << 运算符后的结果类型。
source§

fn shl(self, other: usize) -> i16

执行 << 操作。 Read more
1.22.0 · source§

impl ShlAssign<&i128> for i16

source§

fn shl_assign(&mut self, other: &i128)

执行 <<= 操作。 Read more
1.22.0 · source§

impl ShlAssign<&i16> for i128

source§

fn shl_assign(&mut self, other: &i16)

执行 <<= 操作。 Read more
1.22.0 · source§

impl ShlAssign<&i16> for i16

source§

fn shl_assign(&mut self, other: &i16)

执行 <<= 操作。 Read more
1.22.0 · source§

impl ShlAssign<&i16> for i32

source§

fn shl_assign(&mut self, other: &i16)

执行 <<= 操作。 Read more
1.22.0 · source§

impl ShlAssign<&i16> for i64

source§

fn shl_assign(&mut self, other: &i16)

执行 <<= 操作。 Read more
1.22.0 · source§

impl ShlAssign<&i16> for i8

source§

fn shl_assign(&mut self, other: &i16)

执行 <<= 操作。 Read more
1.22.0 · source§

impl ShlAssign<&i16> for isize

source§

fn shl_assign(&mut self, other: &i16)

执行 <<= 操作。 Read more
1.22.0 · source§

impl ShlAssign<&i16> for u128

source§

fn shl_assign(&mut self, other: &i16)

执行 <<= 操作。 Read more
1.22.0 · source§

impl ShlAssign<&i16> for u16

source§

fn shl_assign(&mut self, other: &i16)

执行 <<= 操作。 Read more
1.22.0 · source§

impl ShlAssign<&i16> for u32

source§

fn shl_assign(&mut self, other: &i16)

执行 <<= 操作。 Read more
1.22.0 · source§

impl ShlAssign<&i16> for u64

source§

fn shl_assign(&mut self, other: &i16)

执行 <<= 操作。 Read more
1.22.0 · source§

impl ShlAssign<&i16> for u8

source§

fn shl_assign(&mut self, other: &i16)

执行 <<= 操作。 Read more
1.22.0 · source§

impl ShlAssign<&i16> for usize

source§

fn shl_assign(&mut self, other: &i16)

执行 <<= 操作。 Read more
1.22.0 · source§

impl ShlAssign<&i32> for i16

source§

fn shl_assign(&mut self, other: &i32)

执行 <<= 操作。 Read more
1.22.0 · source§

impl ShlAssign<&i64> for i16

source§

fn shl_assign(&mut self, other: &i64)

执行 <<= 操作。 Read more
1.22.0 · source§

impl ShlAssign<&i8> for i16

source§

fn shl_assign(&mut self, other: &i8)

执行 <<= 操作。 Read more
1.22.0 · source§

impl ShlAssign<&isize> for i16

source§

fn shl_assign(&mut self, other: &isize)

执行 <<= 操作。 Read more
1.22.0 · source§

impl ShlAssign<&u128> for i16

source§

fn shl_assign(&mut self, other: &u128)

执行 <<= 操作。 Read more
1.22.0 · source§

impl ShlAssign<&u16> for i16

source§

fn shl_assign(&mut self, other: &u16)

执行 <<= 操作。 Read more
1.22.0 · source§

impl ShlAssign<&u32> for i16

source§

fn shl_assign(&mut self, other: &u32)

执行 <<= 操作。 Read more
1.22.0 · source§

impl ShlAssign<&u64> for i16

source§

fn shl_assign(&mut self, other: &u64)

执行 <<= 操作。 Read more
1.22.0 · source§

impl ShlAssign<&u8> for i16

source§

fn shl_assign(&mut self, other: &u8)

执行 <<= 操作。 Read more
1.22.0 · source§

impl ShlAssign<&usize> for i16

source§

fn shl_assign(&mut self, other: &usize)

执行 <<= 操作。 Read more
1.8.0 · source§

impl ShlAssign<i128> for i16

source§

fn shl_assign(&mut self, other: i128)

执行 <<= 操作。 Read more
1.8.0 · source§

impl ShlAssign<i16> for i128

source§

fn shl_assign(&mut self, other: i16)

执行 <<= 操作。 Read more
1.8.0 · source§

impl ShlAssign<i16> for i16

source§

fn shl_assign(&mut self, other: i16)

执行 <<= 操作。 Read more
1.8.0 · source§

impl ShlAssign<i16> for i32

source§

fn shl_assign(&mut self, other: i16)

执行 <<= 操作。 Read more
1.8.0 · source§

impl ShlAssign<i16> for i64

source§

fn shl_assign(&mut self, other: i16)

执行 <<= 操作。 Read more
1.8.0 · source§

impl ShlAssign<i16> for i8

source§

fn shl_assign(&mut self, other: i16)

执行 <<= 操作。 Read more
1.8.0 · source§

impl ShlAssign<i16> for isize

source§

fn shl_assign(&mut self, other: i16)

执行 <<= 操作。 Read more
1.8.0 · source§

impl ShlAssign<i16> for u128

source§

fn shl_assign(&mut self, other: i16)

执行 <<= 操作。 Read more
1.8.0 · source§

impl ShlAssign<i16> for u16

source§

fn shl_assign(&mut self, other: i16)

执行 <<= 操作。 Read more
1.8.0 · source§

impl ShlAssign<i16> for u32

source§

fn shl_assign(&mut self, other: i16)

执行 <<= 操作。 Read more
1.8.0 · source§

impl ShlAssign<i16> for u64

source§

fn shl_assign(&mut self, other: i16)

执行 <<= 操作。 Read more
1.8.0 · source§

impl ShlAssign<i16> for u8

source§

fn shl_assign(&mut self, other: i16)

执行 <<= 操作。 Read more
1.8.0 · source§

impl ShlAssign<i16> for usize

source§

fn shl_assign(&mut self, other: i16)

执行 <<= 操作。 Read more
1.8.0 · source§

impl ShlAssign<i32> for i16

source§

fn shl_assign(&mut self, other: i32)

执行 <<= 操作。 Read more
1.8.0 · source§

impl ShlAssign<i64> for i16

source§

fn shl_assign(&mut self, other: i64)

执行 <<= 操作。 Read more
1.8.0 · source§

impl ShlAssign<i8> for i16

source§

fn shl_assign(&mut self, other: i8)

执行 <<= 操作。 Read more
1.8.0 · source§

impl ShlAssign<isize> for i16

source§

fn shl_assign(&mut self, other: isize)

执行 <<= 操作。 Read more
1.8.0 · source§

impl ShlAssign<u128> for i16

source§

fn shl_assign(&mut self, other: u128)

执行 <<= 操作。 Read more
1.8.0 · source§

impl ShlAssign<u16> for i16

source§

fn shl_assign(&mut self, other: u16)

执行 <<= 操作。 Read more
1.8.0 · source§

impl ShlAssign<u32> for i16

source§

fn shl_assign(&mut self, other: u32)

执行 <<= 操作。 Read more
1.8.0 · source§

impl ShlAssign<u64> for i16

source§

fn shl_assign(&mut self, other: u64)

执行 <<= 操作。 Read more
1.8.0 · source§

impl ShlAssign<u8> for i16

source§

fn shl_assign(&mut self, other: u8)

执行 <<= 操作。 Read more
1.8.0 · source§

impl ShlAssign<usize> for i16

source§

fn shl_assign(&mut self, other: usize)

执行 <<= 操作。 Read more
source§

impl Shr<&i128> for &i16

§

type Output = <i16 as Shr<i128>>::Output

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: &i128) -> <i16 as Shr<i128>>::Output

执行 >> 操作。 Read more
source§

impl Shr<&i128> for i16

§

type Output = <i16 as Shr<i128>>::Output

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: &i128) -> <i16 as Shr<i128>>::Output

执行 >> 操作。 Read more
source§

impl Shr<&i16> for &i128

§

type Output = <i128 as Shr<i16>>::Output

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: &i16) -> <i128 as Shr<i16>>::Output

执行 >> 操作。 Read more
source§

impl Shr<&i16> for &i16

§

type Output = <i16 as Shr<i16>>::Output

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: &i16) -> <i16 as Shr<i16>>::Output

执行 >> 操作。 Read more
source§

impl Shr<&i16> for &i32

§

type Output = <i32 as Shr<i16>>::Output

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: &i16) -> <i32 as Shr<i16>>::Output

执行 >> 操作。 Read more
source§

impl Shr<&i16> for &i64

§

type Output = <i64 as Shr<i16>>::Output

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: &i16) -> <i64 as Shr<i16>>::Output

执行 >> 操作。 Read more
source§

impl Shr<&i16> for &i8

§

type Output = <i8 as Shr<i16>>::Output

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: &i16) -> <i8 as Shr<i16>>::Output

执行 >> 操作。 Read more
source§

impl Shr<&i16> for &isize

§

type Output = <isize as Shr<i16>>::Output

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: &i16) -> <isize as Shr<i16>>::Output

执行 >> 操作。 Read more
source§

impl Shr<&i16> for &u128

§

type Output = <u128 as Shr<i16>>::Output

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: &i16) -> <u128 as Shr<i16>>::Output

执行 >> 操作。 Read more
source§

impl Shr<&i16> for &u16

§

type Output = <u16 as Shr<i16>>::Output

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: &i16) -> <u16 as Shr<i16>>::Output

执行 >> 操作。 Read more
source§

impl Shr<&i16> for &u32

§

type Output = <u32 as Shr<i16>>::Output

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: &i16) -> <u32 as Shr<i16>>::Output

执行 >> 操作。 Read more
source§

impl Shr<&i16> for &u64

§

type Output = <u64 as Shr<i16>>::Output

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: &i16) -> <u64 as Shr<i16>>::Output

执行 >> 操作。 Read more
source§

impl Shr<&i16> for &u8

§

type Output = <u8 as Shr<i16>>::Output

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: &i16) -> <u8 as Shr<i16>>::Output

执行 >> 操作。 Read more
source§

impl Shr<&i16> for &usize

§

type Output = <usize as Shr<i16>>::Output

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: &i16) -> <usize as Shr<i16>>::Output

执行 >> 操作。 Read more
source§

impl Shr<&i16> for i128

§

type Output = <i128 as Shr<i16>>::Output

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: &i16) -> <i128 as Shr<i16>>::Output

执行 >> 操作。 Read more
source§

impl Shr<&i16> for i16

§

type Output = <i16 as Shr<i16>>::Output

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: &i16) -> <i16 as Shr<i16>>::Output

执行 >> 操作。 Read more
source§

impl Shr<&i16> for i32

§

type Output = <i32 as Shr<i16>>::Output

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: &i16) -> <i32 as Shr<i16>>::Output

执行 >> 操作。 Read more
source§

impl Shr<&i16> for i64

§

type Output = <i64 as Shr<i16>>::Output

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: &i16) -> <i64 as Shr<i16>>::Output

执行 >> 操作。 Read more
source§

impl Shr<&i16> for i8

§

type Output = <i8 as Shr<i16>>::Output

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: &i16) -> <i8 as Shr<i16>>::Output

执行 >> 操作。 Read more
source§

impl Shr<&i16> for isize

§

type Output = <isize as Shr<i16>>::Output

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: &i16) -> <isize as Shr<i16>>::Output

执行 >> 操作。 Read more
source§

impl Shr<&i16> for u128

§

type Output = <u128 as Shr<i16>>::Output

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: &i16) -> <u128 as Shr<i16>>::Output

执行 >> 操作。 Read more
source§

impl Shr<&i16> for u16

§

type Output = <u16 as Shr<i16>>::Output

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: &i16) -> <u16 as Shr<i16>>::Output

执行 >> 操作。 Read more
source§

impl Shr<&i16> for u32

§

type Output = <u32 as Shr<i16>>::Output

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: &i16) -> <u32 as Shr<i16>>::Output

执行 >> 操作。 Read more
source§

impl Shr<&i16> for u64

§

type Output = <u64 as Shr<i16>>::Output

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: &i16) -> <u64 as Shr<i16>>::Output

执行 >> 操作。 Read more
source§

impl Shr<&i16> for u8

§

type Output = <u8 as Shr<i16>>::Output

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: &i16) -> <u8 as Shr<i16>>::Output

执行 >> 操作。 Read more
source§

impl Shr<&i16> for usize

§

type Output = <usize as Shr<i16>>::Output

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: &i16) -> <usize as Shr<i16>>::Output

执行 >> 操作。 Read more
source§

impl Shr<&i32> for &i16

§

type Output = <i16 as Shr<i32>>::Output

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: &i32) -> <i16 as Shr<i32>>::Output

执行 >> 操作。 Read more
source§

impl Shr<&i32> for i16

§

type Output = <i16 as Shr<i32>>::Output

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: &i32) -> <i16 as Shr<i32>>::Output

执行 >> 操作。 Read more
source§

impl Shr<&i64> for &i16

§

type Output = <i16 as Shr<i64>>::Output

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: &i64) -> <i16 as Shr<i64>>::Output

执行 >> 操作。 Read more
source§

impl Shr<&i64> for i16

§

type Output = <i16 as Shr<i64>>::Output

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: &i64) -> <i16 as Shr<i64>>::Output

执行 >> 操作。 Read more
source§

impl Shr<&i8> for &i16

§

type Output = <i16 as Shr<i8>>::Output

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: &i8) -> <i16 as Shr<i8>>::Output

执行 >> 操作。 Read more
source§

impl Shr<&i8> for i16

§

type Output = <i16 as Shr<i8>>::Output

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: &i8) -> <i16 as Shr<i8>>::Output

执行 >> 操作。 Read more
source§

impl Shr<&isize> for &i16

§

type Output = <i16 as Shr<isize>>::Output

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: &isize) -> <i16 as Shr<isize>>::Output

执行 >> 操作。 Read more
source§

impl Shr<&isize> for i16

§

type Output = <i16 as Shr<isize>>::Output

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: &isize) -> <i16 as Shr<isize>>::Output

执行 >> 操作。 Read more
source§

impl Shr<&u128> for &i16

§

type Output = <i16 as Shr<u128>>::Output

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: &u128) -> <i16 as Shr<u128>>::Output

执行 >> 操作。 Read more
source§

impl Shr<&u128> for i16

§

type Output = <i16 as Shr<u128>>::Output

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: &u128) -> <i16 as Shr<u128>>::Output

执行 >> 操作。 Read more
source§

impl Shr<&u16> for &i16

§

type Output = <i16 as Shr<u16>>::Output

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: &u16) -> <i16 as Shr<u16>>::Output

执行 >> 操作。 Read more
source§

impl Shr<&u16> for i16

§

type Output = <i16 as Shr<u16>>::Output

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: &u16) -> <i16 as Shr<u16>>::Output

执行 >> 操作。 Read more
source§

impl Shr<&u32> for &i16

§

type Output = <i16 as Shr<u32>>::Output

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: &u32) -> <i16 as Shr<u32>>::Output

执行 >> 操作。 Read more
source§

impl Shr<&u32> for i16

§

type Output = <i16 as Shr<u32>>::Output

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: &u32) -> <i16 as Shr<u32>>::Output

执行 >> 操作。 Read more
source§

impl Shr<&u64> for &i16

§

type Output = <i16 as Shr<u64>>::Output

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: &u64) -> <i16 as Shr<u64>>::Output

执行 >> 操作。 Read more
source§

impl Shr<&u64> for i16

§

type Output = <i16 as Shr<u64>>::Output

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: &u64) -> <i16 as Shr<u64>>::Output

执行 >> 操作。 Read more
source§

impl Shr<&u8> for &i16

§

type Output = <i16 as Shr<u8>>::Output

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: &u8) -> <i16 as Shr<u8>>::Output

执行 >> 操作。 Read more
source§

impl Shr<&u8> for i16

§

type Output = <i16 as Shr<u8>>::Output

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: &u8) -> <i16 as Shr<u8>>::Output

执行 >> 操作。 Read more
source§

impl Shr<&usize> for &i16

§

type Output = <i16 as Shr<usize>>::Output

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: &usize) -> <i16 as Shr<usize>>::Output

执行 >> 操作。 Read more
source§

impl Shr<&usize> for i16

§

type Output = <i16 as Shr<usize>>::Output

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: &usize) -> <i16 as Shr<usize>>::Output

执行 >> 操作。 Read more
source§

impl<'a> Shr<i128> for &'a i16

§

type Output = <i16 as Shr<i128>>::Output

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: i128) -> <i16 as Shr<i128>>::Output

执行 >> 操作。 Read more
source§

impl Shr<i128> for i16

§

type Output = i16

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: i128) -> i16

执行 >> 操作。 Read more
source§

impl<'a> Shr<i16> for &'a i128

§

type Output = <i128 as Shr<i16>>::Output

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: i16) -> <i128 as Shr<i16>>::Output

执行 >> 操作。 Read more
source§

impl<'a> Shr<i16> for &'a i16

§

type Output = <i16 as Shr<i16>>::Output

应用 >> 运算符后的结果类型。
source§

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

执行 >> 操作。 Read more
source§

impl<'a> Shr<i16> for &'a i32

§

type Output = <i32 as Shr<i16>>::Output

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: i16) -> <i32 as Shr<i16>>::Output

执行 >> 操作。 Read more
source§

impl<'a> Shr<i16> for &'a i64

§

type Output = <i64 as Shr<i16>>::Output

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: i16) -> <i64 as Shr<i16>>::Output

执行 >> 操作。 Read more
source§

impl<'a> Shr<i16> for &'a i8

§

type Output = <i8 as Shr<i16>>::Output

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: i16) -> <i8 as Shr<i16>>::Output

执行 >> 操作。 Read more
source§

impl<'a> Shr<i16> for &'a isize

§

type Output = <isize as Shr<i16>>::Output

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: i16) -> <isize as Shr<i16>>::Output

执行 >> 操作。 Read more
source§

impl<'a> Shr<i16> for &'a u128

§

type Output = <u128 as Shr<i16>>::Output

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: i16) -> <u128 as Shr<i16>>::Output

执行 >> 操作。 Read more
source§

impl<'a> Shr<i16> for &'a u16

§

type Output = <u16 as Shr<i16>>::Output

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: i16) -> <u16 as Shr<i16>>::Output

执行 >> 操作。 Read more
source§

impl<'a> Shr<i16> for &'a u32

§

type Output = <u32 as Shr<i16>>::Output

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: i16) -> <u32 as Shr<i16>>::Output

执行 >> 操作。 Read more
source§

impl<'a> Shr<i16> for &'a u64

§

type Output = <u64 as Shr<i16>>::Output

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: i16) -> <u64 as Shr<i16>>::Output

执行 >> 操作。 Read more
source§

impl<'a> Shr<i16> for &'a u8

§

type Output = <u8 as Shr<i16>>::Output

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: i16) -> <u8 as Shr<i16>>::Output

执行 >> 操作。 Read more
source§

impl<'a> Shr<i16> for &'a usize

§

type Output = <usize as Shr<i16>>::Output

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: i16) -> <usize as Shr<i16>>::Output

执行 >> 操作。 Read more
source§

impl Shr<i16> for i128

§

type Output = i128

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: i16) -> i128

执行 >> 操作。 Read more
source§

impl Shr<i16> for i16

§

type Output = i16

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: i16) -> i16

执行 >> 操作。 Read more
source§

impl Shr<i16> for i32

§

type Output = i32

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: i16) -> i32

执行 >> 操作。 Read more
source§

impl Shr<i16> for i64

§

type Output = i64

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: i16) -> i64

执行 >> 操作。 Read more
source§

impl Shr<i16> for i8

§

type Output = i8

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: i16) -> i8

执行 >> 操作。 Read more
source§

impl Shr<i16> for isize

§

type Output = isize

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: i16) -> isize

执行 >> 操作。 Read more
source§

impl Shr<i16> for u128

§

type Output = u128

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: i16) -> u128

执行 >> 操作。 Read more
source§

impl Shr<i16> for u16

§

type Output = u16

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: i16) -> u16

执行 >> 操作。 Read more
source§

impl Shr<i16> for u32

§

type Output = u32

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: i16) -> u32

执行 >> 操作。 Read more
source§

impl Shr<i16> for u64

§

type Output = u64

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: i16) -> u64

执行 >> 操作。 Read more
source§

impl Shr<i16> for u8

§

type Output = u8

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: i16) -> u8

执行 >> 操作。 Read more
source§

impl Shr<i16> for usize

§

type Output = usize

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: i16) -> usize

执行 >> 操作。 Read more
source§

impl<'a> Shr<i32> for &'a i16

§

type Output = <i16 as Shr<i32>>::Output

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: i32) -> <i16 as Shr<i32>>::Output

执行 >> 操作。 Read more
source§

impl Shr<i32> for i16

§

type Output = i16

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: i32) -> i16

执行 >> 操作。 Read more
source§

impl<'a> Shr<i64> for &'a i16

§

type Output = <i16 as Shr<i64>>::Output

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: i64) -> <i16 as Shr<i64>>::Output

执行 >> 操作。 Read more
source§

impl Shr<i64> for i16

§

type Output = i16

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: i64) -> i16

执行 >> 操作。 Read more
source§

impl<'a> Shr<i8> for &'a i16

§

type Output = <i16 as Shr<i8>>::Output

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: i8) -> <i16 as Shr<i8>>::Output

执行 >> 操作。 Read more
source§

impl Shr<i8> for i16

§

type Output = i16

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: i8) -> i16

执行 >> 操作。 Read more
source§

impl<'a> Shr<isize> for &'a i16

§

type Output = <i16 as Shr<isize>>::Output

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: isize) -> <i16 as Shr<isize>>::Output

执行 >> 操作。 Read more
source§

impl Shr<isize> for i16

§

type Output = i16

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: isize) -> i16

执行 >> 操作。 Read more
source§

impl<'a> Shr<u128> for &'a i16

§

type Output = <i16 as Shr<u128>>::Output

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: u128) -> <i16 as Shr<u128>>::Output

执行 >> 操作。 Read more
source§

impl Shr<u128> for i16

§

type Output = i16

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: u128) -> i16

执行 >> 操作。 Read more
source§

impl<'a> Shr<u16> for &'a i16

§

type Output = <i16 as Shr<u16>>::Output

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: u16) -> <i16 as Shr<u16>>::Output

执行 >> 操作。 Read more
source§

impl Shr<u16> for i16

§

type Output = i16

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: u16) -> i16

执行 >> 操作。 Read more
source§

impl<'a> Shr<u32> for &'a i16

§

type Output = <i16 as Shr<u32>>::Output

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: u32) -> <i16 as Shr<u32>>::Output

执行 >> 操作。 Read more
source§

impl Shr<u32> for i16

§

type Output = i16

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: u32) -> i16

执行 >> 操作。 Read more
source§

impl<'a> Shr<u64> for &'a i16

§

type Output = <i16 as Shr<u64>>::Output

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: u64) -> <i16 as Shr<u64>>::Output

执行 >> 操作。 Read more
source§

impl Shr<u64> for i16

§

type Output = i16

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: u64) -> i16

执行 >> 操作。 Read more
source§

impl<'a> Shr<u8> for &'a i16

§

type Output = <i16 as Shr<u8>>::Output

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: u8) -> <i16 as Shr<u8>>::Output

执行 >> 操作。 Read more
source§

impl Shr<u8> for i16

§

type Output = i16

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: u8) -> i16

执行 >> 操作。 Read more
source§

impl<'a> Shr<usize> for &'a i16

§

type Output = <i16 as Shr<usize>>::Output

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: usize) -> <i16 as Shr<usize>>::Output

执行 >> 操作。 Read more
source§

impl Shr<usize> for i16

§

type Output = i16

应用 >> 运算符后的结果类型。
source§

fn shr(self, other: usize) -> i16

执行 >> 操作。 Read more
1.22.0 · source§

impl ShrAssign<&i128> for i16

source§

fn shr_assign(&mut self, other: &i128)

执行 >>= 操作。 Read more
1.22.0 · source§

impl ShrAssign<&i16> for i128

source§

fn shr_assign(&mut self, other: &i16)

执行 >>= 操作。 Read more
1.22.0 · source§

impl ShrAssign<&i16> for i16

source§

fn shr_assign(&mut self, other: &i16)

执行 >>= 操作。 Read more
1.22.0 · source§

impl ShrAssign<&i16> for i32

source§

fn shr_assign(&mut self, other: &i16)

执行 >>= 操作。 Read more
1.22.0 · source§

impl ShrAssign<&i16> for i64

source§

fn shr_assign(&mut self, other: &i16)

执行 >>= 操作。 Read more
1.22.0 · source§

impl ShrAssign<&i16> for i8

source§

fn shr_assign(&mut self, other: &i16)

执行 >>= 操作。 Read more
1.22.0 · source§

impl ShrAssign<&i16> for isize

source§

fn shr_assign(&mut self, other: &i16)

执行 >>= 操作。 Read more
1.22.0 · source§

impl ShrAssign<&i16> for u128

source§

fn shr_assign(&mut self, other: &i16)

执行 >>= 操作。 Read more
1.22.0 · source§

impl ShrAssign<&i16> for u16

source§

fn shr_assign(&mut self, other: &i16)

执行 >>= 操作。 Read more
1.22.0 · source§

impl ShrAssign<&i16> for u32

source§

fn shr_assign(&mut self, other: &i16)

执行 >>= 操作。 Read more
1.22.0 · source§

impl ShrAssign<&i16> for u64

source§

fn shr_assign(&mut self, other: &i16)

执行 >>= 操作。 Read more
1.22.0 · source§

impl ShrAssign<&i16> for u8

source§

fn shr_assign(&mut self, other: &i16)

执行 >>= 操作。 Read more
1.22.0 · source§

impl ShrAssign<&i16> for usize

source§

fn shr_assign(&mut self, other: &i16)

执行 >>= 操作。 Read more
1.22.0 · source§

impl ShrAssign<&i32> for i16

source§

fn shr_assign(&mut self, other: &i32)

执行 >>= 操作。 Read more
1.22.0 · source§

impl ShrAssign<&i64> for i16

source§

fn shr_assign(&mut self, other: &i64)

执行 >>= 操作。 Read more
1.22.0 · source§

impl ShrAssign<&i8> for i16

source§

fn shr_assign(&mut self, other: &i8)

执行 >>= 操作。 Read more
1.22.0 · source§

impl ShrAssign<&isize> for i16

source§

fn shr_assign(&mut self, other: &isize)

执行 >>= 操作。 Read more
1.22.0 · source§

impl ShrAssign<&u128> for i16

source§

fn shr_assign(&mut self, other: &u128)

执行 >>= 操作。 Read more
1.22.0 · source§

impl ShrAssign<&u16> for i16

source§

fn shr_assign(&mut self, other: &u16)

执行 >>= 操作。 Read more
1.22.0 · source§

impl ShrAssign<&u32> for i16

source§

fn shr_assign(&mut self, other: &u32)

执行 >>= 操作。 Read more
1.22.0 · source§

impl ShrAssign<&u64> for i16

source§

fn shr_assign(&mut self, other: &u64)

执行 >>= 操作。 Read more
1.22.0 · source§

impl ShrAssign<&u8> for i16

source§

fn shr_assign(&mut self, other: &u8)

执行 >>= 操作。 Read more
1.22.0 · source§

impl ShrAssign<&usize> for i16

source§

fn shr_assign(&mut self, other: &usize)

执行 >>= 操作。 Read more
1.8.0 · source§

impl ShrAssign<i128> for i16

source§

fn shr_assign(&mut self, other: i128)

执行 >>= 操作。 Read more
1.8.0 · source§

impl ShrAssign<i16> for i128

source§

fn shr_assign(&mut self, other: i16)

执行 >>= 操作。 Read more
1.8.0 · source§

impl ShrAssign<i16> for i16

source§

fn shr_assign(&mut self, other: i16)

执行 >>= 操作。 Read more
1.8.0 · source§

impl ShrAssign<i16> for i32

source§

fn shr_assign(&mut self, other: i16)

执行 >>= 操作。 Read more
1.8.0 · source§

impl ShrAssign<i16> for i64

source§

fn shr_assign(&mut self, other: i16)

执行 >>= 操作。 Read more
1.8.0 · source§

impl ShrAssign<i16> for i8

source§

fn shr_assign(&mut self, other: i16)

执行 >>= 操作。 Read more
1.8.0 · source§

impl ShrAssign<i16> for isize

source§

fn shr_assign(&mut self, other: i16)

执行 >>= 操作。 Read more
1.8.0 · source§

impl ShrAssign<i16> for u128

source§

fn shr_assign(&mut self, other: i16)

执行 >>= 操作。 Read more
1.8.0 · source§

impl ShrAssign<i16> for u16

source§

fn shr_assign(&mut self, other: i16)

执行 >>= 操作。 Read more
1.8.0 · source§

impl ShrAssign<i16> for u32

source§

fn shr_assign(&mut self, other: i16)

执行 >>= 操作。 Read more
1.8.0 · source§

impl ShrAssign<i16> for u64

source§

fn shr_assign(&mut self, other: i16)

执行 >>= 操作。 Read more
1.8.0 · source§

impl ShrAssign<i16> for u8

source§

fn shr_assign(&mut self, other: i16)

执行 >>= 操作。 Read more
1.8.0 · source§

impl ShrAssign<i16> for usize

source§

fn shr_assign(&mut self, other: i16)

执行 >>= 操作。 Read more
1.8.0 · source§

impl ShrAssign<i32> for i16

source§

fn shr_assign(&mut self, other: i32)

执行 >>= 操作。 Read more
1.8.0 · source§

impl ShrAssign<i64> for i16

source§

fn shr_assign(&mut self, other: i64)

执行 >>= 操作。 Read more
1.8.0 · source§

impl ShrAssign<i8> for i16

source§

fn shr_assign(&mut self, other: i8)

执行 >>= 操作。 Read more
1.8.0 · source§

impl ShrAssign<isize> for i16

source§

fn shr_assign(&mut self, other: isize)

执行 >>= 操作。 Read more
1.8.0 · source§

impl ShrAssign<u128> for i16

source§

fn shr_assign(&mut self, other: u128)

执行 >>= 操作。 Read more
1.8.0 · source§

impl ShrAssign<u16> for i16

source§

fn shr_assign(&mut self, other: u16)

执行 >>= 操作。 Read more
1.8.0 · source§

impl ShrAssign<u32> for i16

source§

fn shr_assign(&mut self, other: u32)

执行 >>= 操作。 Read more
1.8.0 · source§

impl ShrAssign<u64> for i16

source§

fn shr_assign(&mut self, other: u64)

执行 >>= 操作。 Read more
1.8.0 · source§

impl ShrAssign<u8> for i16

source§

fn shr_assign(&mut self, other: u8)

执行 >>= 操作。 Read more
1.8.0 · source§

impl ShrAssign<usize> for i16

source§

fn shr_assign(&mut self, other: usize)

执行 >>= 操作。 Read more
source§

impl SimdElement for i16

§

type Mask = i16

🔬This is a nightly-only experimental API. (portable_simd #86656)
此元素类型对应的掩码元素类型。
source§

impl Step for i16

source§

unsafe fn forward_unchecked(start: i16, n: usize) -> i16

🔬This is a nightly-only experimental API. (step_trait #42168)
返回通过将 self countsuccessor 而获得的值。 Read more
source§

unsafe fn backward_unchecked(start: i16, n: usize) -> i16

🔬This is a nightly-only experimental API. (step_trait #42168)
返回通过获取 self count 次的 predecessor 而获得的值。 Read more
source§

fn forward(start: i16, n: usize) -> i16

🔬This is a nightly-only experimental API. (step_trait #42168)
返回通过将 self countsuccessor 而获得的值。 Read more
source§

fn backward(start: i16, n: usize) -> i16

🔬This is a nightly-only experimental API. (step_trait #42168)
返回通过获取 self count 次的 predecessor 而获得的值。 Read more
source§

fn steps_between(start: &i16, end: &i16) -> Option<usize>

🔬This is a nightly-only experimental API. (step_trait #42168)
返回从 startend 所需的 successor 步骤的数量。 Read more
source§

fn forward_checked(start: i16, n: usize) -> Option<i16>

🔬This is a nightly-only experimental API. (step_trait #42168)
返回通过将 self countsuccessor 而获得的值。 Read more
source§

fn backward_checked(start: i16, n: usize) -> Option<i16>

🔬This is a nightly-only experimental API. (step_trait #42168)
返回通过获取 self count 次的 predecessor 而获得的值。 Read more
source§

impl Sub<&i16> for &i16

§

type Output = <i16 as Sub<i16>>::Output

应用 - 运算符后的结果类型。
source§

fn sub(self, other: &i16) -> <i16 as Sub<i16>>::Output

执行 - 操作。 Read more
source§

impl Sub<&i16> for i16

§

type Output = <i16 as Sub<i16>>::Output

应用 - 运算符后的结果类型。
source§

fn sub(self, other: &i16) -> <i16 as Sub<i16>>::Output

执行 - 操作。 Read more
source§

impl<'a> Sub<i16> for &'a i16

§

type Output = <i16 as Sub<i16>>::Output

应用 - 运算符后的结果类型。
source§

fn sub(self, other: i16) -> <i16 as Sub<i16>>::Output

执行 - 操作。 Read more
source§

impl Sub<i16> for i16

§

type Output = i16

应用 - 运算符后的结果类型。
source§

fn sub(self, other: i16) -> i16

执行 - 操作。 Read more
1.22.0 · source§

impl SubAssign<&i16> for Saturating<i16>

source§

fn sub_assign(&mut self, other: &i16)

执行 -= 操作。 Read more
1.22.0 · source§

impl SubAssign<&i16> for Wrapping<i16>

source§

fn sub_assign(&mut self, other: &i16)

执行 -= 操作。 Read more
1.22.0 · source§

impl SubAssign<&i16> for i16

source§

fn sub_assign(&mut self, other: &i16)

执行 -= 操作。 Read more
source§

impl SubAssign<i16> for Saturating<i16>

source§

fn sub_assign(&mut self, other: i16)

执行 -= 操作。 Read more
1.60.0 · source§

impl SubAssign<i16> for Wrapping<i16>

source§

fn sub_assign(&mut self, other: i16)

执行 -= 操作。 Read more
1.8.0 · source§

impl SubAssign<i16> for i16

source§

fn sub_assign(&mut self, other: i16)

执行 -= 操作。 Read more
1.12.0 · source§

impl<'a> Sum<&'a i16> for i16

source§

fn sum<I>(iter: I) -> i16where I: Iterator<Item = &'a i16>,

使用迭代器并通过 “summing up” 项从元素生成 Self 的方法。
1.12.0 · source§

impl Sum<i16> for i16

source§

fn sum<I>(iter: I) -> i16where I: Iterator<Item = i16>,

使用迭代器并通过 “summing up” 项从元素生成 Self 的方法。
1.34.0 · source§

impl TryFrom<i128> for i16

source§

fn try_from(u: i128) -> Result<i16, <i16 as TryFrom<i128>>::Error>

尝试从源号码类型创建目标号码类型。 如果源值超出目标类型的范围,则返回错误。

§

type Error = TryFromIntError

发生转换错误时返回的类型。
1.46.0 · source§

impl TryFrom<i16> for NonZeroI16

source§

fn try_from( value: i16 ) -> Result<NonZeroI16, <NonZeroI16 as TryFrom<i16>>::Error>

Attempts to convert i16 to NonZeroI16.

§

type Error = TryFromIntError

发生转换错误时返回的类型。
1.34.0 · source§

impl TryFrom<i16> for i8

source§

fn try_from(u: i16) -> Result<i8, <i8 as TryFrom<i16>>::Error>

尝试从源号码类型创建目标号码类型。 如果源值超出目标类型的范围,则返回错误。

§

type Error = TryFromIntError

发生转换错误时返回的类型。
1.34.0 · source§

impl TryFrom<i16> for u128

source§

fn try_from(u: i16) -> Result<u128, <u128 as TryFrom<i16>>::Error>

尝试从源号码类型创建目标号码类型。 如果源值超出目标类型的范围,则返回错误。

§

type Error = TryFromIntError

发生转换错误时返回的类型。
1.34.0 · source§

impl TryFrom<i16> for u16

source§

fn try_from(u: i16) -> Result<u16, <u16 as TryFrom<i16>>::Error>

尝试从源号码类型创建目标号码类型。 如果源值超出目标类型的范围,则返回错误。

§

type Error = TryFromIntError

发生转换错误时返回的类型。
1.34.0 · source§

impl TryFrom<i16> for u32

source§

fn try_from(u: i16) -> Result<u32, <u32 as TryFrom<i16>>::Error>

尝试从源号码类型创建目标号码类型。 如果源值超出目标类型的范围,则返回错误。

§

type Error = TryFromIntError

发生转换错误时返回的类型。
1.34.0 · source§

impl TryFrom<i16> for u64

source§

fn try_from(u: i16) -> Result<u64, <u64 as TryFrom<i16>>::Error>

尝试从源号码类型创建目标号码类型。 如果源值超出目标类型的范围,则返回错误。

§

type Error = TryFromIntError

发生转换错误时返回的类型。
1.34.0 · source§

impl TryFrom<i16> for u8

source§

fn try_from(u: i16) -> Result<u8, <u8 as TryFrom<i16>>::Error>

尝试从源号码类型创建目标号码类型。 如果源值超出目标类型的范围,则返回错误。

§

type Error = TryFromIntError

发生转换错误时返回的类型。
1.34.0 · source§

impl TryFrom<i16> for usize

source§

fn try_from(u: i16) -> Result<usize, <usize as TryFrom<i16>>::Error>

尝试从源号码类型创建目标号码类型。 如果源值超出目标类型的范围,则返回错误。

§

type Error = TryFromIntError

发生转换错误时返回的类型。
1.34.0 · source§

impl TryFrom<i32> for i16

source§

fn try_from(u: i32) -> Result<i16, <i16 as TryFrom<i32>>::Error>

尝试从源号码类型创建目标号码类型。 如果源值超出目标类型的范围,则返回错误。

§

type Error = TryFromIntError

发生转换错误时返回的类型。
1.34.0 · source§

impl TryFrom<i64> for i16

source§

fn try_from(u: i64) -> Result<i16, <i16 as TryFrom<i64>>::Error>

尝试从源号码类型创建目标号码类型。 如果源值超出目标类型的范围,则返回错误。

§

type Error = TryFromIntError

发生转换错误时返回的类型。
1.34.0 · source§

impl TryFrom<isize> for i16

source§

fn try_from(u: isize) -> Result<i16, <i16 as TryFrom<isize>>::Error>

尝试从源号码类型创建目标号码类型。 如果源值超出目标类型的范围,则返回错误。

§

type Error = TryFromIntError

发生转换错误时返回的类型。
1.34.0 · source§

impl TryFrom<u128> for i16

source§

fn try_from(u: u128) -> Result<i16, <i16 as TryFrom<u128>>::Error>

尝试从源号码类型创建目标号码类型。 如果源值超出目标类型的范围,则返回错误。

§

type Error = TryFromIntError

发生转换错误时返回的类型。
1.34.0 · source§

impl TryFrom<u16> for i16

source§

fn try_from(u: u16) -> Result<i16, <i16 as TryFrom<u16>>::Error>

尝试从源号码类型创建目标号码类型。 如果源值超出目标类型的范围,则返回错误。

§

type Error = TryFromIntError

发生转换错误时返回的类型。
1.34.0 · source§

impl TryFrom<u32> for i16

source§

fn try_from(u: u32) -> Result<i16, <i16 as TryFrom<u32>>::Error>

尝试从源号码类型创建目标号码类型。 如果源值超出目标类型的范围,则返回错误。

§

type Error = TryFromIntError

发生转换错误时返回的类型。
1.34.0 · source§

impl TryFrom<u64> for i16

source§

fn try_from(u: u64) -> Result<i16, <i16 as TryFrom<u64>>::Error>

尝试从源号码类型创建目标号码类型。 如果源值超出目标类型的范围,则返回错误。

§

type Error = TryFromIntError

发生转换错误时返回的类型。
1.34.0 · source§

impl TryFrom<usize> for i16

source§

fn try_from(u: usize) -> Result<i16, <i16 as TryFrom<usize>>::Error>

尝试从源号码类型创建目标号码类型。 如果源值超出目标类型的范围,则返回错误。

§

type Error = TryFromIntError

发生转换错误时返回的类型。
1.42.0 · source§

impl UpperExp for i16

source§

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

使用给定的格式化程序格式化该值。
source§

impl UpperHex for i16

source§

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

使用给定的格式化程序格式化该值。
source§

impl ConstParamTy for i16

source§

impl Copy for i16

source§

impl Eq for i16

source§

impl FloatToInt<i16> for f32

source§

impl FloatToInt<i16> for f64

source§

impl MaskElement for i16

source§

impl SimdCast for i16

source§

impl StructuralEq for i16

source§

impl TrustedStep for i16

Auto Trait Implementations§

§

impl RefUnwindSafe for i16

§

impl Send for i16

§

impl Sync for i16

§

impl Unpin for i16

§

impl UnwindSafe for i16

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

获取 selfTypeIdRead more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

从拥有的值中一成不变地借用。 Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

从拥有的值中借用。 Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

返回未更改的参数。

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

调用 U::from(self)

也就是说,这种转换是 From<T> for U 实现选择执行的任何操作。

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

获得所有权后的结果类型。
source§

fn to_owned(&self) -> T

从借用的数据创建拥有的数据,通常是通过克隆。 Read more
source§

fn clone_into(&self, target: &mut T)

使用借来的数据来替换拥有的数据,通常是通过克隆。 Read more
source§

impl<T> ToString for Twhere T: Display + ?Sized,

source§

default fn to_string(&self) -> String

将给定值转换为 StringRead more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

发生转换错误时返回的类型。
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

执行转换。
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

发生转换错误时返回的类型。
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

执行转换。