Struct llm_weaver::BoundedU8

source ·
pub struct BoundedU8<const MIN: u8, const MAX: u8>(/* private fields */);
Expand description

An u8 constrained to be in the range MIN..=MAX.

Implementations§

source§

impl<const MIN: u8, const MAX: u8> Bounded<MIN, MAX>

source

pub const MIN_VALUE: u8 = MIN

The smallest value this bounded integer can contain.

source

pub const MAX_VALUE: u8 = MAX

The largest value that this bounded integer can contain.

source

pub const MIN: Bounded<MIN, MAX> = _

The smallest value of the bounded integer.

source

pub const MAX: Bounded<MIN, MAX> = _

The largest value of the bounded integer.

source

pub const unsafe fn new_unchecked(n: u8) -> Bounded<MIN, MAX>

Creates a bounded integer without checking the value.

§Safety

The value must not be outside the valid range of values; it must not be less than MIN_VALUE or greater than MAX_VALUE.

source

pub unsafe fn new_ref_unchecked(n: &u8) -> &Bounded<MIN, MAX>

Creates a shared reference to a bounded integer from a shared reference to a primitive.

§Safety

The value must not be outside the valid range of values; it must not be less than MIN_VALUE or greater than MAX_VALUE.

source

pub unsafe fn new_mut_unchecked(n: &mut u8) -> &mut Bounded<MIN, MAX>

Creates a mutable reference to a bounded integer from a mutable reference to a primitive.

§Safety

The value must not be outside the valid range of values; it must not be less than MIN_VALUE or greater than MAX_VALUE.

source

pub const fn in_range(n: u8) -> bool

Checks whether the given value is in the range of the bounded integer.

source

pub const fn new(n: u8) -> Option<Bounded<MIN, MAX>>

Creates a bounded integer if the given value is within the range [MIN, MAX].

source

pub fn new_ref(n: &u8) -> Option<&Bounded<MIN, MAX>>

Creates a reference to a bounded integer from a reference to a primitive if the given value is within the range [MIN, MAX].

source

pub fn new_mut(n: &mut u8) -> Option<&mut Bounded<MIN, MAX>>

Creates a mutable reference to a bounded integer from a mutable reference to a primitive if the given value is within the range [MIN, MAX].

source

pub const fn new_saturating(n: u8) -> Bounded<MIN, MAX>

Creates a bounded integer by setting the value to MIN or MAX if it is too low or too high respectively.

source

pub fn from_str_radix( src: &str, radix: u32 ) -> Result<Bounded<MIN, MAX>, ParseError>

Converts a string slice in a given base to the bounded integer.

§Panics

Panics if radix is below 2 or above 36.

source

pub const fn get(self) -> u8

Returns the value of the bounded integer as a primitive type.

source

pub const fn get_ref(&self) -> &u8

Returns a shared reference to the value of the bounded integer.

source

pub unsafe fn get_mut(&mut self) -> &mut u8

Returns a mutable reference to the value of the bounded integer.

§Safety

This value must never be set to a value beyond the range of the bounded integer.

source

pub fn pow(self, exp: u32) -> Bounded<MIN, MAX>

Raises self to the power of exp, using exponentiation by squaring. Panics if it is out of range.

source

pub fn div_euclid(self, rhs: u8) -> Bounded<MIN, MAX>

Calculates the quotient of Euclidean division of self by rhs. Panics if rhs is 0 or the result is out of range.

source

pub fn rem_euclid(self, rhs: u8) -> Bounded<MIN, MAX>

Calculates the least nonnegative remainder of self (mod rhs). Panics if rhs is 0 or the result is out of range.

source

pub const fn checked_add(self, rhs: u8) -> Option<Bounded<MIN, MAX>>

Checked integer addition.

source

pub const fn saturating_add(self, rhs: u8) -> Bounded<MIN, MAX>

Saturating integer addition.

source

pub const fn checked_sub(self, rhs: u8) -> Option<Bounded<MIN, MAX>>

Checked integer subtraction.

source

pub const fn saturating_sub(self, rhs: u8) -> Bounded<MIN, MAX>

Saturating integer subtraction.

source

pub const fn checked_mul(self, rhs: u8) -> Option<Bounded<MIN, MAX>>

Checked integer multiplication.

source

pub const fn saturating_mul(self, rhs: u8) -> Bounded<MIN, MAX>

Saturating integer multiplication.

source

pub const fn checked_div(self, rhs: u8) -> Option<Bounded<MIN, MAX>>

Checked integer division.

source

pub const fn checked_div_euclid(self, rhs: u8) -> Option<Bounded<MIN, MAX>>

Checked Euclidean division.

source

pub const fn checked_rem(self, rhs: u8) -> Option<Bounded<MIN, MAX>>

Checked integer remainder.

source

pub const fn checked_rem_euclid(self, rhs: u8) -> Option<Bounded<MIN, MAX>>

Checked Euclidean remainder.

source

pub const fn checked_neg(self) -> Option<Bounded<MIN, MAX>>

Checked negation.

source

pub const fn checked_pow(self, rhs: u32) -> Option<Bounded<MIN, MAX>>

Checked exponentiation.

source

pub const fn saturating_pow(self, rhs: u32) -> Bounded<MIN, MAX>

Saturating exponentiation.

source

pub const fn checked_shl(self, rhs: u32) -> Option<Bounded<MIN, MAX>>

Checked shift left.

source

pub const fn checked_shr(self, rhs: u32) -> Option<Bounded<MIN, MAX>>

Checked shift right.

Trait Implementations§

source§

impl<const L_MIN: u8, const L_MAX: u8, const R_MIN: u8, const R_MAX: u8> Add<&Bounded<R_MIN, R_MAX>> for &Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

The resulting type after applying the + operator.
source§

fn add( self, rhs: &Bounded<R_MIN, R_MAX> ) -> <&Bounded<L_MIN, L_MAX> as Add<&Bounded<R_MIN, R_MAX>>>::Output

Performs the + operation. Read more
source§

impl<const L_MIN: u8, const L_MAX: u8, const R_MIN: u8, const R_MAX: u8> Add<&Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

The resulting type after applying the + operator.
source§

fn add( self, rhs: &Bounded<R_MIN, R_MAX> ) -> <Bounded<L_MIN, L_MAX> as Add<&Bounded<R_MIN, R_MAX>>>::Output

Performs the + operation. Read more
source§

impl<const MIN: u8, const MAX: u8> Add<&u8> for &Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &u8) -> <&Bounded<MIN, MAX> as Add<&u8>>::Output

Performs the + operation. Read more
source§

impl<const MIN: u8, const MAX: u8> Add<&u8> for Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &u8) -> <Bounded<MIN, MAX> as Add<&u8>>::Output

Performs the + operation. Read more
source§

impl<const L_MIN: u8, const L_MAX: u8, const R_MIN: u8, const R_MAX: u8> Add<Bounded<R_MIN, R_MAX>> for &Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

The resulting type after applying the + operator.
source§

fn add( self, rhs: Bounded<R_MIN, R_MAX> ) -> <&Bounded<L_MIN, L_MAX> as Add<Bounded<R_MIN, R_MAX>>>::Output

Performs the + operation. Read more
source§

impl<const L_MIN: u8, const L_MAX: u8, const R_MIN: u8, const R_MAX: u8> Add<Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

