Type Alias serde::lib::core::ffi::c_uchar

1.64.0 · source ·
pub type c_uchar = u8;
Expand description

Equivalent to C’s unsigned char type.

This type will always be u8, but is included for completeness. It is defined as being an unsigned integer the same size as a C char.

Trait Implementations§

1.0.0 · source§

impl Add<&u8> for u8

§

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

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
1.0.0 · source§

impl Add<u8> for u8

§

type Output = u8

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
1.22.0 · source§

impl AddAssign<&u8> for u8

source§

fn add_assign(&mut self, other: &u8)

Performs the += operation. Read more
1.8.0 · source§

impl AddAssign<u8> for u8

source§

fn add_assign(&mut self, other: u8)

Performs the += operation. Read more
1.0.0 · source§

impl AsciiExt for u8

§

type Owned = u8

👎Deprecated since 1.26.0: use inherent methods instead
Container type for copied ASCII characters.
source§

fn is_ascii(&self) -> bool

👎Deprecated since 1.26.0: use inherent methods instead
Checks if the value is within the ASCII range. Read more
source§

fn to_ascii_uppercase(&self) -> <u8 as AsciiExt>::Owned

👎Deprecated since 1.26.0: use inherent methods instead
Makes a copy of the value in its ASCII upper case equivalent. Read more
source§

fn to_ascii_lowercase(&self) -> <u8 as AsciiExt>::Owned

👎Deprecated since 1.26.0: use inherent methods instead
Makes a copy of the value in its ASCII lower case equivalent. Read more
source§

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

👎Deprecated since 1.26.0: use inherent methods instead
Checks that two values are an ASCII case-insensitive match. Read more
source§

fn make_ascii_uppercase(&mut self)

👎Deprecated since 1.26.0: use inherent methods instead
Converts this type to its ASCII upper case equivalent in-place. Read more
source§

fn make_ascii_lowercase(&mut self)

👎Deprecated since 1.26.0: use inherent methods instead
Converts this type to its ASCII lower case equivalent in-place. Read more
1.0.0 · source§

impl Binary for u8

source§

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

Formats the value using the given formatter.
1.0.0 · source§

impl BitAnd<&u8> for u8

§

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

The resulting type after applying the & operator.
source§

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

Performs the & operation. Read more
1.0.0 · source§

impl BitAnd<u8> for u8

§

type Output = u8

The resulting type after applying the & operator.
source§

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

Performs the & operation. Read more
1.22.0 · source§

impl BitAndAssign<&u8> for u8

source§

fn bitand_assign(&mut self, other: &u8)

Performs the &= operation. Read more
1.8.0 · source§

impl BitAndAssign<u8> for u8

source§

fn bitand_assign(&mut self, other: u8)

Performs the &= operation. Read more
1.0.0 · source§

impl BitOr<&u8> for u8

§

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

The resulting type after applying the | operator.
source§

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

Performs the | operation. Read more
1.45.0 · source§

impl BitOr<NonZeroU8> for u8

§

type Output = NonZeroU8

The resulting type after applying the | operator.
source§

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

Performs the | operation. Read more
1.0.0 · source§

impl BitOr<u8> for u8

§

type Output = u8

The resulting type after applying the | operator.
source§

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

Performs the | operation. Read more
1.22.0 · source§

impl BitOrAssign<&u8> for u8

source§

fn bitor_assign(&mut self, other: &u8)

Performs the |= operation. Read more
1.8.0 · source§

impl BitOrAssign<u8> for u8

source§

fn bitor_assign(&mut self, other: u8)

Performs the |= operation. Read more
1.0.0 · source§

impl BitXor<&u8> for u8

§

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

The resulting type after applying the ^ operator.
source§

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

Performs the ^ operation. Read more
1.0.0 · source§

impl BitXor<u8> for u8

§

type Output = u8

The resulting type after applying the ^ operator.
source§

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

Performs the ^ operation. Read more
1.22.0 · source§

impl BitXorAssign<&u8> for u8

source§

fn bitxor_assign(&mut self, other: &u8)

Performs the ^= operation. Read more
1.8.0 · source§

impl BitXorAssign<u8> for u8

source§

fn bitxor_assign(&mut self, other: u8)

Performs the ^= operation. Read more
1.0.0 · source§

impl Clone for u8

source§

fn clone(&self) -> u8

