Primitive Type i16Unstable

Operations and constants for signed 16-bits integers (i16 type)

Trait Implementations

impl FromStr for i16

fn from_str(s: &str) -> Option<i16>

impl FromStrRadix for i16

fn from_str_radix(s: &str, radix: uint) -> Option<i16>

impl ToStrRadix for i16

fn to_str_radix(&self, radix: uint) -> String

Convert to a string in a given base.

impl SampleRange for i16

fn construct_range(low: i16, high: i16) -> Range<i16>

fn sample_range<R: Rng>(r: &Range<i16>, rng: &mut R) -> i16

impl Rand for i16

fn rand<R: Rng>(rng: &mut R) -> i16

impl NumStrConv for i16

fn nan() -> Option<i16>

fn inf() -> Option<i16>

fn neg_inf() -> Option<i16>

fn neg_zero() -> Option<i16>

fn round_to_zero(&self) -> i16

fn fractional_part(&self) -> i16

impl Num for i16

impl Zero for i16

fn zero() -> i16

fn is_zero(&self) -> bool

impl One for i16

fn one() -> i16

impl Signed for i16

fn abs(&self) -> i16

fn abs_sub(&self, other: &i16) -> i16

fn signum(&self) -> i16

fn is_positive(&self) -> bool

fn is_negative(&self) -> bool

impl Bounded for i16

fn min_value() -> i16

fn max_value() -> i16

impl Primitive for i16

impl Int for i16

fn count_ones(self) -> i16

fn leading_zeros(self) -> i16

fn trailing_zeros(self) -> i16

fn rotate_left(self, n: uint) -> i16

fn rotate_right(self, n: uint) -> i16

fn swap_bytes(self) -> i16

fn count_zeros(self) -> i16

fn from_be(i16) -> i16

fn from_le(i16) -> i16

fn to_be(self) -> i16

fn to_le(self) -> i16

impl ToPrimitive for i16

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_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 i16

fn 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 i16

fn from<N: ToPrimitive>(n: N) -> Option<i16>

impl CheckedAdd for i16

fn checked_add(&self, v: &i16) -> Option<i16>

impl CheckedSub for i16

fn checked_sub(&self, v: &i16) -> Option<i16>

impl CheckedMul for i16

fn checked_mul(&self, v: &i16) -> Option<i16>

impl CheckedDiv for i16

fn checked_div(&self, v: &i16) -> Option<i16>

impl Add<i16, i16> for i16

fn add(&self, other: &i16) -> i16

impl Sub<i16, i16> for i16

fn sub(&self, other: &i16) -> i16

impl Mul<i16, i16> for i16

fn mul(&self, other: &i16) -> i16

impl Div<i16, i16> for i16

fn div(&self, other: &i16) -> i16

impl Rem<i16, i16> for i16

fn rem(&self, other: &i16) -> i16

impl Neg<i16> for i16

fn neg(&self) -> i16

impl Not<i16> for i16

fn not(&self) -> i16

impl BitAnd<i16, i16> for i16

fn bitand(&self, rhs: &i16) -> i16

impl BitOr<i16, i16> for i16

fn bitor(&self, rhs: &i16) -> i16

impl BitXor<i16, i16> for i16

fn bitxor(&self, other: &i16) -> i16

impl Shl<i16, i16> for i16

fn shl(&self, other: &i16) -> i16

impl Shr<i16, i16> for i16

fn shr(&self, other: &i16) -> i16

impl PartialEq for i16

fn eq(&self, other: &i16) -> bool

fn ne(&self, other: &i16) -> bool

fn ne(&self, &i16) -> bool

impl Eq for i16

fn assert_receiver_is_total_eq(&self)

impl PartialOrd for i16

fn lt(&self, other: &i16) -> bool

fn le(&self, other: &i16) -> bool

fn ge(&self, other: &i16) -> bool

fn gt(&self, other: &i16) -> bool

fn le(&self, &i16) -> bool

fn gt(&self, &i16) -> bool

fn ge(&self, &i16) -> bool

impl Ord for i16

fn cmp(&self, other: &i16) -> Ordering

impl Clone for i16

fn clone(&self) -> i16

Return a deep copy of the value.

fn clone_from(&mut self, &i16)

impl Default for i16

fn default() -> i16

impl Show for i16

fn fmt(&self, f: &mut Formatter) -> Result<(), FormatError>

impl Signed for i16

fn fmt(&self, f: &mut Formatter) -> Result<(), FormatError>

impl Binary for i16

fn fmt(&self, f: &mut Formatter) -> Result<(), FormatError>

impl Octal for i16

fn fmt(&self, f: &mut Formatter) -> Result<(), FormatError>

impl LowerHex for i16

fn fmt(&self, f: &mut Formatter) -> Result<(), FormatError>

impl UpperHex for i16

fn fmt(&self, f: &mut Formatter) -> Result<(), FormatError>

impl<S: Writer> Hash<S> for i16

fn hash<S: Writer>(&self, state: &mut S)