The resulting type after applying the + operator.
source§

fn add( self, rhs: Bounded<R_MIN, R_MAX> ) -> <Bounded<L_MIN, L_MAX> as Add<Bounded<R_MIN, R_MAX>>>::Output

Performs the + operation. Read more
source§

impl<const MIN: u8, const MAX: u8> Add<u8> for &Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

The resulting type after applying the + operator.
source§

fn add(self, rhs: u8) -> <&Bounded<MIN, MAX> as Add<u8>>::Output

Performs the + operation. Read more
source§

impl<const MIN: u8, const MAX: u8> Add<u8> for Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

The resulting type after applying the + operator.
source§

fn add(self, rhs: u8) -> <Bounded<MIN, MAX> as Add<u8>>::Output

Performs the + operation. Read more
source§

impl<const L_MIN: u8, const L_MAX: u8, const R_MIN: u8, const R_MAX: u8> AddAssign<&Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

source§

fn add_assign(&mut self, rhs: &Bounded<R_MIN, R_MAX>)

Performs the += operation. Read more
source§

impl<const MIN: u8, const MAX: u8> AddAssign<&u8> for Bounded<MIN, MAX>

source§

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

Performs the += operation. Read more
source§

impl<const L_MIN: u8, const L_MAX: u8, const R_MIN: u8, const R_MAX: u8> AddAssign<Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

source§

fn add_assign(&mut self, rhs: Bounded<R_MIN, R_MAX>)

Performs the += operation. Read more
source§

impl<const MIN: u8, const MAX: u8> AddAssign<u8> for Bounded<MIN, MAX>

source§

fn add_assign(&mut self, rhs: u8)

Performs the += operation. Read more
source§

impl<T, const MIN: u8, const MAX: u8> AsPrimitive<T> for Bounded<MIN, MAX>
where u8: AsPrimitive<T>, T: 'static + Copy,

source§

fn as_(self) -> T

Convert a value to another, using the as operator.
source§

impl<const MIN: u8, const MAX: u8> AsRef<u8> for Bounded<MIN, MAX>

source§

fn as_ref(&self) -> &u8

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl<const MIN: u8, const MAX: u8> Binary for Bounded<MIN, MAX>

source§

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

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

impl<const L_MIN: u8, const L_MAX: u8, const R_MIN: u8, const R_MAX: u8> BitAnd<&Bounded<R_MIN, R_MAX>> for &Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

The resulting type after applying the & operator.
source§

fn bitand( self, rhs: &Bounded<R_MIN, R_MAX> ) -> <&Bounded<L_MIN, L_MAX> as BitAnd<&Bounded<R_MIN, R_MAX>>>::Output

Performs the & operation. Read more
source§

impl<const L_MIN: u8, const L_MAX: u8, const R_MIN: u8, const R_MAX: u8> BitAnd<&Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

The resulting type after applying the & operator.
source§

fn bitand( self, rhs: &Bounded<R_MIN, R_MAX> ) -> <Bounded<L_MIN, L_MAX> as BitAnd<&Bounded<R_MIN, R_MAX>>>::Output

Performs the & operation. Read more
source§

impl<const MIN: u8, const MAX: u8> BitAnd<&u8> for &Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

The resulting type after applying the & operator.
source§

fn bitand(self, rhs: &u8) -> <&Bounded<MIN, MAX> as BitAnd<&u8>>::Output

Performs the & operation. Read more
source§

impl<const MIN: u8, const MAX: u8> BitAnd<&u8> for Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

The resulting type after applying the & operator.
source§

fn bitand(self, rhs: &u8) -> <Bounded<MIN, MAX> as BitAnd<&u8>>::Output

Performs the & operation. Read more
source§

impl<const L_MIN: u8, const L_MAX: u8, const R_MIN: u8, const R_MAX: u8> BitAnd<Bounded<R_MIN, R_MAX>> for &Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

The resulting type after applying the & operator.
source§

fn bitand( self, rhs: Bounded<R_MIN, R_MAX> ) -> <&Bounded<L_MIN, L_MAX> as BitAnd<Bounded<R_MIN, R_MAX>>>::Output

Performs the & operation. Read more
source§

impl<const L_MIN: u8, const L_MAX: u8, const R_MIN: u8, const R_MAX: u8> BitAnd<Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

The resulting type after applying the & operator.
source§

fn bitand( self, rhs: Bounded<R_MIN, R_MAX> ) -> <Bounded<L_MIN, L_MAX> as BitAnd<Bounded<R_MIN, R_MAX>>>::Output

Performs the & operation. Read more
source§

impl<const MIN: u8, const MAX: u8> BitAnd<u8> for &Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

The resulting type after applying the & operator.
source§

fn bitand(self, rhs: u8) -> <&Bounded<MIN, MAX> as BitAnd<u8>>::Output

Performs the & operation. Read more
source§

impl<const MIN: u8, const MAX: u8> BitAnd<u8> for Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

The resulting type after applying the & operator.
source§

fn bitand(self, rhs: u8) -> <Bounded<MIN, MAX> as BitAnd<u8>>::Output

Performs the & operation. Read more
source§

impl<const L_MIN: u8, const L_MAX: u8, const R_MIN: u8, const R_MAX: u8> BitAndAssign<&Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

source§

fn bitand_assign(&mut self, rhs: &Bounded<R_MIN, R_MAX>)

Performs the &= operation. Read more
source§

impl<const MIN: u8, const MAX: u8> BitAndAssign<&u8> for Bounded<MIN, MAX>

source§

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

Performs the &= operation. Read more
source§

impl<const L_MIN: u8, const L_MAX: u8, const R_MIN: u8, const R_MAX: u8> BitAndAssign<Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

source§

fn bitand_assign(&mut self, rhs: Bounded<R_MIN, R_MAX>)

Performs the &= operation. Read more
source§

impl<const MIN: u8, const MAX: u8> BitAndAssign<u8> for Bounded<MIN, MAX>

source§

fn bitand_assign(&mut self, rhs: u8)

Performs the &= operation. Read more
source§

impl<const L_MIN: u8, const L_MAX: u8, const R_MIN: u8, const R_MAX: u8> BitOr<&Bounded<R_MIN, R_MAX>> for &Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

The resulting type after applying the | operator.
source§

fn bitor( self, rhs: &Bounded<R_MIN, R_MAX> ) -> <&Bounded<L_MIN, L_MAX> as BitOr<&Bounded<R_MIN, R_MAX>>>::Output

Performs the | operation. Read more
source§

impl<const L_MIN: u8, const L_MAX: u8, const R_MIN: u8, const R_MAX: u8> BitOr<&Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

The resulting type after applying the | operator.
source§

fn bitor( self, rhs: &Bounded<R_MIN, R_MAX> ) -> <Bounded<L_MIN, L_MAX> as BitOr<&Bounded<R_MIN, R_MAX>>>::Output

Performs the | operation. Read more
source§

impl<const MIN: u8, const MAX: u8> BitOr<&u8> for &Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

The resulting type after applying the | operator.
source§

fn bitor(self, rhs: &u8) -> <&Bounded<MIN, MAX> as BitOr<&u8>>::Output

Performs the | operation. Read more
source§

impl<const MIN: u8, const MAX: u8> BitOr<&u8> for Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

The resulting type after applying the | operator.
source§

