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