rok::core::num::ints::impl i16
impl i16
pub const MIN: i16 = -32767 - 1pub const MAX: i16 = 32767pub const BITS: u32 = 16pub const fn wrapping_add(self, rhs: i16) -> i16pub const fn wrapping_sub(self, rhs: i16) -> i16pub const fn wrapping_mul(self, rhs: i16) -> i16pub const fn count_ones(self) -> u32pub const fn count_zeros(self) -> u32pub const fn leading_zeros(self) -> u32pub const fn trailing_zeros(self) -> u32pub const fn leading_ones(self) -> u32pub const fn trailing_ones(self) -> u32pub const fn rotate_left(self, n: u32) -> i16pub const fn rotate_right(self, n: u32) -> i16pub const fn swap_bytes(self) -> i16pub const fn to_be(self) -> i16pub const fn to_le(self) -> i16pub const fn from_be(x: i16) -> i16pub const fn from_le(x: i16) -> i16pub const fn to_le_bytes(self) -> [u8; 2]pub const fn to_be_bytes(self) -> [u8; 2]pub const fn to_ne_bytes(self) -> [u8; 2]pub const fn from_le_bytes(bytes: [u8; 2]) -> i16pub const fn from_be_bytes(bytes: [u8; 2]) -> i16pub const fn from_ne_bytes(bytes: [u8; 2]) -> i16pub const fn checked_add(self, rhs: i16) -> i16 | nonepub const fn checked_sub(self, rhs: i16) -> i16 | nonepub const fn checked_mul(self, rhs: i16) -> i16 | nonepub const fn checked_div(self, rhs: i16) -> i16 | nonepub const fn checked_rem(self, rhs: i16) -> i16 | nonepub const fn checked_neg(self) -> i16 | nonepub const fn checked_shl(self, n: u32) -> i16 | nonepub const fn checked_shr(self, n: u32) -> i16 | nonepub const fn checked_pow(self, exp: u32) -> i16 | nonepub const fn wrapping_div(self, rhs: i16) -> i16pub const fn wrapping_rem(self, rhs: i16) -> i16pub const fn wrapping_neg(self) -> i16pub const fn wrapping_shl(self, n: u32) -> i16pub const fn wrapping_shr(self, n: u32) -> i16pub const fn wrapping_pow(self, exp: u32) -> i16pub const fn saturating_add(self, rhs: i16) -> i16pub const fn saturating_sub(self, rhs: i16) -> i16pub const fn saturating_mul(self, rhs: i16) -> i16pub const fn saturating_neg(self) -> i16pub const fn saturating_pow(self, exp: u32) -> i16pub const fn overflowing_add(self, rhs: i16) -> (i16, bool)pub const fn overflowing_sub(self, rhs: i16) -> (i16, bool)pub const fn overflowing_mul(self, rhs: i16) -> (i16, bool)pub const fn overflowing_div(self, rhs: i16) -> (i16, bool)pub const fn overflowing_rem(self, rhs: i16) -> (i16, bool)pub const fn overflowing_neg(self) -> (i16, bool)pub const fn overflowing_shl(self, n: u32) -> (i16, bool)pub const fn overflowing_shr(self, n: u32) -> (i16, bool)pub const fn overflowing_pow(self, exp: u32) -> (i16, bool)pub const fn pow(self, exp: u32) -> i16selfto theexp; overflow is the arithmetic's (panic in debug, wrap in release).pub const fn abs(self) -> i16pub const fn checked_abs(self) -> i16 | nonepub const fn wrapping_abs(self) -> i16pub const fn saturating_abs(self) -> i16pub const fn unsigned_abs(self) -> u16pub const fn abs_diff(self, rhs: i16) -> u16pub const fn signum(self) -> i16-1,0or1.pub const fn is_positive(self) -> boolpub const fn is_negative(self) -> boolpub const fn div_euclid(self, rhs: i16) -> i16Quotient rounded so that
rem_euclidis never negative.pub const fn rem_euclid(self, rhs: i16) -> i16The remainder in
0..rhs.abs().pub const fn isqrt(self) -> i16Integer square root; panics on a negative number.
pub const fn checked_isqrt(self) -> i16 | nonepub const fn ilog2(self) -> u32floor(log2(self)); panics unlessself > 0.pub const fn ilog10(self) -> u32pub const fn ilog(self, base: i16) -> u32pub const fn checked_ilog2(self) -> u32 | nonepub const fn checked_ilog10(self) -> u32 | nonepub const fn checked_ilog(self, base: i16) -> u32 | none