fn bitor(self, rhs: &u8) -> <Bounded<MIN, MAX> as BitOr<&u8>>::Output

Performs the | operation. Read more
source§

impl<const L_MIN: u8, const L_MAX: u8, const R_MIN: u8, const R_MAX: u8> BitOr<Bounded<R_MIN, R_MAX>> for &Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

The resulting type after applying the | operator.
source§

fn bitor( self, rhs: Bounded<R_MIN, R_MAX> ) -> <&Bounded<L_MIN, L_MAX> as BitOr<Bounded<R_MIN, R_MAX>>>::Output

Performs the | operation. Read more
source§

impl<const L_MIN: u8, const L_MAX: u8, const R_MIN: u8, const R_MAX: u8> BitOr<Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

The resulting type after applying the | operator.
source§

fn bitor( self, rhs: Bounded<R_MIN, R_MAX> ) -> <Bounded<L_MIN, L_MAX> as BitOr<Bounded<R_MIN, R_MAX>>>::Output

Performs the | operation. Read more
source§

impl<const MIN: u8, const MAX: u8> BitOr<u8> for &Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

The resulting type after applying the | operator.
source§

fn bitor(self, rhs: u8) -> <&Bounded<MIN, MAX> as BitOr<u8>>::Output

Performs the | operation. Read more
source§

impl<const MIN: u8, const MAX: u8> BitOr<u8> for Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

The resulting type after applying the | operator.
source§

fn bitor(self, rhs: u8) -> <Bounded<MIN, MAX> as BitOr<u8>>::Output

Performs the | operation. Read more
source§

impl<const L_MIN: u8, const L_MAX: u8, const R_MIN: u8, const R_MAX: u8> BitOrAssign<&Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

source§

fn bitor_assign(&mut self, rhs: &Bounded<R_MIN, R_MAX>)

Performs the |= operation. Read more
source§

impl<const MIN: u8, const MAX: u8> BitOrAssign<&u8> for Bounded<MIN, MAX>

source§

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

Performs the |= operation. Read more
source§

impl<const L_MIN: u8, const L_MAX: u8, const R_MIN: u8, const R_MAX: u8> BitOrAssign<Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

source§

fn bitor_assign(&mut self, rhs: Bounded<R_MIN, R_MAX>)

Performs the |= operation. Read more
source§

impl<const MIN: u8, const MAX: u8> BitOrAssign<u8> for Bounded<MIN, MAX>

source§

fn bitor_assign(&mut self, rhs: u8)

Performs the |= operation. Read more
source§

impl<const L_MIN: u8, const L_MAX: u8, const R_MIN: u8, const R_MAX: u8> BitXor<&Bounded<R_MIN, R_MAX>> for &Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

The resulting type after applying the ^ operator.
source§

fn bitxor( self, rhs: &Bounded<R_MIN, R_MAX> ) -> <&Bounded<L_MIN, L_MAX> as BitXor<&Bounded<R_MIN, R_MAX>>>::Output

Performs the ^ operation. Read more
source§

impl<const L_MIN: u8, const L_MAX: u8, const R_MIN: u8, const R_MAX: u8> BitXor<&Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

The resulting type after applying the ^ operator.
source§

fn bitxor( self, rhs: &Bounded<R_MIN, R_MAX> ) -> <Bounded<L_MIN, L_MAX> as BitXor<&Bounded<R_MIN, R_MAX>>>::Output

Performs the ^ operation. Read more
source§

impl<const MIN: u8, const MAX: u8> BitXor<&u8> for &Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

The resulting type after applying the ^ operator.
source§

fn bitxor(self, rhs: &u8) -> <&Bounded<MIN, MAX> as BitXor<&u8>>::Output

Performs the ^ operation. Read more
source§

impl<const MIN: u8, const MAX: u8> BitXor<&u8> for Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

The resulting type after applying the ^ operator.
source§

fn bitxor(self, rhs: &u8) -> <Bounded<MIN, MAX> as BitXor<&u8>>::Output

Performs the ^ operation. Read more
source§

impl<const L_MIN: u8, const L_MAX: u8, const R_MIN: u8, const R_MAX: u8> BitXor<Bounded<R_MIN, R_MAX>> for &Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

The resulting type after applying the ^ operator.
source§

fn bitxor( self, rhs: Bounded<R_MIN, R_MAX> ) -> <&Bounded<L_MIN, L_MAX> as BitXor<Bounded<R_MIN, R_MAX>>>::Output

Performs the ^ operation. Read more
source§

impl<const L_MIN: u8, const L_MAX: u8, const R_MIN: u8, const R_MAX: u8> BitXor<Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

The resulting type after applying the ^ operator.
source§

fn bitxor( self, rhs: Bounded<R_MIN, R_MAX> ) -> <Bounded<L_MIN, L_MAX> as BitXor<Bounded<R_MIN, R_MAX>>>::Output

Performs the ^ operation. Read more
source§

impl<const MIN: u8, const MAX: u8> BitXor<u8> for &Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

The resulting type after applying the ^ operator.
source§

fn bitxor(self, rhs: u8) -> <&Bounded<MIN, MAX> as BitXor<u8>>::Output

Performs the ^ operation. Read more
source§

impl<const MIN: u8, const MAX: u8> BitXor<u8> for Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

The resulting type after applying the ^ operator.
source§

fn bitxor(self, rhs: u8) -> <Bounded<MIN, MAX> as BitXor<u8>>::Output

Performs the ^ operation. Read more
source§

impl<const L_MIN: u8, const L_MAX: u8, const R_MIN: u8, const R_MAX: u8> BitXorAssign<&Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

source§

fn bitxor_assign(&mut self, rhs: &Bounded<R_MIN, R_MAX>)

Performs the ^= operation. Read more
source§

impl<const MIN: u8, const MAX: u8> BitXorAssign<&u8> for Bounded<MIN, MAX>

source§

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

Performs the ^= operation. Read more
source§

impl<const L_MIN: u8, const L_MAX: u8, const R_MIN: u8, const R_MAX: u8> BitXorAssign<Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

source§

fn bitxor_assign(&mut self, rhs: Bounded<R_MIN, R_MAX>)

Performs the ^= operation. Read more
source§

impl<const MIN: u8, const MAX: u8> BitXorAssign<u8> for Bounded<MIN, MAX>

source§

fn bitxor_assign(&mut self, rhs: u8)

Performs the ^= operation. Read more
source§

impl<const MIN: u8, const MAX: u8> Borrow<u8> for Bounded<MIN, MAX>

source§

fn borrow(&self) -> &u8

Immutably borrows from an owned value. Read more
source§

impl<const MIN: u8, const MAX: u8> Bounded for Bounded<MIN, MAX>

source§

fn min_value() -> Bounded<MIN, MAX>

Returns the smallest finite number this type can represent
source§

fn max_value() -> Bounded<MIN, MAX>

Returns the largest finite number this type can represent
source§

impl<const MIN: u8, const MAX: u8> CheckedAdd for Bounded<MIN, MAX>

source§

fn checked_add(&self, v: &Bounded<MIN, MAX>) -> Option<Bounded<MIN, MAX>>

Adds two numbers, checking for overflow. If overflow happens, None is returned.
source§

impl<const MIN: u8, const MAX: u8> CheckedDiv for Bounded<MIN, MAX>