Returns a copy of the value. Read more
1.0.0 · source§

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

Performs copy-assignment from source. Read more
1.0.0 · source§

impl Debug for u8

source§

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

Formats the value using the given formatter. Read more
1.0.0 · source§

impl Default for u8

source§

fn default() -> u8

Returns the default value of 0

source§

impl<'de> Deserialize<'de> for u8

source§

fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
1.0.0 · source§

impl Display for u8

source§

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

Formats the value using the given formatter. Read more
1.0.0 · source§

impl Div<&u8> for u8

§

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

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
1.51.0 · source§

impl Div<NonZeroU8> for u8

source§

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

This operation rounds towards zero, truncating any fractional part of the exact result, and cannot panic.

§

type Output = u8

The resulting type after applying the / operator.
1.0.0 · source§

impl Div<u8> for u8

This operation rounds towards zero, truncating any fractional part of the exact result.

Panics

This operation will panic if other == 0.

§

type Output = u8

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
1.22.0 · source§

impl DivAssign<&u8> for u8

source§

fn div_assign(&mut self, other: &u8)

Performs the /= operation. Read more
1.8.0 · source§

impl DivAssign<u8> for u8

source§

fn div_assign(&mut self, other: u8)

Performs the /= operation. Read more
1.31.0 · source§

impl From<NonZeroU8> for u8

source§

fn from(nonzero: NonZeroU8) -> u8

Converts a NonZeroU8 into an u8

1.28.0 · source§

impl From<bool> for u8

source§

fn from(small: bool) -> u8

Converts a bool to a u8. The resulting value is 0 for false and 1 for true values.

Examples
assert_eq!(u8::from(true), 1);
assert_eq!(u8::from(false), 0);
1.0.0 · source§

impl FromStr for u8

§

type Err = ParseIntError

The associated error which can be returned from parsing.
source§

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

Parses a string s to return a value of this type. Read more
1.0.0 · source§

impl Hash for u8

source§

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

Feeds this value into the given Hasher. Read more
source§

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

Feeds a slice of this type into the given Hasher. Read more
source§

impl<'de, E> IntoDeserializer<'de, E> for u8where E: Error,

§

type Deserializer = U8Deserializer<E>

The type of the deserializer being converted into.
source§

fn into_deserializer(self) -> U8Deserializer<E>

Convert this value into a deserializer.
1.42.0 · source§

impl LowerExp for u8

source§

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

Formats the value using the given formatter.
1.0.0 · source§

impl LowerHex for u8

source§

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

Formats the value using the given formatter.
1.0.0 · source§

impl Mul<&u8> for u8

§

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

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
1.0.0 · source§

impl Mul<u8> for u8

§

type Output = u8

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
1.22.0 · source§

impl MulAssign<&u8> for u8

source§

fn mul_assign(&mut self, other: &u8)

Performs the *= operation. Read more
1.8.0 · source§

impl MulAssign<u8> for u8

source§

fn mul_assign(&mut self, other: u8)

Performs the *= operation. Read more
1.0.0 · source§

impl Not for u8

§

type Output = u8

The resulting type after applying the ! operator.
source§

fn not(self) -> u8

Performs the unary ! operation. Read more
1.0.0 · source§

impl Octal for u8

source§

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

Formats the value using the given formatter.
1.0.0 · source§

impl Ord for u8

source§

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

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>,

Restrict a value to a certain interval. Read more
1.0.0 · source§

impl PartialEq<u8> for u8

source§

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

This method tests for self and other values to be equal, and is used by ==.
source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
1.0.0 · source§

impl PartialOrd<u8> for u8

source§

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

This method returns an ordering between self and other values if one exists. Read more
source§

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

This method tests less than (for self and other) and is used by the < operator. Read more
source§

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

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
source§

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

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

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

This method tests greater than (for self and other) and is used by the > operator. Read more
1.12.0 · source§

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

source§

fn product<I>(iter: I) -> u8where I: Iterator<Item = &'a u8>,

Method which takes an iterator and generates Self from the elements by multiplying the items.
1.12.0 · source§

impl Product<u8> for u8

source§

fn product<I>(iter: I) -> u8where I: Iterator<Item = u8>,

Method which takes an iterator and generates Self from the elements by multiplying the items.
1.0.0 · source§

impl Rem<&u8> for u8

§

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

