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(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, uint) -> 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<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>fn 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_uint(&self) -> Option<uint>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: 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>fn from_int(int) -> Option<i16>fn from_i8(i8) -> Option<i16>fn from_i16(i16) -> Option<i16>fn from_i32(i32) -> Option<i16>fn from_uint(uint) -> 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: ToPrimitive>(n: N) -> Option<i16>impl FromStr for i16impl FromStrRadix for i16fn from_str_radix(src: &str, radix: uint) -> Option<i16>impl Num for i16impl Primitive for i16impl Zero for i16impl One for i16impl Bounded for i16impl Zeroable 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<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 Step for i16impl<S: Writer> Hash<S> for i16fn hash(&self, state: &mut S)impl Show for i16impl Binary for i16impl Octal for i16impl LowerHex for i16impl UpperHex for i16impl SampleRange for i16fn construct_range(low: i16, high: i16) -> Range<i16>fn sample_range<R: Rng>(r: &Range<i16>, rng: &mut R) -> i16impl 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).