source§

fn checked_div(&self, v: &Bounded<MIN, MAX>) -> Option<Bounded<MIN, MAX>>

Divides two numbers, checking for underflow, overflow and division by zero. If any of that happens, None is returned.
source§

impl<const MIN: u8, const MAX: u8> CheckedMul for Bounded<MIN, MAX>

source§

fn checked_mul(&self, v: &Bounded<MIN, MAX>) -> Option<Bounded<MIN, MAX>>

Multiplies two numbers, checking for underflow or overflow. If underflow or overflow happens, None is returned.
source§

impl<const MIN: u8, const MAX: u8> CheckedNeg for Bounded<MIN, MAX>

source§

fn checked_neg(&self) -> Option<Bounded<MIN, MAX>>

Negates a number, returning None for results that can’t be represented, like signed MIN values that can’t be positive, or non-zero unsigned values that can’t be negative. Read more
source§

impl<const MIN: u8, const MAX: u8> CheckedRem for Bounded<MIN, MAX>

source§

fn checked_rem(&self, v: &Bounded<MIN, MAX>) -> Option<Bounded<MIN, MAX>>

Finds the remainder of dividing two numbers, checking for underflow, overflow and division by zero. If any of that happens, None is returned. Read more
source§

impl<const MIN: u8, const MAX: u8> CheckedShl for Bounded<MIN, MAX>

source§

fn checked_shl(&self, v: u32) -> Option<Bounded<MIN, MAX>>

Checked shift left. Computes self << rhs, returning None if rhs is larger than or equal to the number of bits in self. Read more
source§

impl<const MIN: u8, const MAX: u8> CheckedShr for Bounded<MIN, MAX>

source§

fn checked_shr(&self, v: u32) -> Option<Bounded<MIN, MAX>>

Checked shift right. Computes self >> rhs, returning None if rhs is larger than or equal to the number of bits in self. Read more
source§

impl<const MIN: u8, const MAX: u8> CheckedSub for Bounded<MIN, MAX>

source§

fn checked_sub(&self, v: &Bounded<MIN, MAX>) -> Option<Bounded<MIN, MAX>>

Subtracts two numbers, checking for underflow. If underflow happens, None is returned.
source§

impl<const MIN: u8, const MAX: u8> Clone for Bounded<MIN, MAX>

source§

fn clone(&self) -> Bounded<MIN, MAX>

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
source§

impl<const MIN: u8, const MAX: u8> Debug for Bounded<MIN, MAX>

source§

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

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

impl<const MIN: u8, const MAX: u8> Display for Bounded<MIN, MAX>

source§

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

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

impl<const L_MIN: u8, const L_MAX: u8, const R_MIN: u8, const R_MAX: u8> Div<&Bounded<R_MIN, R_MAX>> for &Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

The resulting type after applying the / operator.
source§

fn div( self, rhs: &Bounded<R_MIN, R_MAX> ) -> <&Bounded<L_MIN, L_MAX> as Div<&Bounded<R_MIN, R_MAX>>>::Output

Performs the / operation. Read more
source§

impl<const L_MIN: u8, const L_MAX: u8, const R_MIN: u8, const R_MAX: u8> Div<&Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

The resulting type after applying the / operator.
source§

fn div( self, rhs: &Bounded<R_MIN, R_MAX> ) -> <Bounded<L_MIN, L_MAX> as Div<&Bounded<R_MIN, R_MAX>>>::Output

Performs the / operation. Read more
source§

impl<const MIN: u8, const MAX: u8> Div<&u8> for &Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &u8) -> <&Bounded<MIN, MAX> as Div<&u8>>::Output

Performs the / operation. Read more
source§

impl<const MIN: u8, const MAX: u8> Div<&u8> for Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &u8) -> <Bounded<MIN, MAX> as Div<&u8>>::Output

Performs the / operation. Read more
source§

impl<const L_MIN: u8, const L_MAX: u8, const R_MIN: u8, const R_MAX: u8> Div<Bounded<R_MIN, R_MAX>> for &Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

The resulting type after applying the / operator.
source§

fn div( self, rhs: Bounded<R_MIN, R_MAX> ) -> <&Bounded<L_MIN, L_MAX> as Div<Bounded<R_MIN, R_MAX>>>::Output

Performs the / operation. Read more
source§

impl<const L_MIN: u8, const L_MAX: u8, const R_MIN: u8, const R_MAX: u8> Div<Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

The resulting type after applying the / operator.
source§

fn div( self, rhs: Bounded<R_MIN, R_MAX> ) -> <Bounded<L_MIN, L_MAX> as Div<Bounded<R_MIN, R_MAX>>>::Output

Performs the / operation. Read more
source§

impl<const MIN: u8, const MAX: u8> Div<u8> for &Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

The resulting type after applying the / operator.
source§

fn div(self, rhs: u8) -> <&Bounded<MIN, MAX> as Div<u8>>::Output

Performs the / operation. Read more
source§

impl<const MIN: u8, const MAX: u8> Div<u8> for Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

The resulting type after applying the / operator.
source§

fn div(self, rhs: u8) -> <Bounded<MIN, MAX> as Div<u8>>::Output

Performs the / operation. Read more
source§

impl<const L_MIN: u8, const L_MAX: u8, const R_MIN: u8, const R_MAX: u8> DivAssign<&Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

source§

fn div_assign(&mut self, rhs: &Bounded<R_MIN, R_MAX>)

Performs the /= operation. Read more
source§

impl<const MIN: u8, const MAX: u8> DivAssign<&u8> for Bounded<MIN, MAX>

source§

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

Performs the /= operation. Read more
source§

impl<const L_MIN: u8, const L_MAX: u8, const R_MIN: u8, const R_MAX: u8> DivAssign<Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

source§

fn div_assign(&mut self, rhs: Bounded<R_MIN, R_MAX>)

Performs the /= operation. Read more
source§

impl<const MIN: u8, const MAX: u8> DivAssign<u8> for Bounded<MIN, MAX>

source§

fn div_assign(&mut self, rhs: u8)

Performs the /= operation. Read more
source§

impl<const MIN: u8, const MAX: u8> FromPrimitive for Bounded<MIN, MAX>

source§

fn from_i64(n: i64) -> Option<Bounded<MIN, MAX>>

Converts an i64 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_u64(n: u64) -> Option<Bounded<MIN, MAX>>

Converts an u64 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_isize(n: isize) -> Option<Bounded<MIN, MAX>>

Converts an isize to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_i8(n: i8) -> Option<Bounded<MIN, MAX>>

Converts an i8 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_i16(n: i16) -> Option<Bounded<MIN, MAX>>

Converts an i16 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_i32(n: i32) -> Option<Bounded<MIN, MAX>>

Converts an i32 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_i128(n: i128) -> Option<Bounded<MIN, MAX>>

Converts an i128 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more
source§

fn from_usize(n: usize) -> Option<Bounded<MIN, MAX>>

Converts a usize to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_u8(n: u8) -> Option<Bounded<MIN, MAX>>

Converts an u8 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_u16(n: u16) -> Option<Bounded<MIN, MAX>>

Converts an u16 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_u32(n: u32) -> Option<Bounded<MIN, MAX>>

Converts an u32 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_u128(n: u128) -> Option<Bounded<MIN, MAX>>

Converts an u128 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more
source§