The resulting type after applying the % operator.
source§

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

Performs the % operation. Read more
1.51.0 · source§

impl Rem<NonZeroU8> for u8

source§

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

This operation satisfies n % d == n - (n / d) * d, and cannot panic.

§

type Output = u8

The resulting type after applying the % operator.
1.0.0 · source§

impl Rem<u8> for u8

This operation satisfies n % d == n - (n / d) * d. The result has the same sign as the left operand.

Panics

This operation will panic if other == 0.

§

type Output = u8

The resulting type after applying the % operator.
source§

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

Performs the % operation. Read more
1.22.0 · source§

impl RemAssign<&u8> for u8

source§

fn rem_assign(&mut self, other: &u8)

Performs the %= operation. Read more
1.8.0 · source§

impl RemAssign<u8> for u8

source§

fn rem_assign(&mut self, other: u8)

Performs the %= operation. Read more
source§

impl Serialize for u8

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>where S: Serializer,

Serialize this value into the given Serde serializer. Read more
1.0.0 · source§

impl Shl<&i128> for u8

§

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

The resulting type after applying the << operator.
source§

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

Performs the << operation. Read more
1.0.0 · source§

impl Shl<&i16> for u8

§

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

The resulting type after applying the << operator.
source§

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

Performs the << operation. Read more
1.0.0 · source§

impl Shl<&i32> for u8

§

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

The resulting type after applying the << operator.
source§

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

Performs the << operation. Read more
1.0.0 · source§

impl Shl<&i64> for u8

§

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

The resulting type after applying the << operator.
source§

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

Performs the << operation. Read more
1.0.0 · source§

impl Shl<&i8> for u8

§

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

The resulting type after applying the << operator.
source§

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

Performs the << operation. Read more
1.0.0 · source§

impl Shl<&isize> for u8

§

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

The resulting type after applying the << operator.
source§

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

Performs the << operation. Read more
1.0.0 · source§

impl Shl<&u128> for u8

§

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

The resulting type after applying the << operator.
source§

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

Performs the << operation. Read more
1.0.0 · source§

impl Shl<&u16> for u8

§

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

The resulting type after applying the << operator.
source§

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

Performs the << operation. Read more
1.0.0 · source§

impl Shl<&u32> for u8

§

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

The resulting type after applying the << operator.
source§

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

Performs the << operation. Read more
1.0.0 · source§

impl Shl<&u64> for u8

§

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

The resulting type after applying the << operator.
source§

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

Performs the << operation. Read more
1.0.0 · source§

impl Shl<&u8> for u8

§

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

The resulting type after applying the << operator.
source§

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

Performs the << operation. Read more
1.0.0 · source§

impl Shl<&usize> for u8

§

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

The resulting type after applying the << operator.
source§

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

Performs the << operation. Read more
1.0.0 · source§

impl Shl<i128> for u8

§

type Output = u8

The resulting type after applying the << operator.
source§

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

Performs the << operation. Read more
1.0.0 · source§

impl Shl<i16> for u8

§

type Output = u8

The resulting type after applying the << operator.
source§

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

Performs the << operation. Read more
1.0.0 · source§

impl Shl<i32> for u8

§

type Output = u8

The resulting type after applying the << operator.
source§

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

Performs the << operation. Read more
1.0.0 · source§

impl Shl<i64> for u8

§

type Output = u8

The resulting type after applying the << operator.
source§

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

Performs the << operation. Read more
1.0.0 · source§

impl Shl<i8> for u8

§

type Output = u8

The resulting type after applying the << operator.
source§

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

Performs the << operation. Read more
1.0.0 · source§

impl Shl<isize> for u8

§

type Output = u8

The resulting type after applying the << operator.
source§

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

Performs the << operation. Read more
1.0.0 · source§

impl Shl<u128> for u8

§

type Output = u8

The resulting type after applying the << operator.
source§

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

Performs the << operation. Read more
1.0.0 · source§

impl Shl<u16> for u8

§

type Output = u8

The resulting type after applying the << operator.
source§

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

Performs the << operation. Read more
1.0.0 · source§

impl Shl<u32> for u8

§

type Output = u8

The resulting type after applying the << operator.
source§

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

Performs the << operation. Read more
1.0.0 · source§

impl Shl<u64> for u8

§

type Output = u8

The resulting type after applying the << operator.
source§

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

