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(x: Self) -> Selffn from_le(x: Self) -> Selffn to_be(self) -> Selffn to_le(self) -> Selffn saturating_add(self, other: Self) -> Selffn saturating_sub(self, other: Self) -> Selffn pow(self, exp: usize) -> Selfimpl 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>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>impl NumCast for i16fn from<N: ToPrimitive>(n: N) -> Option<i16>impl FromStr for i16impl FromStrRadix for i16fn from_str_radix(src: &str, radix: usize) -> Option<i16>impl Zeroable for i16impl Add for i16impl Sub for i16impl Mul for i16impl Div for i16impl Rem for i16impl Neg for i16impl Not for i16impl BitAnd for i16impl BitOr for i16impl BitXor for i16impl Shl<usize> for i16impl Shr<usize> for i16impl PartialEq for i16impl Eq for i16impl PartialOrd 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) -> boolimpl Ord for i16impl Clone for i16impl Default for i16impl Step for i16fn step(&mut self)fn step_back(&mut self)fn steps_between(start: &i16, end: &i16) -> Option<usize>impl<S: Writer + Hasher> Hash<S> for i16fn hash(&self, state: &mut S)impl String for i16impl Binary for i16impl Octal for i16impl LowerHex for i16impl UpperHex for i16impl Show 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).