fn from_f32(n: f32) -> Option<Bounded<MIN, MAX>>

Converts a f32 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_f64(n: f64) -> Option<Bounded<MIN, MAX>>

Converts a f64 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more
source§

impl<const MIN: u8, const MAX: u8> FromStr for Bounded<MIN, MAX>

§

type Err = ParseError

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

fn from_str( s: &str ) -> Result<Bounded<MIN, MAX>, <Bounded<MIN, MAX> as FromStr>::Err>

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

impl<const MIN: u8, const MAX: u8> Hash for Bounded<MIN, MAX>

source§

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

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

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

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

impl<const MIN: u8, const MAX: u8> LowerExp for Bounded<MIN, MAX>

source§

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

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

impl<const MIN: u8, const MAX: u8> LowerHex for Bounded<MIN, MAX>

source§

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

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

impl<const L_MIN: u8, const L_MAX: u8, const R_MIN: u8, const R_MAX: u8> Mul<&Bounded<R_MIN, R_MAX>> for &Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

The resulting type after applying the * operator.
source§

fn mul( self, rhs: &Bounded<R_MIN, R_MAX> ) -> <&Bounded<L_MIN, L_MAX> as Mul<&Bounded<R_MIN, R_MAX>>>::Output

Performs the * operation. Read more
source§

impl<const L_MIN: u8, const L_MAX: u8, const R_MIN: u8, const R_MAX: u8> Mul<&Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

The resulting type after applying the * operator.
source§

fn mul( self, rhs: &Bounded<R_MIN, R_MAX> ) -> <Bounded<L_MIN, L_MAX> as Mul<&Bounded<R_MIN, R_MAX>>>::Output

Performs the * operation. Read more
source§

impl<const MIN: u8, const MAX: u8> Mul<&u8> for &Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &u8) -> <&Bounded<MIN, MAX> as Mul<&u8>>::Output

Performs the * operation. Read more
source§

impl<const MIN: u8, const MAX: u8> Mul<&u8> for Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &u8) -> <Bounded<MIN, MAX> as Mul<&u8>>::Output

Performs the * operation. Read more
source§

impl<const L_MIN: u8, const L_MAX: u8, const R_MIN: u8, const R_MAX: u8> Mul<Bounded<R_MIN, R_MAX>> for &Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

The resulting type after applying the * operator.
source§

fn mul( self, rhs: Bounded<R_MIN, R_MAX> ) -> <&Bounded<L_MIN, L_MAX> as Mul<Bounded<R_MIN, R_MAX>>>::Output

Performs the * operation. Read more
source§

impl<const L_MIN: u8, const L_MAX: u8, const R_MIN: u8, const R_MAX: u8> Mul<Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

The resulting type after applying the * operator.
source§

fn mul( self, rhs: Bounded<R_MIN, R_MAX> ) -> <Bounded<L_MIN, L_MAX> as Mul<Bounded<R_MIN, R_MAX>>>::Output

Performs the * operation. Read more
source§

impl<const MIN: u8, const MAX: u8> Mul<u8> for &Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: u8) -> <&Bounded<MIN, MAX> as Mul<u8>>::Output

Performs the * operation. Read more
source§

impl<const MIN: u8, const MAX: u8> Mul<u8> for Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: u8) -> <Bounded<MIN, MAX> as Mul<u8>>::Output

Performs the * operation. Read more
source§

impl<A, B, const MIN: u8, const MAX: u8> MulAdd<A, B> for Bounded<MIN, MAX>
where u8: MulAdd<A, B, Output = u8>,

§

type Output = u8

The resulting type after applying the fused multiply-add.
source§

fn mul_add(self, a: A, b: B) -> <Bounded<MIN, MAX> as MulAdd<A, B>>::Output

Performs the fused multiply-add operation (self * a) + b
source§

impl<const L_MIN: u8, const L_MAX: u8, const R_MIN: u8, const R_MAX: u8> MulAssign<&Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

source§

fn mul_assign(&mut self, rhs: &Bounded<R_MIN, R_MAX>)

Performs the *= operation. Read more
source§

impl<const MIN: u8, const MAX: u8> MulAssign<&u8> for Bounded<MIN, MAX>

source§

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

Performs the *= operation. Read more
source§

impl<const L_MIN: u8, const L_MAX: u8, const R_MIN: u8, const R_MAX: u8> MulAssign<Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

source§

fn mul_assign(&mut self, rhs: Bounded<R_MIN, R_MAX>)

Performs the *= operation. Read more
source§

impl<const MIN: u8, const MAX: u8> MulAssign<u8> for Bounded<MIN, MAX>

source§

fn mul_assign(&mut self, rhs: u8)

Performs the *= operation. Read more
source§

impl<const MIN: u8, const MAX: u8> Not for &Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

The resulting type after applying the ! operator.
source§

fn not(self) -> <&Bounded<MIN, MAX> as Not>::Output

Performs the unary ! operation. Read more
source§

impl<const MIN: u8, const MAX: u8> Not for Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

The resulting type after applying the ! operator.
source§

fn not(self) -> <Bounded<MIN, MAX> as Not>::Output

Performs the unary ! operation. Read more
source§

impl<const MIN: u8, const MAX: u8> NumCast for Bounded<MIN, MAX>
where u8: NumCast,

source§

fn from<T>(n: T) -> Option<Bounded<MIN, MAX>>
where T: ToPrimitive,

Creates a number from another value that can be converted into a primitive via the ToPrimitive trait. If the source value cannot be represented by the target type, then None is returned. Read more
source§

impl<const MIN: u8, const MAX: u8> Octal for Bounded<MIN, MAX>

source§

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

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

impl<const MIN: u8, const MAX: u8> Ord for Bounded<MIN, MAX>

source§

fn cmp(&self, other: &Bounded<MIN, MAX>) -> Ordering

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

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

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

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

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

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

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

impl<const A_MIN: u8, const A_MAX: u8, const B_MIN: u8, const B_MAX: u8> PartialEq<Bounded<B_MIN, B_MAX>> for Bounded<A_MIN, A_MAX>

source§

fn eq(&self, other: &Bounded<B_MIN, B_MAX>) -> bool

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

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

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

impl<const MIN: u8, const MAX: u8> PartialEq<u8> for Bounded<MIN, MAX>

source§

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

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

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

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

impl<const A_MIN: u8, const A_MAX: u8, const B_MIN: u8, const B_MAX: u8> PartialOrd<Bounded<B_MIN, B_MAX>> for Bounded<A_MIN, A_MAX>

source§

fn partial_cmp(&self, other: &Bounded<B_MIN, B_MAX>) -> Option<Ordering>

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

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

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

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

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

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

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

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

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

impl<const MIN: u8, const MAX: u8> PartialOrd<u8> for Bounded<MIN, MAX>

source§

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

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

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

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

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

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

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

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

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

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

impl<'a, const MIN: u8, const MAX: u8> Product<&'a Bounded<MIN, MAX>> for Bounded<MIN, MAX>

source§

fn product<I>(iter: I) -> Bounded<MIN, MAX>
where I: Iterator<Item = &'a Bounded<MIN, MAX>>,

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

impl<const MIN: u8, const MAX: u8> Product for Bounded<MIN, MAX>

source§

