Primitive Type u16Unstable

Operations and constants for unsigned 16-bits integers (u16 type)

Trait Implementations

impl Num for u16

impl Zero for u16

fn zero() -> u16

fn is_zero(&self) -> bool

impl One for u16

fn one() -> u16

impl Unsigned for u16

impl Bounded for u16

fn min_value() -> u16

fn max_value() -> u16

impl Primitive for u16

impl Int for u16

fn count_ones(self) -> u16

fn leading_zeros(self) -> u16

fn trailing_zeros(self) -> u16

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

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

fn swap_bytes(self) -> u16

fn count_zeros(self) -> Self

fn from_be(x: Self) -> Self

fn from_le(x: Self) -> Self

fn to_be(self) -> Self

fn to_le(self) -> Self

impl ToPrimitive for u16

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 u16

fn from_int(n: int) -> Option<u16>

fn from_i8(n: i8) -> Option<u16>

fn from_i16(n: i16) -> Option<u16>

fn from_i32(n: i32) -> Option<u16>

fn from_i64(n: i64) -> Option<u16>

fn from_uint(n: uint) -> Option<u16>

fn from_u8(n: u8) -> Option<u16>

fn from_u16(n: u16) -> Option<u16>

fn from_u32(n: u32) -> Option<u16>

fn from_u64(n: u64) -> Option<u16>

fn from_f32(n: f32) -> Option<u16>

fn from_f64(n: f64) -> Option<u16>

impl NumCast for u16

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

impl CheckedAdd for u16

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

impl CheckedSub for u16

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

impl CheckedMul for u16

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

impl CheckedDiv for u16

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

impl Add<u16, u16> for u16

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

impl Sub<u16, u16> for u16

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

impl Mul<u16, u16> for u16

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

impl Div<u16, u16> for u16

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

impl Rem<u16, u16> for u16

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

impl Neg<u16> for u16

fn neg(&self) -> u16

impl Not<u16> for u16

fn not(&self) -> u16

impl BitAnd<u16, u16> for u16

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

impl BitOr<u16, u16> for u16

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

impl BitXor<u16, u16> for u16

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

impl Shl<u16, u16> for u16

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

impl Shr<u16, u16> for u16

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

impl PartialEq for u16

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

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

impl Eq for u16

impl PartialOrd for u16

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

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

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

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

impl Ord for u16

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

impl Clone for u16

fn clone(&self) -> u16

Return a deep copy of the value.

fn clone_from(&mut self, source: &Self)

impl Default for u16

fn default() -> u16

impl Show for u16

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

impl Unsigned for u16

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

impl Binary for u16

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

impl Octal for u16

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

impl LowerHex for u16

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

impl UpperHex for u16

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