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) -> uintfn leading_zeros(self) -> uintfn trailing_zeros(self) -> uintfn rotate_left(self, n: uint) -> i16fn rotate_right(self, n: uint) -> 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) -> uintfn 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) -> 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<int>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<uint>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: int) -> 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: uint) -> 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 Num for i16impl Primitive for i16impl Zero for i16impl One for i16impl Bounded for i16impl Add<i16, i16> for i16impl Sub<i16, i16> for i16impl Mul<i16, i16> for i16impl Div<i16, i16> for i16impl Rem<i16, i16> for i16impl Neg<i16> for i16impl Not<i16> for i16impl BitAnd<i16, i16> for i16impl BitOr<i16, i16> for i16impl BitXor<i16, i16> for i16impl Shl<uint, i16> for i16impl Shr<uint, i16> 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 Show for i16impl Signed for i16impl Binary for i16impl Octal for i16impl LowerHex for i16impl UpperHex 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).