fn product<I>(iter: I) -> Bounded<MIN, MAX>
where I: Iterator<Item = Bounded<MIN, MAX>>,

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

impl<const L_MIN: u8, const L_MAX: u8, const R_MIN: u8, const R_MAX: u8> Rem<&Bounded<R_MIN, R_MAX>> for &Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

The resulting type after applying the % operator.
source§

fn rem( self, rhs: &Bounded<R_MIN, R_MAX> ) -> <&Bounded<L_MIN, L_MAX> as Rem<&Bounded<R_MIN, R_MAX>>>::Output

Performs the % operation. Read more
source§

impl<const L_MIN: u8, const L_MAX: u8, const R_MIN: u8, const R_MAX: u8> Rem<&Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

The resulting type after applying the % operator.
source§

fn rem( self, rhs: &Bounded<R_MIN, R_MAX> ) -> <Bounded<L_MIN, L_MAX> as Rem<&Bounded<R_MIN, R_MAX>>>::Output

Performs the % operation. Read more
source§

impl<const MIN: u8, const MAX: u8> Rem<&u8> for &Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &u8) -> <&Bounded<MIN, MAX> as Rem<&u8>>::Output

Performs the % operation. Read more
source§

impl<const MIN: u8, const MAX: u8> Rem<&u8> for Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &u8) -> <Bounded<MIN, MAX> as Rem<&u8>>::Output

Performs the % operation. Read more
source§

impl<const L_MIN: u8, const L_MAX: u8, const R_MIN: u8, const R_MAX: u8> Rem<Bounded<R_MIN, R_MAX>> for &Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

The resulting type after applying the % operator.
source§

fn rem( self, rhs: Bounded<R_MIN, R_MAX> ) -> <&Bounded<L_MIN, L_MAX> as Rem<Bounded<R_MIN, R_MAX>>>::Output

Performs the % operation. Read more
source§

impl<const L_MIN: u8, const L_MAX: u8, const R_MIN: u8, const R_MAX: u8> Rem<Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

The resulting type after applying the % operator.
source§

fn rem( self, rhs: Bounded<R_MIN, R_MAX> ) -> <Bounded<L_MIN, L_MAX> as Rem<Bounded<R_MIN, R_MAX>>>::Output

Performs the % operation. Read more
source§

impl<const MIN: u8, const MAX: u8> Rem<u8> for &Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: u8) -> <&Bounded<MIN, MAX> as Rem<u8>>::Output

Performs the % operation. Read more
source§

impl<const MIN: u8, const MAX: u8> Rem<u8> for Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: u8) -> <Bounded<MIN, MAX> as Rem<u8>>::Output

Performs the % operation. Read more
source§

impl<const L_MIN: u8, const L_MAX: u8, const R_MIN: u8, const R_MAX: u8> RemAssign<&Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

source§

fn rem_assign(&mut self, rhs: &Bounded<R_MIN, R_MAX>)

Performs the %= operation. Read more
source§

impl<const MIN: u8, const MAX: u8> RemAssign<&u8> for Bounded<MIN, MAX>

source§

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

Performs the %= operation. Read more
source§

impl<const L_MIN: u8, const L_MAX: u8, const R_MIN: u8, const R_MAX: u8> RemAssign<Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

source§

fn rem_assign(&mut self, rhs: Bounded<R_MIN, R_MAX>)

Performs the %= operation. Read more
source§

impl<const MIN: u8, const MAX: u8> RemAssign<u8> for Bounded<MIN, MAX>

source§

fn rem_assign(&mut self, rhs: u8)

Performs the %= operation. Read more
source§

impl<const MIN: u8, const MAX: u8> SaturatingAdd for Bounded<MIN, MAX>

source§

fn saturating_add(&self, v: &Bounded<MIN, MAX>) -> Bounded<MIN, MAX>

Saturating addition. Computes self + other, saturating at the relevant high or low boundary of the type.
source§

impl<const MIN: u8, const MAX: u8> SaturatingMul for Bounded<MIN, MAX>

source§

fn saturating_mul(&self, v: &Bounded<MIN, MAX>) -> Bounded<MIN, MAX>

Saturating multiplication. Computes self * other, saturating at the relevant high or low boundary of the type.
source§

impl<const MIN: u8, const MAX: u8> SaturatingSub for Bounded<MIN, MAX>

source§

fn saturating_sub(&self, v: &Bounded<MIN, MAX>) -> Bounded<MIN, MAX>

Saturating subtraction. Computes self - other, saturating at the relevant high or low boundary of the type.
source§

impl<const L_MIN: u8, const L_MAX: u8, const R_MIN: u8, const R_MAX: u8> Shl<&Bounded<R_MIN, R_MAX>> for &Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

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

fn shl( self, rhs: &Bounded<R_MIN, R_MAX> ) -> <&Bounded<L_MIN, L_MAX> as Shl<&Bounded<R_MIN, R_MAX>>>::Output

Performs the << operation. Read more
source§

impl<const L_MIN: u8, const L_MAX: u8, const R_MIN: u8, const R_MAX: u8> Shl<&Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

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

fn shl( self, rhs: &Bounded<R_MIN, R_MAX> ) -> <Bounded<L_MIN, L_MAX> as Shl<&Bounded<R_MIN, R_MAX>>>::Output

Performs the << operation. Read more
source§

impl<const MIN: u8, const MAX: u8> Shl<&u32> for &Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

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

fn shl(self, rhs: &u32) -> <&Bounded<MIN, MAX> as Shl<&u32>>::Output

Performs the << operation. Read more
source§

impl<const MIN: u8, const MAX: u8> Shl<&u32> for Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

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

fn shl(self, rhs: &u32) -> <Bounded<MIN, MAX> as Shl<&u32>>::Output

Performs the << operation. Read more
source§

impl<const MIN: u8, const MAX: u8> Shl<&u8> for &Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

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

fn shl(self, rhs: &u8) -> <&Bounded<MIN, MAX> as Shl<&u8>>::Output

Performs the << operation. Read more
source§

impl<const MIN: u8, const MAX: u8> Shl<&u8> for Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

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

fn shl(self, rhs: &u8) -> <Bounded<MIN, MAX> as Shl<&u8>>::Output

Performs the << operation. Read more
source§

impl<const L_MIN: u8, const L_MAX: u8, const R_MIN: u8, const R_MAX: u8> Shl<Bounded<R_MIN, R_MAX>> for &Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

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

fn shl( self, rhs: Bounded<R_MIN, R_MAX> ) -> <&Bounded<L_MIN, L_MAX> as Shl<Bounded<R_MIN, R_MAX>>>::Output

Performs the << operation. Read more
source§

impl<const L_MIN: u8, const L_MAX: u8, const R_MIN: u8, const R_MAX: u8> Shl<Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

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

fn shl( self, rhs: Bounded<R_MIN, R_MAX> ) -> <Bounded<L_MIN, L_MAX> as Shl<Bounded<R_MIN, R_MAX>>>::Output

Performs the << operation. Read more
source§

impl<const MIN: u8, const MAX: u8> Shl<u32> for &Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

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

fn shl(self, rhs: u32) -> <&Bounded<MIN, MAX> as Shl<u32>>::Output

Performs the << operation. Read more
source§

impl<const MIN: u8, const MAX: u8> Shl<u32> for Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

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

fn shl(self, rhs: u32) -> <Bounded<MIN, MAX> as Shl<u32>>::Output