Performs the << operation. Read more
1.0.0 · source§

impl Shl<u8> for u8

§

type Output = u8

The resulting type after applying the << operator.
source§

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

Performs the << operation. Read more
1.0.0 · source§

impl Shl<usize> for u8

§

type Output = u8

The resulting type after applying the << operator.
source§

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

Performs the << operation. Read more
1.22.0 · source§

impl ShlAssign<&i128> for u8

source§

fn shl_assign(&mut self, other: &i128)

Performs the <<= operation. Read more
1.22.0 · source§

impl ShlAssign<&i16> for u8

source§

fn shl_assign(&mut self, other: &i16)

Performs the <<= operation. Read more
1.22.0 · source§

impl ShlAssign<&i32> for u8

source§

fn shl_assign(&mut self, other: &i32)

Performs the <<= operation. Read more
1.22.0 · source§

impl ShlAssign<&i64> for u8

source§

fn shl_assign(&mut self, other: &i64)

Performs the <<= operation. Read more
1.22.0 · source§

impl ShlAssign<&i8> for u8

source§

fn shl_assign(&mut self, other: &i8)

Performs the <<= operation. Read more
1.22.0 · source§

impl ShlAssign<&isize> for u8

source§

fn shl_assign(&mut self, other: &isize)

Performs the <<= operation. Read more
1.22.0 · source§

impl ShlAssign<&u128> for u8

source§

fn shl_assign(&mut self, other: &u128)

Performs the <<= operation. Read more
1.22.0 · source§

impl ShlAssign<&u16> for u8

source§

fn shl_assign(&mut self, other: &u16)

Performs the <<= operation. Read more
1.22.0 · source§

impl ShlAssign<&u32> for u8

source§

fn shl_assign(&mut self, other: &u32)

Performs the <<= operation. Read more
1.22.0 · source§

impl ShlAssign<&u64> for u8

source§

fn shl_assign(&mut self, other: &u64)

Performs the <<= operation. Read more
1.22.0 · source§

impl ShlAssign<&u8> for u8

source§

fn shl_assign(&mut self, other: &u8)

Performs the <<= operation. Read more
1.22.0 · source§

impl ShlAssign<&usize> for u8

source§

fn shl_assign(&mut self, other: &usize)

Performs the <<= operation. Read more
1.8.0 · source§

impl ShlAssign<i128> for u8

source§

fn shl_assign(&mut self, other: i128)

Performs the <<= operation. Read more
1.8.0 · source§

impl ShlAssign<i16> for u8

source§

fn shl_assign(&mut self, other: i16)

Performs the <<= operation. Read more
1.8.0 · source§

impl ShlAssign<i32> for u8

source§

fn shl_assign(&mut self, other: i32)

Performs the <<= operation. Read more
1.8.0 · source§

impl ShlAssign<i64> for u8

source§

fn shl_assign(&mut self, other: i64)

Performs the <<= operation. Read more
1.8.0 · source§

impl ShlAssign<i8> for u8

source§

fn shl_assign(&mut self, other: i8)

Performs the <<= operation. Read more
1.8.0 · source§

impl ShlAssign<isize> for u8

source§

fn shl_assign(&mut self, other: isize)

Performs the <<= operation. Read more
1.8.0 · source§

impl ShlAssign<u128> for u8

source§

fn shl_assign(&mut self, other: u128)

Performs the <<= operation. Read more
1.8.0 · source§

impl ShlAssign<u16> for u8

source§

fn shl_assign(&mut self, other: u16)

Performs the <<= operation. Read more
1.8.0 · source§

impl ShlAssign<u32> for u8

source§

fn shl_assign(&mut self, other: u32)

Performs the <<= operation. Read more
1.8.0 · source§

impl ShlAssign<u64> for u8

source§

fn shl_assign(&mut self, other: u64)

Performs the <<= operation. Read more
1.8.0 · source§

impl ShlAssign<u8> for u8

source§

fn shl_assign(&mut self, other: u8)

Performs the <<= operation. Read more
1.8.0 · source§

impl ShlAssign<usize> for u8

source§

fn shl_assign(&mut self, other: usize)

Performs the <<= operation. Read more
1.0.0 · source§

impl Shr<&i128> for u8

§

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

The resulting type after applying the >> operator.
source§

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

Performs the >> operation. Read more
1.0.0 · source§

