Primitive Type i16
[-]
[+]
Operations and constants for signed 16-bits integers (i16 type)
Operations and constants for signed 16-bits integers (i16 type)
impl Int for i16fn zero() -> i16fn one() -> i16fn min_value() -> i16fn max_value() -> i16fn count_ones(self) -> usizefn leading_zeros(self) -> usizefn trailing_zeros(self) -> usizefn rotate_left(self, n: usize) -> i16fn rotate_right(self, n: usize) -> i16fn swap_bytes(self) -> i16fn checked_add(self, other: i16) -> Option<i16>fn checked_sub(self, other: i16) -> Option<i16>fn checked_mul(self, other: i16) -> Option<i16>fn checked_div(self, v: i16) -> Option<i16>fn count_zeros(self) -> usizefn from_be(i16) -> i16fn from_le(i16) -> i16fn to_be(self) -> i16fn to_le(self) -> i16fn saturating_add(self, i16) -> i16fn saturating_sub(self, i16) -> i16fn pow(self, usize) -> i16impl SignedInt for i16fn abs(self) -> i16fn signum(self) -> i16fn is_positive(self) -> boolfn is_negative(self) -> boolimpl ToPrimitive for i16fn to_int(&self) -> Option<isize>fn to_i8(&self) -> Option<i8>fn to_i16(&self) -> Option<i16>fn to_i32(&self) -> Option<i32>fn to_i64(&self) -> Option<i64>fn to_uint(&self) -> Option<usize>fn to_u8(&self) -> Option<u8>fn to_u16(&self) -> Option<u16>fn to_u32(&self) -> Option<u32>fn to_u64(&self) -> Option<u64>fn to_f32(&self) -> Option<f32>fn to_f64(&self) -> Option<f64>fn to_int(&self) -> Option<isize>fn to_i8(&self) -> Option<i8>fn to_i16(&self) -> Option<i16>fn to_i32(&self) -> Option<i32>fn to_uint(&self) -> Option<usize>fn to_u8(&self) -> Option<u8>fn to_u16(&self) -> Option<u16>fn to_u32(&self) -> Option<u32>fn to_f32(&self) -> Option<f32>fn to_f64(&self) -> Option<f64>impl FromPrimitive for i16fn from_int(n: isize) -> Option<i16>fn from_i8(n: i8) -> Option<i16>fn from_i16(n: i16) -> Option<i16>fn from_i32(n: i32) -> Option<i16>fn from_i64(n: i64) -> Option<i16>fn from_uint(n: usize) -> Option<i16>fn from_u8(n: u8) -> Option<i16>fn from_u16(n: u16) -> Option<i16>fn from_u32(n: u32) -> Option<i16>fn from_u64(n: u64) -> Option<i16>fn from_f32(n: f32) -> Option<i16>fn from_f64(n: f64) -> Option<i16>fn from_int(isize) -> Option<i16>fn from_i8(i8) -> Option<i16>fn from_i16(i16) -> Option<i16>fn from_i32(i32) -> Option<i16>fn from_uint(usize) -> Option<i16>fn from_u8(u8) -> Option<i16>fn from_u16(u16) -> Option<i16>fn from_u32(u32) -> Option<i16>fn from_f32(f32) -> Option<i16>fn from_f64(f64) -> Option<i16>impl NumCast for i16fn from<N>(n: N) -> Option<i16> where N: ToPrimitiveimpl FromStr for i16type Err = ParseIntErrorfn from_str(src: &str) -> Result<i16, ParseIntError>impl FromStrRadix for i16type Err = ParseIntErrorfn from_str_radix(src: &str, radix: usize) -> Result<i16, ParseIntError>impl Zeroable for i16impl Add<i16> for i16impl<'a> Add<i16> for &'a i16impl<'a> Add<&'a i16> for i16impl<'a, 'b> Add<&'a i16> for &'b i16impl Sub<i16> for i16impl<'a> Sub<i16> for &'a i16impl<'a> Sub<&'a i16> for i16impl<'a, 'b> Sub<&'a i16> for &'b i16impl Mul<i16> for i16impl<'a> Mul<i16> for &'a i16impl<'a> Mul<&'a i16> for i16impl<'a, 'b> Mul<&'a i16> for &'b i16impl Div<i16> for i16impl<'a> Div<i16> for &'a i16impl<'a> Div<&'a i16> for i16impl<'a, 'b> Div<&'a i16> for &'b i16impl Rem<i16> for i16impl<'a> Rem<i16> for &'a i16impl<'a> Rem<&'a i16> for i16impl<'a, 'b> Rem<&'a i16> for &'b i16impl Neg for i16impl<'a> Neg for &'a i16impl Not for i16impl<'a> Not for &'a i16impl BitAnd<i16> for i16impl<'a> BitAnd<i16> for &'a i16type Output = <i16 as BitAnd<i16>>::Outputfn bitand(self, other: i16) -> <i16 as BitAnd<i16>>::Outputimpl<'a> BitAnd<&'a i16> for i16type Output = <i16 as BitAnd<i16>>::Outputfn bitand(self, other: &'a i16) -> <i16 as BitAnd<i16>>::Outputimpl<'a, 'b> BitAnd<&'a i16> for &'b i16type Output = <i16 as BitAnd<i16>>::Outputfn bitand(self, other: &'a i16) -> <i16 as BitAnd<i16>>::Outputimpl BitOr<i16> for i16impl<'a> BitOr<i16> for &'a i16impl<'a> BitOr<&'a i16> for i16type Output = <i16 as BitOr<i16>>::Outputfn bitor(self, other: &'a i16) -> <i16 as BitOr<i16>>::Outputimpl<'a, 'b> BitOr<&'a i16> for &'b i16type Output = <i16 as BitOr<i16>>::Outputfn bitor(self, other: &'a i16) -> <i16 as BitOr<i16>>::Outputimpl BitXor<i16> for i16impl<'a> BitXor<i16> for &'a i16type Output = <i16 as BitXor<i16>>::Outputfn bitxor(self, other: i16) -> <i16 as BitXor<i16>>::Outputimpl<'a> BitXor<&'a i16> for i16type Output = <i16 as BitXor<i16>>::Outputfn bitxor(self, other: &'a i16) -> <i16 as BitXor<i16>>::Outputimpl<'a, 'b> BitXor<&'a i16> for &'b i16type Output = <i16 as BitXor<i16>>::Outputfn bitxor(self, other: &'a i16) -> <i16 as BitXor<i16>>::Outputimpl Shl<u8> for i16impl<'a> Shl<u8> for &'a i16impl<'a> Shl<&'a u8> for i16impl<'a, 'b> Shl<&'a u8> for &'b i16impl Shl<u16> for i16impl<'a> Shl<u16> for &'a i16impl<'a> Shl<&'a u16> for i16impl<'a, 'b> Shl<&'a u16> for &'b i16impl Shl<u32> for i16impl<'a> Shl<u32> for &'a i16impl<'a> Shl<&'a u32> for i16impl<'a, 'b> Shl<&'a u32> for &'b i16impl Shl<u64> for i16impl<'a> Shl<u64> for &'a i16impl<'a> Shl<&'a u64> for i16impl<'a, 'b> Shl<&'a u64> for &'b i16impl Shl<usize> for i16impl<'a> Shl<usize> for &'a i16impl<'a> Shl<&'a usize> for i16type Output = <i16 as Shl<usize>>::Outputfn shl(self, other: &'a usize) -> <i16 as Shl<usize>>::Outputimpl<'a, 'b> Shl<&'a usize> for &'b i16type Output = <i16 as Shl<usize>>::Outputfn shl(self, other: &'a usize) -> <i16 as Shl<usize>>::Outputimpl Shl<i8> for i16impl<'a> Shl<i8> for &'a i16impl<'a> Shl<&'a i8> for i16impl<'a, 'b> Shl<&'a i8> for &'b i16impl Shl<i16> for i16impl<'a> Shl<i16> for &'a i16impl<'a> Shl<&'a i16> for i16impl<'a, 'b> Shl<&'a i16> for &'b i16impl Shl<i32> for i16impl<'a> Shl<i32> for &'a i16impl<'a> Shl<&'a i32> for i16impl<'a, 'b> Shl<&'a i32> for &'b i16impl Shl<i64> for i16impl<'a> Shl<i64> for &'a i16impl<'a> Shl<&'a i64> for i16impl<'a, 'b> Shl<&'a i64> for &'b i16impl Shl<isize> for i16impl<'a> Shl<isize> for &'a i16impl<'a> Shl<&'a isize> for i16type Output = <i16 as Shl<isize>>::Outputfn shl(self, other: &'a isize) -> <i16 as Shl<isize>>::Outputimpl<'a, 'b> Shl<&'a isize> for &'b i16type Output = <i16 as Shl<isize>>::Outputfn shl(self, other: &'a isize) -> <i16 as Shl<isize>>::Outputimpl Shr<u8> for i16impl<'a> Shr<u8> for &'a i16impl<'a> Shr<&'a u8> for i16impl<'a, 'b> Shr<&'a u8> for &'b i16impl Shr<u16> for i16impl<'a> Shr<u16> for &'a i16impl<'a> Shr<&'a u16> for i16impl<'a, 'b> Shr<&'a u16> for &'b i16impl Shr<u32> for i16impl<'a> Shr<u32> for &'a i16impl<'a> Shr<&'a u32> for i16impl<'a, 'b> Shr<&'a u32> for &'b i16impl Shr<u64> for i16impl<'a> Shr<u64> for &'a i16impl<'a> Shr<&'a u64> for i16impl<'a, 'b> Shr<&'a u64> for &'b i16impl Shr<usize> for i16impl<'a> Shr<usize> for &'a i16impl<'a> Shr<&'a usize> for i16type Output = <i16 as Shr<usize>>::Outputfn shr(self, other: &'a usize) -> <i16 as Shr<usize>>::Outputimpl<'a, 'b> Shr<&'a usize> for &'b i16type Output = <i16 as Shr<usize>>::Outputfn shr(self, other: &'a usize) -> <i16 as Shr<usize>>::Outputimpl Shr<i8> for i16impl<'a> Shr<i8> for &'a i16impl<'a> Shr<&'a i8> for i16impl<'a, 'b> Shr<&'a i8> for &'b i16impl Shr<i16> for i16impl<'a> Shr<i16> for &'a i16impl<'a> Shr<&'a i16> for i16impl<'a, 'b> Shr<&'a i16> for &'b i16impl Shr<i32> for i16impl<'a> Shr<i32> for &'a i16impl<'a> Shr<&'a i32> for i16impl<'a, 'b> Shr<&'a i32> for &'b i16impl Shr<i64> for i16impl<'a> Shr<i64> for &'a i16impl<'a> Shr<&'a i64> for i16impl<'a, 'b> Shr<&'a i64> for &'b i16impl Shr<isize> for i16impl<'a> Shr<isize> for &'a i16impl<'a> Shr<&'a isize> for i16type Output = <i16 as Shr<isize>>::Outputfn shr(self, other: &'a isize) -> <i16 as Shr<isize>>::Outputimpl<'a, 'b> Shr<&'a isize> for &'b i16type Output = <i16 as Shr<isize>>::Outputfn shr(self, other: &'a isize) -> <i16 as Shr<isize>>::Outputimpl PartialEq<i16> for i16impl Eq for i16fn assert_receiver_is_total_eq(&self)impl PartialOrd<i16> for i16fn partial_cmp(&self, other: &i16) -> Option<Ordering>fn lt(&self, other: &i16) -> boolfn le(&self, other: &i16) -> boolfn ge(&self, other: &i16) -> boolfn gt(&self, other: &i16) -> boolfn lt(&self, &i16) -> boolfn le(&self, &i16) -> boolfn gt(&self, &i16) -> boolfn ge(&self, &i16) -> boolimpl Ord for i16impl Clone for i16impl Default for i16impl<S> Hash<S> for i16 where S: Hasher, S: Writerfn hash(&self, state: &mut S)impl Display for i16impl Binary for i16impl Octal for i16impl LowerHex for i16impl UpperHex for i16impl Debug for i16impl SampleRange for i16fn construct_range(low: i16, high: i16) -> Range<i16>fn sample_range<R>(r: &Range<i16>, rng: &mut R) -> i16 where R: Rngimpl Rand for i16
Prefix searches with a type followed by a colon (e.g.
fn:) to restrict the search to a given type.
Accepted types are: fn, mod,
struct, enum,
trait, typedef (or
tdef).