Performs the << operation. Read more
source§

impl<const MIN: u8, const MAX: u8> Shl<u8> for &Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

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

fn shl(self, rhs: u8) -> <&Bounded<MIN, MAX> as Shl<u8>>::Output

Performs the << operation. Read more
source§

impl<const MIN: u8, const MAX: u8> Shl<u8> for Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

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

fn shl(self, rhs: u8) -> <Bounded<MIN, MAX> as Shl<u8>>::Output

Performs the << operation. Read more
source§

impl<const L_MIN: u8, const L_MAX: u8, const R_MIN: u8, const R_MAX: u8> ShlAssign<&Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

source§

fn shl_assign(&mut self, rhs: &Bounded<R_MIN, R_MAX>)

Performs the <<= operation. Read more
source§

impl<const MIN: u8, const MAX: u8> ShlAssign<&u32> for Bounded<MIN, MAX>

source§

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

Performs the <<= operation. Read more
source§

impl<const MIN: u8, const MAX: u8> ShlAssign<&u8> for Bounded<MIN, MAX>

source§

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

Performs the <<= operation. Read more
source§

impl<const L_MIN: u8, const L_MAX: u8, const R_MIN: u8, const R_MAX: u8> ShlAssign<Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

source§

fn shl_assign(&mut self, rhs: Bounded<R_MIN, R_MAX>)

Performs the <<= operation. Read more
source§

impl<const MIN: u8, const MAX: u8> ShlAssign<u32> for Bounded<MIN, MAX>

source§

fn shl_assign(&mut self, rhs: u32)

Performs the <<= operation. Read more
source§

impl<const MIN: u8, const MAX: u8> ShlAssign<u8> for Bounded<MIN, MAX>

source§

fn shl_assign(&mut self, rhs: u8)

Performs the <<= operation. Read more
source§

impl<const L_MIN: u8, const L_MAX: u8, const R_MIN: u8, const R_MAX: u8> Shr<&Bounded<R_MIN, R_MAX>> for &Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

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

fn shr( self, rhs: &Bounded<R_MIN, R_MAX> ) -> <&Bounded<L_MIN, L_MAX> as Shr<&Bounded<R_MIN, R_MAX>>>::Output

Performs the >> operation. Read more
source§

impl<const L_MIN: u8, const L_MAX: u8, const R_MIN: u8, const R_MAX: u8> Shr<&Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

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

fn shr( self, rhs: &Bounded<R_MIN, R_MAX> ) -> <Bounded<L_MIN, L_MAX> as Shr<&Bounded<R_MIN, R_MAX>>>::Output

Performs the >> operation. Read more
source§

impl<const MIN: u8, const MAX: u8> Shr<&u32> for &Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

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

fn shr(self, rhs: &u32) -> <&Bounded<MIN, MAX> as Shr<&u32>>::Output

Performs the >> operation. Read more
source§

impl<const MIN: u8, const MAX: u8> Shr<&u32> for Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

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

fn shr(self, rhs: &u32) -> <Bounded<MIN, MAX> as Shr<&u32>>::Output

Performs the >> operation. Read more
source§

impl<const MIN: u8, const MAX: u8> Shr<&u8> for &Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

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

fn shr(self, rhs: &u8) -> <&Bounded<MIN, MAX> as Shr<&u8>>::Output

Performs the >> operation. Read more
source§

impl<const MIN: u8, const MAX: u8> Shr<&u8> for Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

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

fn shr(self, rhs: &u8) -> <Bounded<MIN, MAX> as Shr<&u8>>::Output

Performs the >> operation. Read more
source§

impl<const L_MIN: u8, const L_MAX: u8, const R_MIN: u8, const R_MAX: u8> Shr<Bounded<R_MIN, R_MAX>> for &Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

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

fn shr( self, rhs: Bounded<R_MIN, R_MAX> ) -> <&Bounded<L_MIN, L_MAX> as Shr<Bounded<R_MIN, R_MAX>>>::Output

Performs the >> operation. Read more
source§

impl<const L_MIN: u8, const L_MAX: u8, const R_MIN: u8, const R_MAX: u8> Shr<Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

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

fn shr( self, rhs: Bounded<R_MIN, R_MAX> ) -> <Bounded<L_MIN, L_MAX> as Shr<Bounded<R_MIN, R_MAX>>>::Output

Performs the >> operation. Read more
source§

impl<const MIN: u8, const MAX: u8> Shr<u32> for &Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

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

fn shr(self, rhs: u32) -> <&Bounded<MIN, MAX> as Shr<u32>>::Output

Performs the >> operation. Read more
source§

impl<const MIN: u8, const MAX: u8> Shr<u32> for Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

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

fn shr(self, rhs: u32) -> <Bounded<MIN, MAX> as Shr<u32>>::Output

Performs the >> operation. Read more
source§

impl<const MIN: u8, const MAX: u8> Shr<u8> for &Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

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

fn shr(self, rhs: u8) -> <&Bounded<MIN, MAX> as Shr<u8>>::Output

Performs the >> operation. Read more
source§

impl<const MIN: u8, const MAX: u8> Shr<u8> for Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

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

fn shr(self, rhs: u8) -> <Bounded<MIN, MAX> as Shr<u8>>::Output

Performs the >> operation. Read more
source§

impl<const L_MIN: u8, const L_MAX: u8, const R_MIN: u8, const R_MAX: u8> ShrAssign<&Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

source§

fn shr_assign(&mut self, rhs: &Bounded<R_MIN, R_MAX>)

Performs the >>= operation. Read more
source§

impl<const MIN: u8, const MAX: u8> ShrAssign<&u32> for Bounded<MIN, MAX>

source§

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

Performs the >>= operation. Read more
source§

impl<const MIN: u8, const MAX: u8> ShrAssign<&u8> for Bounded<MIN, MAX>

source§

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

Performs the >>= operation. Read more
source§

impl<const L_MIN: u8, const L_MAX: u8, const R_MIN: u8, const R_MAX: u8> ShrAssign<Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

source§

fn shr_assign(&mut self, rhs: Bounded<R_MIN, R_MAX>)

Performs the >>= operation. Read more
source§

impl<const MIN: u8, const MAX: u8> ShrAssign<u32> for Bounded<MIN, MAX>

source§

fn shr_assign(&mut self, rhs: u32)

Performs the >>= operation. Read more
source§

impl<const MIN: u8, const MAX: u8> ShrAssign<u8> for Bounded<MIN, MAX>

source§

fn shr_assign(&mut self, rhs: u8)

Performs the >>= operation. Read more
source§

impl<const L_MIN: u8, const L_MAX: u8, const R_MIN: u8, const R_MAX: u8> Sub<&Bounded<R_MIN, R_MAX>> for &Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

The resulting type after applying the - operator.
source§

fn sub( self, rhs: &Bounded<R_MIN, R_MAX> ) -> <&Bounded<L_MIN, L_MAX> as Sub<&Bounded<R_MIN, R_MAX>>>::Output

Performs the - operation. Read more
source§

impl<const L_MIN: u8, const L_MAX: u8, const R_MIN: u8, const R_MAX: u8> Sub<&Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

The resulting type after applying the - operator.
source§

fn sub( self, rhs: &Bounded<R_MIN, R_MAX> ) -> <Bounded<L_MIN, L_MAX> as Sub<&Bounded<R_MIN, R_MAX>>>::Output

