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 i16
fn zero() -> i16
fn one() -> i16
fn min_value() -> i16
fn max_value() -> i16
fn count_ones(self) -> uint
fn leading_zeros(self) -> uint
fn trailing_zeros(self) -> uint
fn rotate_left(self, n: uint) -> i16
fn rotate_right(self, n: uint) -> i16
fn swap_bytes(self) -> i16
fn 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) -> uint
fn from_be(x: Self) -> Self
fn from_le(x: Self) -> Self
fn to_be(self) -> Self
fn to_le(self) -> Self
fn saturating_add(self, other: Self) -> Self
fn saturating_sub(self, other: Self) -> Self
fn pow(self, exp: uint) -> Self
impl SignedInt for i16
fn abs(self) -> i16
fn signum(self) -> i16
fn is_positive(self) -> bool
fn is_negative(self) -> bool
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>
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>
impl NumCast for i16
fn from<N: ToPrimitive>(n: N) -> Option<i16>
impl FromStr for i16
impl FromStrRadix for i16
fn from_str_radix(src: &str, radix: uint) -> Option<i16>
impl Num for i16
impl Primitive for i16
impl Zero for i16
impl One for i16
impl Bounded for i16
impl Zeroable for i16
impl Add<i16, i16> for i16
impl Sub<i16, i16> for i16
impl Mul<i16, i16> for i16
impl Div<i16, i16> for i16
impl Rem<i16, i16> for i16
impl Neg<i16> for i16
impl Not<i16> for i16
impl BitAnd<i16, i16> for i16
impl BitOr<i16, i16> for i16
impl BitXor<i16, i16> for i16
impl Shl<uint, i16> for i16
impl Shr<uint, i16> for i16
impl PartialEq for i16
impl Eq for i16
impl PartialOrd for i16
fn partial_cmp(&self, other: &i16) -> Option<Ordering>
fn lt(&self, other: &i16) -> bool
fn le(&self, other: &i16) -> bool
fn ge(&self, other: &i16) -> bool
fn gt(&self, other: &i16) -> bool
impl Ord for i16
impl Clone for i16
impl Default for i16
impl Step for i16
impl<S: Writer> Hash<S> for i16
fn hash(&self, state: &mut S)
impl Show for i16
impl Binary for i16
impl Octal for i16
impl LowerHex for i16
impl 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
).