Primitive Type u8 [-] [+]

Operations and constants for unsigned 8-bits integers (u8 type)

Trait Implementations

impl Int for u8

fn zero() -> u8

fn one() -> u8

fn min_value() -> u8

fn max_value() -> u8

fn count_ones(self) -> usize

fn leading_zeros(self) -> usize

fn trailing_zeros(self) -> usize

fn rotate_left(self, n: usize) -> u8

fn rotate_right(self, n: usize) -> u8

fn swap_bytes(self) -> u8

fn 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) -> usize

fn from_be(u8) -> u8

fn from_le(u8) -> u8

fn to_be(self) -> u8

fn to_le(self) -> u8

fn saturating_add(self, u8) -> u8

fn saturating_sub(self, u8) -> u8

fn pow(self, usize) -> u8

impl UnsignedInt for u8

fn is_power_of_two(self) -> bool

fn next_power_of_two(self) -> u8

fn checked_next_power_of_two(self) -> Option<u8>

impl ToPrimitive for u8

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

fn 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_uint(&self) -> Option<usize>

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 u8

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

fn from_int(isize) -> Option<u8>

fn from_i8(i8) -> Option<u8>

fn from_i16(i16) -> Option<u8>

fn from_i32(i32) -> Option<u8>

fn from_uint(usize) -> Option<u8>

fn from_u8(u8) -> Option<u8>

fn from_u16(u16) -> Option<u8>

fn from_u32(u32) -> Option<u8>

fn from_f32(f32) -> Option<u8>

fn from_f64(f64) -> Option<u8>

impl NumCast for u8

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

impl FromStr for u8

type Err = ParseIntError

fn from_str(src: &str) -> Result<u8, ParseIntError>

impl FromStrRadix for u8

type Err = ParseIntError

fn from_str_radix(src: &str, radix: u32) -> Result<u8, ParseIntError>

impl Zeroable for u8

impl Add<u8> for u8

type Output = u8

fn add(self, other: u8) -> u8

impl<'a> Add<u8> for &'a u8

type Output = <u8 as Add<u8>>::Output

fn add(self, other: u8) -> <u8 as Add<u8>>::Output

impl<'a> Add<&'a u8> for u8

type Output = <u8 as Add<u8>>::Output