impl Shr<&i16> for u8

§

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

The resulting type after applying the >> operator.
source§

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

Performs the >> operation. Read more
1.0.0 · source§

impl Shr<&i32> for u8

§

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

The resulting type after applying the >> operator.
source§

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

Performs the >> operation. Read more
1.0.0 · source§

impl Shr<&i64> for u8

§

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

The resulting type after applying the >> operator.
source§

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

Performs the >> operation. Read more
1.0.0 · source§

impl Shr<&i8> for u8

§

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

The resulting type after applying the >> operator.
source§

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

Performs the >> operation. Read more
1.0.0 · source§

impl Shr<&isize> for u8

§

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

The resulting type after applying the >> operator.
source§

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

Performs the >> operation. Read more
1.0.0 · source§

impl Shr<&u128> for u8

§

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

The resulting type after applying the >> operator.
source§

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

Performs the >> operation. Read more
1.0.0 · source§

impl Shr<&u16> for u8

§

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

The resulting type after applying the >> operator.
source§

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

Performs the >> operation. Read more
1.0.0 · source§

impl Shr<&u32> for u8

§

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

The resulting type after applying the >> operator.
source§

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

Performs the >> operation. Read more
1.0.0 · source§

impl Shr<&u64> for u8

§

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

The resulting type after applying the >> operator.
source§

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

Performs the >> operation. Read more
1.0.0 · source§

impl Shr<&u8> for u8

§

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

The resulting type after applying the >> operator.
source§

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

Performs the >> operation. Read more
1.0.0 · source§

impl Shr<&usize> for u8

§

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

The resulting type after applying the >> operator.
source§

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

Performs the >> operation. Read more
1.0.0 · source§

impl Shr<i128> for u8

§

type Output = u8

The resulting type after applying the >> operator.
source§

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

Performs the >> operation. Read more
1.0.0 · source§

impl Shr<i16> for u8

§

type Output = u8

The resulting type after applying the >> operator.
source§

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

Performs the >> operation. Read more
1.0.0 · source§

impl Shr<i32> for u8

§

type Output = u8

The resulting type after applying the >> operator.
source§

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

Performs the >> operation. Read more
1.0.0 · source§

impl Shr<i64> for u8

§

type Output = u8

The resulting type after applying the >> operator.
source§

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

Performs the >> operation. Read more
1.0.0 · source§

impl Shr<i8> for u8

§

type Output = u8

The resulting type after applying the >> operator.
source§

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

Performs the >> operation. Read more
1.0.0 · source§

impl Shr<isize> for u8

§

type Output = u8

The resulting type after applying the >> operator.
source§

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

Performs the >> operation. Read more
1.0.0 · source§

impl Shr<u128> for u8

§

type Output = u8

The resulting type after applying the >> operator.
source§

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

Performs the >> operation. Read more
1.0.0 · source§

impl Shr<u16> for u8

§

type Output = u8

The resulting type after applying the >> operator.
source§

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

Performs the >> operation. Read more
1.0.0 · source§

impl Shr<u32> for u8

§

type Output = u8

The resulting type after applying the >> operator.
source§

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

Performs the >> operation. Read more
1.0.0 · source§

impl Shr<u64> for u8

§

type Output = u8

The resulting type after applying the >> operator.
source§

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

Performs the >> operation. Read more
1.0.0 · source§

impl Shr<u8> for u8

§

type Output = u8

The resulting type after applying the >> operator.
source§

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

Performs the >> operation. Read more
1.0.0 · source§

impl Shr<usize> for u8

§

type Output = u8

The resulting type after applying the >> operator.
source§

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

Performs the >> operation. Read more
1.22.0 · source§

impl ShrAssign<&i128> for u8

source§

fn shr_assign(&mut self, other: &i128)

Performs the >>= operation. Read more
1.22.0 · source§

impl ShrAssign<&i16> for u8

source§

fn shr_assign(&mut self, other: &i16)

Performs the >>= operation. Read more
1.22.0 · source§

impl ShrAssign<&i32> for u8

source§

fn shr_assign(&mut self, other: &i32)

Performs the >>= operation. Read more
1.22.0 · source§

impl ShrAssign<&i64> for u8

source§

fn shr_assign(&mut self, other: &i64)

Performs the >>= operation. Read more
1.22.0 · source§

