Primitive Type u16
[-]
[+]
Operations and constants for unsigned 16-bits integers (u16 type)
Operations and constants for unsigned 16-bits integers (u16 type)
impl Int for u16fn zero() -> u16fn one() -> u16fn min_value() -> u16fn max_value() -> u16fn count_ones(self) -> usizefn leading_zeros(self) -> usizefn trailing_zeros(self) -> usizefn rotate_left(self, n: usize) -> u16fn rotate_right(self, n: usize) -> u16fn swap_bytes(self) -> u16fn checked_add(self, other: u16) -> Option<u16>fn checked_sub(self, other: u16) -> Option<u16>fn checked_mul(self, other: u16) -> Option<u16>fn checked_div(self, v: u16) -> Option<u16>fn count_zeros(self) -> usizefn 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) -> Selffn pow(self, exp: usize) -> Selfimpl UnsignedInt for u16fn is_power_of_two(self) -> boolfn next_power_of_two(self) -> Selffn checked_next_power_of_two(self) -> Option<Self>impl ToPrimitive for u16fn to_int(&self) -> Option<isize>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<usize>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 u16fn from_int(n: isize) -> 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: usize) -> 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 u16fn from<N: ToPrimitive>(n: N) -> Option<u16>impl FromStr for u16type Err = ParseIntErrorfn from_str(src: &str) -> Result<u16, ParseIntError>impl FromStrRadix for u16type Err = ParseIntErrorfn from_str_radix(src: &str, radix: usize) -> Result<u16, ParseIntError>impl Zeroable for u16impl Add for u16impl<'a> Add<u16> for &'a u16impl<'a> Add<&'a u16> for u16impl<'a, 'b> Add<&'a u16> for &'b u16impl Sub for u16impl<'a> Sub<u16> for &'a u16impl<'a> Sub<&'a u16> for u16impl<'a, 'b> Sub<&'a u16> for &'b u16impl Mul for u16impl<'a> Mul<u16> for &'a u16impl<'a> Mul<&'a u16> for u16impl<'a, 'b> Mul<&'a u16> for &'b u16impl Div for u16impl<'a> Div<u16> for &'a u16impl<'a> Div<&'a u16> for u16impl<'a, 'b> Div<&'a u16> for &'b u16impl Rem for u16impl<'a> Rem<u16> for &'a u16impl<'a> Rem<&'a u16> for u16impl<'a, 'b> Rem<&'a u16> for &'b u16impl Neg for u16impl<'a> Neg for &'a u16impl Not for u16impl<'a> Not for &'a u16impl BitAnd for u16impl<'a> BitAnd<u16> for &'a u16type Output = <u16 as BitAnd<u16>>::Outputfn bitand(self, other: u16) -> <u16 as BitAnd<u16>>::Outputimpl<'a> BitAnd<&'a u16> for u16type Output = <u16 as BitAnd<u16>>::Outputfn bitand(self, other: &'a u16) -> <u16 as BitAnd<u16>>::Outputimpl<'a, 'b> BitAnd<&'a u16> for &'b u16type Output = <u16 as BitAnd<u16>>::Outputfn bitand(self, other: &'a u16) -> <u16 as BitAnd<u16>>::Outputimpl BitOr for u16impl<'a> BitOr<u16> for &'a u16impl<'a> BitOr<&'a u16> for u16type Output = <u16 as BitOr<u16>>::Outputfn bitor(self, other: &'a u16) -> <u16 as BitOr<u16>>::Outputimpl<'a, 'b> BitOr<&'a u16> for &'b u16type Output = <u16 as BitOr<u16>>::Outputfn bitor(self, other: &'a u16) -> <u16 as BitOr<u16>>::Outputimpl BitXor for u16impl<'a> BitXor<u16> for &'a u16type Output = <u16 as BitXor<u16>>::Outputfn bitxor(self, other: u16) -> <u16 as BitXor<u16>>::Outputimpl<'a> BitXor<&'a u16> for u16type Output = <u16 as BitXor<u16>>::Outputfn bitxor(self, other: &'a u16) -> <u16 as BitXor<u16>>::Outputimpl<'a, 'b> BitXor<&'a u16> for &'b u16type Output = <u16 as BitXor<u16>>::Outputfn bitxor(self, other: &'a u16) -> <u16 as BitXor<u16>>::Outputimpl Shl<u8> for u16impl<'a> Shl<u8> for &'a u16impl<'a> Shl<&'a u8> for u16impl<'a, 'b> Shl<&'a u8> for &'b u16impl Shl<u16> for u16impl<'a> Shl<u16> for &'a u16impl<'a> Shl<&'a u16> for u16impl<'a, 'b> Shl<&'a u16> for &'b u16impl Shl<u32> for u16impl<'a> Shl<u32> for &'a u16impl<'a> Shl<&'a u32> for u16impl<'a, 'b> Shl<&'a u32> for &'b u16impl Shl<u64> for u16impl<'a> Shl<u64> for &'a u16impl<'a> Shl<&'a u64> for u16impl<'a, 'b> Shl<&'a u64> for &'b u16impl Shl<usize> for u16impl<'a> Shl<usize> for &'a u16impl<'a> Shl<&'a usize> for u16type Output = <u16 as Shl<usize>>::Outputfn shl(self, other: &'a usize) -> <u16 as Shl<usize>>::Outputimpl<'a, 'b> Shl<&'a usize> for &'b u16type Output = <u16 as Shl<usize>>::Outputfn shl(self, other: &'a usize) -> <u16 as Shl<usize>>::Outputimpl Shl<i8> for u16impl<'a> Shl<i8> for &'a u16impl<'a> Shl<&'a i8> for u16impl<'a, 'b> Shl<&'a i8> for &'b u16impl Shl<i16> for u16impl<'a> Shl<i16> for &'a u16impl<'a> Shl<&'a i16> for u16impl<'a, 'b> Shl<&'a i16> for &'b u16impl Shl<i32> for u16impl<'a> Shl<i32> for &'a u16impl<'a> Shl<&'a i32> for u16impl<'a, 'b> Shl<&'a i32> for &'b u16impl Shl<i64> for u16impl<'a> Shl<i64> for &'a u16impl<'a> Shl<&'a i64> for u16impl<'a, 'b> Shl<&'a i64> for &'b u16impl Shl<isize> for u16impl<'a> Shl<isize> for &'a u16impl<'a> Shl<&'a isize> for u16type Output = <u16 as Shl<isize>>::Outputfn shl(self, other: &'a isize) -> <u16 as Shl<isize>>::Outputimpl<'a, 'b> Shl<&'a isize> for &'b u16type Output = <u16 as Shl<isize>>::Outputfn shl(self, other: &'a isize) -> <u16 as Shl<isize>>::Outputimpl Shr<u8> for u16impl<'a> Shr<u8> for &'a u16impl<'a> Shr<&'a u8> for u16impl<'a, 'b> Shr<&'a u8> for &'b u16impl Shr<u16> for u16impl<'a> Shr<u16> for &'a u16impl<'a> Shr<&'a u16> for u16impl<'a, 'b> Shr<&'a u16> for &'b u16impl Shr<u32> for u16impl<'a> Shr<u32> for &'a u16impl<'a> Shr<&'a u32> for u16impl<'a, 'b> Shr<&'a u32> for &'b u16impl Shr<u64> for u16impl<'a> Shr<u64> for &'a u16impl<'a> Shr<&'a u64> for u16impl<'a, 'b> Shr<&'a u64> for &'b u16impl Shr<usize> for u16impl<'a> Shr<usize> for &'a u16impl<'a> Shr<&'a usize> for u16type Output = <u16 as Shr<usize>>::Outputfn shr(self, other: &'a usize) -> <u16 as Shr<usize>>::Outputimpl<'a, 'b> Shr<&'a usize> for &'b u16type Output = <u16 as Shr<usize>>::Outputfn shr(self, other: &'a usize) -> <u16 as Shr<usize>>::Outputimpl Shr<i8> for u16impl<'a> Shr<i8> for &'a u16impl<'a> Shr<&'a i8> for u16impl<'a, 'b> Shr<&'a i8> for &'b u16impl Shr<i16> for u16impl<'a> Shr<i16> for &'a u16impl<'a> Shr<&'a i16> for u16impl<'a, 'b> Shr<&'a i16> for &'b u16impl Shr<i32> for u16impl<'a> Shr<i32> for &'a u16impl<'a> Shr<&'a i32> for u16impl<'a, 'b> Shr<&'a i32> for &'b u16impl Shr<i64> for u16impl<'a> Shr<i64> for &'a u16impl<'a> Shr<&'a i64> for u16impl<'a, 'b> Shr<&'a i64> for &'b u16impl Shr<isize> for u16impl<'a> Shr<isize> for &'a u16impl<'a> Shr<&'a isize> for u16type Output = <u16 as Shr<isize>>::Outputfn shr(self, other: &'a isize) -> <u16 as Shr<isize>>::Outputimpl<'a, 'b> Shr<&'a isize> for &'b u16type Output = <u16 as Shr<isize>>::Outputfn shr(self, other: &'a isize) -> <u16 as Shr<isize>>::Outputimpl PartialEq for u16impl Eq for u16impl PartialOrd for u16fn partial_cmp(&self, other: &u16) -> Option<Ordering>fn lt(&self, other: &u16) -> boolfn le(&self, other: &u16) -> boolfn ge(&self, other: &u16) -> boolfn gt(&self, other: &u16) -> boolimpl Ord for u16impl Clone for u16impl Default for u16impl<S: Writer + Hasher> Hash<S> for u16fn hash(&self, state: &mut S)impl Display for u16impl Binary for u16impl Octal for u16impl LowerHex for u16impl UpperHex for u16impl Debug for u16
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).