fn add(self, other: &'a u8) -> <u8 as Add<u8>>::Output

impl<'a, 'b> Add<&'a u8> for &'b u8

type Output = <u8 as Add<u8>>::Output

fn add(self, other: &'a u8) -> <u8 as Add<u8>>::Output

impl Sub<u8> for u8

type Output = u8

fn sub(self, other: u8) -> u8

impl<'a> Sub<u8> for &'a u8

type Output = <u8 as Sub<u8>>::Output

fn sub(self, other: u8) -> <u8 as Sub<u8>>::Output

impl<'a> Sub<&'a u8> for u8

type Output = <u8 as Sub<u8>>::Output

fn sub(self, other: &'a u8) -> <u8 as Sub<u8>>::Output

impl<'a, 'b> Sub<&'a u8> for &'b u8

type Output = <u8 as Sub<u8>>::Output

fn sub(self, other: &'a u8) -> <u8 as Sub<u8>>::Output

impl Mul<u8> for u8

type Output = u8

fn mul(self, other: u8) -> u8

impl<'a> Mul<u8> for &'a u8

type Output = <u8 as Mul<u8>>::Output

fn mul(self, other: u8) -> <u8 as Mul<u8>>::Output

impl<'a> Mul<&'a u8> for u8

type Output = <u8 as Mul<u8>>::Output

fn mul(self, other: &'a u8) -> <u8 as Mul<u8>>::Output

impl<'a, 'b> Mul<&'a u8> for &'b u8

type Output = <u8 as Mul<u8>>::Output

fn mul(self, other: &'a u8) -> <u8 as Mul<u8>>::Output

impl Div<u8> for u8

type Output = u8

fn div(self, other: u8) -> u8

impl<'a> Div<u8> for &'a u8

type Output = <u8 as Div<u8>>::Output

fn div(self, other: u8) -> <u8 as Div<u8>>::Output

impl<'a> Div<&'a u8> for u8

type Output = <u8 as Div<u8>>::Output

fn div(self, other: &'a u8) -> <u8 as Div<u8>>::Output

impl<'a, 'b> Div<&'a u8> for &'b u8

type Output = <u8 as Div<u8>>::Output

fn div(self, other: &'a u8) -> <u8 as Div<u8>>::Output

impl Rem<u8> for u8

type Output = u8

fn rem(self, other: u8) -> u8

impl<'a> Rem<u8> for &'a u8

type Output = <u8 as Rem<u8>>::Output

fn rem(self, other: u8) -> <u8 as Rem<u8>>::Output

impl<'a> Rem<&'a u8> for u8

type Output = <u8 as Rem<u8>>::Output

fn rem(self, other: &'a u8) -> <u8 as Rem<u8>>::Output

impl<'a, 'b> Rem<&'a u8> for &'b u8

type Output = <u8 as Rem<u8>>::Output

fn rem(self, other: &'a u8) -> <u8 as Rem<u8>>::Output

impl Neg for u8

type Output = u8

fn neg(self) -> u8

impl<'a> Neg for &'a u8

type Output = <u8 as Neg>::Output

fn neg(self) -> <u8 as Neg>::Output

impl Not for u8

type Output = u8

fn not(self) -> u8

impl<'a> Not for &'a u8

type Output = <u8 as Not>::Output

fn not(self) -> <u8 as Not>::Output

impl BitAnd<u8> for u8

type Output = u8

fn bitand(self, rhs: u8) -> u8

impl<'a> BitAnd<u8> for &'a u8

type Output = <u8 as BitAnd<u8>>::Output

fn bitand(self, other: u8) -> <u8 as BitAnd<u8>>::Output

impl<'a> BitAnd<&'a u8> for u8

type Output = <u8 as BitAnd<u8>>::Output

fn bitand(self, other: &'a u8) -> <u8 as BitAnd<u8>>::Output

impl<'a, 'b> BitAnd<&'a u8> for &'b u8

type Output = <u8 as BitAnd<u8>>::Output

fn bitand(self, other: &'a u8) -> <u8 as BitAnd<u8>>::Output

impl BitOr<u8> for u8

type Output = u8

fn bitor(self, rhs: u8) -> u8

impl<'a> BitOr<u8> for &'a u8

type Output = <u8 as BitOr<u8>>::Output

fn bitor(self, other: u8) -> <u8 as BitOr<u8>>::Output

impl<'a> BitOr<&'a u8> for u8

type Output = <u8 as BitOr<u8>>::Output

fn bitor(self, other: &'a u8) -> <u8 as BitOr<u8>>::Output

impl<'a, 'b> BitOr<&'a u8> for &'b u8

type Output = <u8 as BitOr<u8>>::Output

fn bitor(self, other: &'a u8) -> <u8 as BitOr<u8>>::Output

impl BitXor<u8> for u8

type Output = u8

fn bitxor(self, other: u8) -> u8

impl<'a> BitXor<u8> for &'a u8

type Output = <u8 as BitXor<u8>>::Output

fn bitxor(self, other: u8) -> <u8 as BitXor<u8>>::Output

impl<'a> BitXor<&'a u8> for u8

type Output = <u8 as BitXor<u8>>::Output

fn bitxor(self, other: &'a u8) -> <u8 as BitXor<u8>>::Output

impl<'a, 'b> BitXor<&'a u8> for &'b u8

type Output = <u8 as BitXor<u8>>::Output

fn bitxor(self, other: &'a u8) -> <u8 as BitXor<u8>>::Output

impl Shl<u8> for u8

type Output = u8

fn shl(self, other: u8) -> u8

impl<'a> Shl<u8> for &'a u8

type Output = <u8 as Shl<u8>>::Output

fn shl(self, other: u8) -> <u8 as Shl<u8>>::Output

impl<'a> Shl<&'a u8> for u8

type Output = <u8 as Shl<u8>>::Output

fn shl(self, other: &'a u8) -> <u8 as Shl<u8>>::Output

impl<'a, 'b> Shl<&'a u8> for &'b u8

type Output = <u8 as Shl<u8>>::Output

fn shl(self, other: &'a u8) -> <u8 as Shl<u8>>::Output

impl Shl<u16> for u8

type Output = u8

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

impl<'a> Shl<u16> for &'a u8

type Output = <u8 as Shl<u16>>::Output

fn shl(self, other: u16) -> <u8 as Shl<u16>>::Output

impl<'a> Shl<&'a u16> for u8

type Output = <u8 as Shl<u16>>::Output

fn shl(self, other: &'a u16) -> <u8 as Shl<u16>>::Output

impl<'a, 'b> Shl<&'a u16> for &'b u8

type Output = <u8 as Shl<u16>>::Output

fn shl(self, other: &'a u16) -> <u8 as Shl<u16>>::Output

impl Shl<u32> for u8

type Output = u8

fn shl(self, other: u32) -> u8

impl<'a> Shl<u32> for &'a u8

type Output = <u8 as Shl<u32>>::Output

fn shl(self, other: u32) -> <u8 as Shl<u32>>::Output

impl<'a> Shl<&'a u32> for u8

type Output = <u8 as Shl<u32>>::Output

fn shl(self, other: &'a u32) -> <u8 as Shl<u32>>::Output

impl<'a, 'b> Shl<&'a u32> for &'b u8

type Output = <u8 as Shl<u32>>::Output

fn shl(self, other: &'a u32) -> <u8 as Shl<u32>>::Output

impl Shl<u64> for u8

type Output = u8

fn shl(self, other: u64) -> u8

impl<'a> Shl<u64> for &'a u8

type Output = <u8 as Shl<u64>>::Output

fn shl(self, other: u64) -> <u8 as Shl<u64>>::Output

impl<'a> Shl<&'a u64> for u8

type Output = <u8 as Shl<u64>>::Output

fn shl(self, other: &'a u64) -> <u8 as Shl<u64>>::Output

impl<'a, 'b> Shl<&'a u64> for &'b u8

type Output = <u8 as Shl<u64>>::Output

fn shl(self, other: &'a u64) -> <u8 as Shl<u64>>::Output

impl Shl<usize> for u8

type Output = u8

fn shl(self, other: usize) -> u8

impl<'a> Shl<usize> for &'a u8

type Output = <u8 as Shl<usize>>::Output

fn shl(self, other: usize) -> <u8 as Shl<usize>>::Output

impl<'a> Shl<&'a usize> for u8

type Output = <u8 as Shl<usize>>::Output

fn shl(self, other: &'a usize) -> <u8 as Shl<usize>>::Output

impl<'a, 'b> Shl<&'a usize> for &'b u8

type Output = <u8 as Shl<usize>>::Output

fn shl(self, other: &'a usize) -> <u8 as Shl<usize>>::Output

impl Shl<i8> for u8

type Output = u8

fn shl(self, other: i8) -> u8

impl<'a> Shl<i8> for &'a u8

type Output = <u8 as Shl<i8>>::Output

fn shl(self, other: i8) -> <u8 as Shl<i8>>::Output

impl<'a> Shl<&'a i8> for u8

type Output = <u8 as Shl<i8>>::Output

fn shl(self, other: &'a i8) -> <u8 as Shl<i8>>::Output

impl<'a, 'b> Shl<&'a i8> for &'b u8

type Output = <u8 as Shl<i8>>::Output

fn shl(self, other: &'a i8) -> <u8 as Shl<i8>>::Output

impl Shl<i16> for u8

type Output = u8

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

impl<'a> Shl<i16> for &'a u8

type Output = <u8 as Shl<i16>>::Output

fn shl(self, other: i16) -> <u8 as Shl<i16>>::Output

impl<'a> Shl<&'a i16> for u8

type Output = <u8 as Shl<i16>>::Output

fn shl(self, other: &'a i16) -> <u8 as Shl<i16>>::Output

impl<'a, 'b> Shl<&'a i16> for &'b u8

type Output = <u8 as Shl<i16>>::Output

fn shl(self, other: &'a i16) -> <u8 as Shl<i16>>::Output

impl Shl<i32> for u8

type Output = u8

fn shl(self, other: i32) -> u8

impl<'a> Shl<i32> for &'a u8

type Output = <u8 as Shl<i32>>::Output

fn shl(self, other: i32) -> <u8 as Shl<i32>>::Output

impl<'a> Shl<&'a i32> for u8

type Output = <u8 as Shl<i32>>::Output

fn shl(self, other: &'a i32) -> <u8 as Shl<i32>>::Output

impl<'a, 'b> Shl<&'a i32> for &'b u8

type Output = <u8 as Shl<i32>>::Output

fn shl(self, other: &'a i32) -> <u8 as Shl<i32>>::Output

impl Shl<i64> for u8

type Output = u8

fn shl(self, other: i64) -> u8

impl<'a> Shl<i64> for &'a u8

type Output = <u8 as Shl<i64>>::Output

fn shl(self, other: i64) -> <u8 as Shl<i64>>::Output

impl<'a> Shl<&'a i64> for u8

type Output = <u8 as Shl<i64>>::Output

fn shl(self, other: &'a i64) -> <u8 as Shl<i64>>::Output

impl<'a, 'b> Shl<&'a i64> for &'b u8

type Output = <u8 as Shl<i64>>::Output

fn shl(self, other: &'a i64) -> <u8 as Shl<i64>>::Output

impl Shl<isize> for u8

type Output = u8

fn shl(self, other: isize) -> u8

impl<'a> Shl<isize> for &'a u8

type Output = <u8 as Shl<isize>>::Output

fn shl(self, other: isize) -> <u8 as Shl<isize>>::Output

impl<'a> Shl<&'a isize> for u8

type Output = <u8 as Shl<isize>>::Output

fn shl(self, other: &'a isize) -> <u8 as Shl<isize>>::Output

impl<'a, 'b> Shl<&'a isize> for &'b u8

type Output = <u8 as Shl<isize>>::Output

fn shl(self, other: &'a isize) -> <u8 as Shl<isize>>::Output

impl Shr<u8> for u8

type Output = u8

fn shr(self, other: u8) -> u8

impl<'a> Shr<u8> for &'a u8

type Output = <u8 as Shr<u8>>::Output

fn shr(self, other: u8) -> <u8 as Shr<u8>>::Output

impl<'a> Shr<&'a u8> for u8

type Output = <u8 as Shr<u8>>::Output

fn shr(self, other: &'a u8) -> <u8 as Shr<u8>>::Output

impl<'a, 'b> Shr<&'a u8> for &'b u8

type Output = <u8 as Shr<u8>>::Output

fn shr(self, other: &'a u8) -> <u8 as Shr<u8>>::Output

impl Shr<u16> for u8

type Output = u8

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

impl<'a> Shr<u16> for &'a u8

type Output = <u8 as Shr<u16>>::Output

fn shr(self, other: u16) -> <u8 as Shr<u16>>::Output

impl<'a> Shr<&'a u16> for u8

type Output = <u8 as Shr<u16>>::Output

fn shr(self, other: &'a u16) -> <u8 as Shr<u16>>::Output

impl<'a, 'b> Shr<&'a u16> for &'b u8

type Output = <u8 as Shr<u16>>::Output

fn shr(self, other: &'a u16) -> <u8 as Shr<u16>>::Output

impl Shr<u32> for u8

type Output = u8

fn shr(self, other: u32) -> u8

impl<'a> Shr<u32> for &'a u8

type Output = <u8 as Shr<u32>>::Output

fn shr(self, other: u32) -> <u8 as Shr<u32>>::Output

impl<'a> Shr<&'a u32> for u8

type Output = <u8 as Shr<u32>>::Output

fn shr(self, other: &'a u32) -> <u8 as Shr<u32>>::Output

impl<'a, 'b> Shr<&'a u32> for &'b u8

type Output = <u8 as Shr<u32>>::Output

fn shr(self, other: &'a u32) -> <u8 as Shr<u32>>::Output

impl Shr<u64> for u8

type Output = u8

fn shr(self, other: u64) -> u8

impl<'a> Shr<u64> for &'a u8

type Output = <u8 as Shr<u64>>::Output

fn shr(self, other: u64) -> <u8 as Shr<u64>>::Output

impl<'a> Shr<&'a u64> for u8

type Output = <u8 as Shr<u64>>::Output

fn shr(self, other: &'a u64) -> <u8 as Shr<u64>>::Output

impl<'a, 'b> Shr<&'a u64> for &'b u8

type Output = <u8 as Shr<u64>>::Output

fn shr(self, other: &'a u64) -> <u8 as Shr<u64>>::Output

impl Shr<usize> for u8

type Output = u8

fn shr(self, other: usize) -> u8

impl<'a> Shr<usize> for &'a u8

type Output = <u8 as Shr<usize>>::Output

fn shr(self, other: usize) -> <u8 as Shr<usize>>::Output

impl<'a> Shr<&'a usize> for u8

type Output = <u8 as Shr<usize>>::Output

fn shr(self, other: &'a usize) -> <u8 as Shr<usize>>::Output

impl<'a, 'b> Shr<&'a usize> for &'b u8

type Output = <u8 as Shr<usize>>::Output

fn shr(self, other: &'a usize) -> <u8 as Shr<usize>>::Output

impl Shr<i8> for u8

type Output = u8

fn shr(self, other: i8) -> u8

impl<'a> Shr<i8> for &'a u8

type Output = <u8 as Shr<i8>>::Output

fn shr(self, other: i8) -> <u8 as Shr<i8>>::Output

impl<'a> Shr<&'a i8> for u8

type Output = <u8 as Shr<i8>>::Output

fn shr(self, other: &'a i8) -> <u8 as Shr<i8>>::Output

impl<'a, 'b> Shr<&'a i8> for &'b u8

type Output = <u8 as Shr<i8>>::Output

fn shr(self, other: &'a i8) -> <u8 as Shr<i8>>::Output

impl Shr<i16> for u8

type Output = u8

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

impl<'a> Shr<i16> for &'a u8

type Output = <u8 as Shr<i16>>::Output

fn shr(self, other: i16) -> <u8 as Shr<i16>>::Output

impl<'a> Shr<&'a i16> for u8

type Output = <u8 as Shr<i16>>::Output

fn shr(self, other: &'a i16) -> <u8 as Shr<i16>>::Output

impl<'a, 'b> Shr<&'a i16> for &'b u8

type Output = <u8 as Shr<i16>>::Output

fn shr(self, other: &'a i16) -> <u8 as Shr<i16>>::Output

impl Shr<i32> for u8

type Output = u8

fn shr(self, other: i32) -> u8

impl<'a> Shr<i32> for &'a u8

type Output = <u8 as Shr<i32>>::Output

fn shr(self, other: i32) -> <u8 as Shr<i32>>::Output

impl<'a> Shr<&'a i32> for u8

type Output = <u8 as Shr<i32>>::Output

fn shr(self, other: &'a i32) -> <u8 as Shr<i32>>::Output

impl<'a, 'b> Shr<&'a i32> for &'b u8

type Output = <u8 as Shr<i32>>::Output

fn shr(self, other: &'a i32) -> <u8 as Shr<i32>>::Output

impl Shr<i64> for u8

type Output = u8

fn shr(self, other: i64) -> u8

impl<'a> Shr<i64> for &'a u8

type Output = <u8 as Shr<i64>>::Output

fn shr(self, other: i64) -> <u8 as Shr<i64>>::Output

impl<'a> Shr<&'a i64> for u8

type Output = <u8 as Shr<i64>>::Output

fn shr(self, other: &'a i64) -> <u8 as Shr<i64>>::Output

impl<'a, 'b> Shr<&'a i64> for &'b u8

type Output = <u8 as Shr<i64>>::Output

fn shr(self, other: &'a i64) -> <u8 as Shr<i64>>::Output

impl Shr<isize> for u8

type Output = u8

fn shr(self, other: isize) -> u8

impl<'a> Shr<isize> for &'a u8

type Output = <u8 as Shr<isize>>::Output

fn shr(self, other: isize) -> <u8 as Shr<isize>>::Output

impl<'a> Shr<&'a isize> for u8

type Output = <u8 as Shr<isize>>::Output

fn shr(self, other: &'a isize) -> <u8 as Shr<isize>>::Output

impl<'a, 'b> Shr<&'a isize> for &'b u8

type Output = <u8 as Shr<isize>>::Output

fn shr(self, other: &'a isize) -> <u8 as Shr<isize>>::Output

impl PartialEq<u8> for u8

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

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

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

impl Eq for u8

fn assert_receiver_is_total_eq(&self)

impl PartialOrd<u8> for u8

fn partial_cmp(&self, other: &u8) -> Option<Ordering>

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

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

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

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

fn lt(&self, &u8) -> bool

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

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

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

impl Ord for u8

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

impl Clone for u8

fn clone(&self) -> u8

Return a deep copy of the value.

fn clone_from(&mut self, &u8)

impl Default for u8

fn default() -> u8

impl Hash for u8

fn hash<H>(&self, state: &mut H) where H: Hasher

fn hash_slice<H>(data: &[u8], state: &mut H) where H: Hasher

fn hash_slice<H>(&[u8], &mut H) where H: Hasher, u8: Sized

impl Display for u8

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

impl Binary for u8

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

impl Octal for u8

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

impl LowerHex for u8

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

impl UpperHex for u8

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

impl Debug for u8

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

impl AsciiExt for u8

type Owned = u8

fn is_ascii(&self) -> bool

fn to_ascii_uppercase(&self) -> u8

fn to_ascii_lowercase(&self) -> u8

fn eq_ignore_ascii_case(&self, other: &u8) -> bool

fn make_ascii_uppercase(&mut self)

fn make_ascii_lowercase(&mut self)

impl SampleRange for u8

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

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

impl Rand for u8

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