impl ShrAssign<&i8> for u8

source§

fn shr_assign(&mut self, other: &i8)

Performs the >>= operation. Read more
1.22.0 · source§

impl ShrAssign<&isize> for u8

source§

fn shr_assign(&mut self, other: &isize)

Performs the >>= operation. Read more
1.22.0 · source§

impl ShrAssign<&u128> for u8

source§

fn shr_assign(&mut self, other: &u128)

Performs the >>= operation. Read more
1.22.0 · source§

impl ShrAssign<&u16> for u8

source§

fn shr_assign(&mut self, other: &u16)

Performs the >>= operation. Read more
1.22.0 · source§

impl ShrAssign<&u32> for u8

source§

fn shr_assign(&mut self, other: &u32)

Performs the >>= operation. Read more
1.22.0 · source§

impl ShrAssign<&u64> for u8

source§

fn shr_assign(&mut self, other: &u64)

Performs the >>= operation. Read more
1.22.0 · source§

impl ShrAssign<&u8> for u8

source§

fn shr_assign(&mut self, other: &u8)

Performs the >>= operation. Read more
1.22.0 · source§

impl ShrAssign<&usize> for u8

source§

fn shr_assign(&mut self, other: &usize)

Performs the >>= operation. Read more
1.8.0 · source§

impl ShrAssign<i128> for u8

source§

fn shr_assign(&mut self, other: i128)

Performs the >>= operation. Read more
1.8.0 · source§

impl ShrAssign<i16> for u8

source§

fn shr_assign(&mut self, other: i16)

Performs the >>= operation. Read more
1.8.0 · source§

impl ShrAssign<i32> for u8

source§

fn shr_assign(&mut self, other: i32)

Performs the >>= operation. Read more
1.8.0 · source§

impl ShrAssign<i64> for u8

source§

fn shr_assign(&mut self, other: i64)

Performs the >>= operation. Read more
1.8.0 · source§

impl ShrAssign<i8> for u8

source§

fn shr_assign(&mut self, other: i8)

Performs the >>= operation. Read more
1.8.0 · source§

impl ShrAssign<isize> for u8

source§

fn shr_assign(&mut self, other: isize)

Performs the >>= operation. Read more
1.8.0 · source§

impl ShrAssign<u128> for u8

source§

fn shr_assign(&mut self, other: u128)

Performs the >>= operation. Read more
1.8.0 · source§

impl ShrAssign<u16> for u8

source§

fn shr_assign(&mut self, other: u16)

Performs the >>= operation. Read more
1.8.0 · source§

impl ShrAssign<u32> for u8

source§

fn shr_assign(&mut self, other: u32)

Performs the >>= operation. Read more
1.8.0 · source§

impl ShrAssign<u64> for u8

source§

fn shr_assign(&mut self, other: u64)

Performs the >>= operation. Read more
1.8.0 · source§

impl ShrAssign<u8> for u8

source§

fn shr_assign(&mut self, other: u8)

Performs the >>= operation. Read more
1.8.0 · source§

impl ShrAssign<usize> for u8

source§

fn shr_assign(&mut self, other: usize)

Performs the >>= operation. Read more
source§

impl SimdElement for u8

§

type Mask = i8

🔬This is a nightly-only experimental API. (portable_simd)
The mask element type corresponding to this element type.
source§

impl Step for u8

source§

unsafe fn forward_unchecked(start: u8, n: usize) -> u8

🔬This is a nightly-only experimental API. (step_trait)
Returns the value that would be obtained by taking the successor of self count times. Read more
source§

unsafe fn backward_unchecked(start: u8, n: usize) -> u8

🔬This is a nightly-only experimental API. (step_trait)
Returns the value that would be obtained by taking the predecessor of self count times. Read more
source§

fn forward(start: u8, n: usize) -> u8

🔬This is a nightly-only experimental API. (step_trait)
Returns the value that would be obtained by taking the successor of self count times. Read more
source§

fn backward(start: u8, n: usize) -> u8

🔬This is a nightly-only experimental API. (step_trait)
Returns the value that would be obtained by taking the predecessor of self count times. Read more
source§

fn steps_between(start: &u8, end: &u8) -> Option<usize>

🔬This is a nightly-only experimental API. (step_trait)
Returns the number of successor steps required to get from start to end. Read more
source§