Performs the - operation. Read more
source§

impl<const MIN: u8, const MAX: u8> Sub<&u8> for &Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &u8) -> <&Bounded<MIN, MAX> as Sub<&u8>>::Output

Performs the - operation. Read more
source§

impl<const MIN: u8, const MAX: u8> Sub<&u8> for Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &u8) -> <Bounded<MIN, MAX> as Sub<&u8>>::Output

Performs the - operation. Read more
source§

impl<const L_MIN: u8, const L_MAX: u8, const R_MIN: u8, const R_MAX: u8> Sub<Bounded<R_MIN, R_MAX>> for &Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

The resulting type after applying the - operator.
source§

fn sub( self, rhs: Bounded<R_MIN, R_MAX> ) -> <&Bounded<L_MIN, L_MAX> as Sub<Bounded<R_MIN, R_MAX>>>::Output

Performs the - operation. Read more
source§

impl<const L_MIN: u8, const L_MAX: u8, const R_MIN: u8, const R_MAX: u8> Sub<Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

The resulting type after applying the - operator.
source§

fn sub( self, rhs: Bounded<R_MIN, R_MAX> ) -> <Bounded<L_MIN, L_MAX> as Sub<Bounded<R_MIN, R_MAX>>>::Output

Performs the - operation. Read more
source§

impl<const MIN: u8, const MAX: u8> Sub<u8> for &Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: u8) -> <&Bounded<MIN, MAX> as Sub<u8>>::Output

Performs the - operation. Read more
source§

impl<const MIN: u8, const MAX: u8> Sub<u8> for Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: u8) -> <Bounded<MIN, MAX> as Sub<u8>>::Output

Performs the - operation. Read more
source§

impl<const L_MIN: u8, const L_MAX: u8, const R_MIN: u8, const R_MAX: u8> SubAssign<&Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

source§

fn sub_assign(&mut self, rhs: &Bounded<R_MIN, R_MAX>)

Performs the -= operation. Read more
source§

impl<const MIN: u8, const MAX: u8> SubAssign<&u8> for Bounded<MIN, MAX>

source§

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

Performs the -= operation. Read more
source§

impl<const L_MIN: u8, const L_MAX: u8, const R_MIN: u8, const R_MAX: u8> SubAssign<Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

source§

fn sub_assign(&mut self, rhs: Bounded<R_MIN, R_MAX>)

Performs the -= operation. Read more
source§

impl<const MIN: u8, const MAX: u8> SubAssign<u8> for Bounded<MIN, MAX>

source§

fn sub_assign(&mut self, rhs: u8)

Performs the -= operation. Read more
source§

impl<'a, const MIN: u8, const MAX: u8> Sum<&'a Bounded<MIN, MAX>> for Bounded<MIN, MAX>

source§

fn sum<I>(iter: I) -> Bounded<MIN, MAX>
where I: Iterator<Item = &'a Bounded<MIN, MAX>>,

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

impl<const MIN: u8, const MAX: u8> Sum for Bounded<MIN, MAX>

source§

fn sum<I>(iter: I) -> Bounded<MIN, MAX>
where I: Iterator<Item = Bounded<MIN, MAX>>,

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

impl<const MIN: u8, const MAX: u8> ToPrimitive for Bounded<MIN, MAX>
where u8: ToPrimitive,

source§

fn to_i64(&self) -> Option<i64>

Converts the value of self to an i64. If the value cannot be represented by an i64, then None is returned.
source§

fn to_u64(&self) -> Option<u64>

Converts the value of self to a u64. If the value cannot be represented by a u64, then None is returned.
source§

fn to_isize(&self) -> Option<isize>

Converts the value of self to an isize. If the value cannot be represented by an isize, then None is returned.
source§

fn to_i8(&self) -> Option<i8>

Converts the value of self to an i8. If the value cannot be represented by an i8, then None is returned.
source§

fn to_i16(&self) -> Option<i16>

Converts the value of self to an i16. If the value cannot be represented by an i16, then None is returned.
source§

fn to_i32(&self) -> Option<i32>

Converts the value of self to an i32. If the value cannot be represented by an i32, then None is returned.
source§

fn to_i128(&self) -> Option<i128>

Converts the value of self to an i128. If the value cannot be represented by an i128 (i64 under the default implementation), then None is returned. Read more
source§

fn to_usize(&self) -> Option<usize>

Converts the value of self to a usize. If the value cannot be represented by a usize, then None is returned.
source§

fn to_u8(&self) -> Option<u8>

Converts the value of self to a u8. If the value cannot be represented by a u8, then None is returned.
source§

fn to_u16(&self) -> Option<u16>

Converts the value of self to a u16. If the value cannot be represented by a u16, then None is returned.
source§

fn to_u32(&self) -> Option<u32>

Converts the value of self to a u32. If the value cannot be represented by a u32, then None is returned.
source§

fn to_u128(&self) -> Option<u128>

Converts the value of self to a u128. If the value cannot be represented by a u128 (u64 under the default implementation), then None is returned. Read more
source§

fn to_f32(&self) -> Option<f32>

Converts the value of self to an f32. Overflows may map to positive or negative inifinity, otherwise None is returned if the value cannot be represented by an f32.
source§

fn to_f64(&self) -> Option<f64>

Converts the value of self to an f64. Overflows may map to positive or negative inifinity, otherwise None is returned if the value cannot be represented by an f64. Read more
source§

impl<const MIN: u8, const MAX: u8> UpperExp for Bounded<MIN, MAX>

source§

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

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

impl<const MIN: u8, const MAX: u8> UpperHex for Bounded<MIN, MAX>

source§

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

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

impl<const MIN: u8, const MAX: u8> Copy for Bounded<MIN, MAX>

source§

impl<const MIN: u8, const MAX: u8> Eq for Bounded<MIN, MAX>

Auto Trait Implementations§

§

impl<const MIN: u8, const MAX: u8> Freeze for Bounded<MIN, MAX>

§

impl<const MIN: u8, const MAX: u8> RefUnwindSafe for Bounded<MIN, MAX>

§

impl<const MIN: u8, const MAX: u8> Send for Bounded<MIN, MAX>

§

impl<const MIN: u8, const MAX: u8> Sync for Bounded<MIN, MAX>

§

impl<const MIN: u8, const MAX: u8> Unpin for Bounded<MIN, MAX>

§

impl<const MIN: u8, const MAX: u8> UnwindSafe for Bounded<MIN, MAX>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> LowerBounded for T
where T: Bounded,

source§

fn min_value() -> T

Returns the smallest finite number this type can represent
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

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

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

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

fn try_into<'async_trait>( self ) -> Pin<Box<dyn Future<Output = Result<U, <U as TryFrom<T>>::Error>> + 'async_trait>>
where T: 'async_trait,

Performs the conversion.
source§

impl<T> UpperBounded for T
where T: Bounded,

source§

fn max_value() -> T

Returns the largest finite number this type can represent
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T, Rhs> NumAssignOps<Rhs> for T
where T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>,

source§

impl<T, Rhs, Output> NumOps<Rhs, Output> for T
where T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,

source§

impl<T, Base> RefNum<Base> for T
where T: NumOps<Base, Base> + for<'r> NumOps<&'r Base, Base>,