fn forward_checked(start: u8, n: usize) -> Option<u8>

🔬This is a nightly-only experimental API. (step_trait)
Returns the value that would be obtained by taking the successor of self count times. Read more
source§

fn backward_checked(start: u8, n: usize) -> Option<u8>

🔬This is a nightly-only experimental API. (step_trait)
Returns the value that would be obtained by taking the predecessor of self count times. Read more
1.0.0 · source§

impl Sub<&u8> for u8

§

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

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
1.0.0 · source§

impl Sub<u8> for u8

§

type Output = u8

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
1.22.0 · source§

impl SubAssign<&u8> for u8

source§

fn sub_assign(&mut self, other: &u8)

Performs the -= operation. Read more
1.8.0 · source§

impl SubAssign<u8> for u8

source§

fn sub_assign(&mut self, other: u8)

Performs the -= operation. Read more
1.12.0 · source§

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

source§

fn sum<I>(iter: I) -> u8where I: Iterator<Item = &'a u8>,

Method which takes an iterator and generates Self from the elements by “summing up” the items.
1.12.0 · source§

impl Sum<u8> for u8

source§

fn sum<I>(iter: I) -> u8where I: Iterator<Item = u8>,

Method which takes an iterator and generates Self from the elements by “summing up” the items.
1.59.0 · source§

impl TryFrom<char> for u8

Maps a char with code point in U+0000..=U+00FF to a byte in 0x00..=0xFF with same value, failing if the code point is greater than U+00FF.

See impl From<u8> for char for details on the encoding.

source§

fn try_from(c: char) -> Result<u8, <u8 as TryFrom<char>>::Error>

Tries to convert a char into a u8.

Examples
let a = 'ÿ'; // U+00FF
let b = 'Ā'; // U+0100
assert_eq!(u8::try_from(a), Ok(0xFF_u8));
assert!(u8::try_from(b).is_err());
§

type Error = TryFromCharError

The type returned in the event of a conversion error.
1.34.0 · source§

impl TryFrom<i128> for u8

source§

fn try_from(u: i128) -> Result<u8, <u8 as TryFrom<i128>>::Error>

Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
1.34.0 · source§

impl TryFrom<i16> for u8

source§

fn try_from(u: i16) -> Result<u8, <u8 as TryFrom<i16>>::Error>

Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
1.34.0 · source§

impl TryFrom<i32> for u8

source§

fn try_from(u: i32) -> Result<u8, <u8 as TryFrom<i32>>::Error>

Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
1.34.0 · source§

impl TryFrom<i64> for u8

source§

fn try_from(u: i64) -> Result<u8, <u8 as TryFrom<i64>>::Error>

Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
1.34.0 · source§

impl TryFrom<i8> for u8

source§

fn try_from(u: i8) -> Result<u8, <u8 as TryFrom<i8>>::Error>

Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
1.34.0 · source§

impl TryFrom<isize> for u8

source§

fn try_from(u: isize) -> Result<u8, <u8 as TryFrom<isize>>::Error>

Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
1.34.0 · source§

impl TryFrom<u128> for u8

source§

fn try_from(u: u128) -> Result<u8, <u8 as TryFrom<u128>>::Error>

Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
1.34.0 · source§

impl TryFrom<u16> for u8

source§

fn try_from(u: u16) -> Result<u8, <u8 as TryFrom<u16>>::Error>

Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
1.34.0 · source§

impl TryFrom<u32> for u8

source§

fn try_from(u: u32) -> Result<u8, <u8 as TryFrom<u32>>::Error>

Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
1.34.0 · source§

impl TryFrom<u64> for u8

source§

fn try_from(u: u64) -> Result<u8, <u8 as TryFrom<u64>>::Error>

Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
1.34.0 · source§

impl TryFrom<usize> for u8

source§

fn try_from(u: usize) -> Result<u8, <u8 as TryFrom<usize>>::Error>

Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
1.42.0 · source§

impl UpperExp for u8

source§

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

Formats the value using the given formatter.
1.0.0 · source§

impl UpperHex for u8

source§

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

Formats the value using the given formatter.
source§

impl ConstParamTy for u8

1.0.0 · source§

impl Copy for u8

1.0.0 · source§

impl Eq for u8

source§

impl SimdCast for u8

source§

impl StructuralEq for u8

source§

impl StructuralPartialEq for u8

source§

impl TrustedStep for u8