Enum BoundedEnumNamed

Source
#[repr(u8)]
pub enum BoundedEnumNamed { Zero = 0, One = 1, Two = 2, }
Available on crate feature __doc only.
Expand description

A bounded enum with named variants.

bounded_integer! {
    pub enum BoundedEnumNamed {
        Zero,
        One,
        Two,
    }
}

Variants§

§

Zero = 0

§

One = 1

§

Two = 2

Implementations§

Source§

impl BoundedEnumNamed

Source

pub const MIN_VALUE: u8 = 0u8

The smallest value this bounded integer can contain.

Source

pub const MAX_VALUE: u8 = 2u8

The largest value that this bounded integer can contain.

Source

pub const MIN: Self

The smallest value of the bounded integer.

Source

pub const MAX: Self

The largest value of the bounded integer.

Source

pub const fn new(n: u8) -> Option<Self>

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

Source

pub const fn const_new<const N: u8>() -> Self

Creates a bounded integer whose value is known at compile time.

Causes a compile-time error if N is not in the valid range.

Source

pub const fn new_ref(n: &u8) -> Option<&Self>

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 const fn new_mut(n: &mut u8) -> Option<&mut Self>

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 unsafe fn new_unchecked(n: u8) -> Self

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 const unsafe fn new_ref_unchecked(n: &u8) -> &Self

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 const unsafe fn new_mut_unchecked(n: &mut u8) -> &mut Self

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_saturating(n: u8) -> Self

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

Source

pub const fn new_wrapping<__Z: LargerInt>(n: __Z) -> Self

Creates a bounded integer by wrapping using modular arithmetic.

For n in range, this is an identity function, and it wraps for n out of range.

The type parameter Z must be any integer type that is a superset of this one.

Source

pub const fn from_str_radix(src: &str, radix: u32) -> Result<Self, 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 const 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 const fn pow(self, exp: u32) -> Self

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

Source

pub const fn div_euclid(self, rhs: u8) -> Self

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

Source

pub const fn rem_euclid(self, rhs: u8) -> Self

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

Checked integer addition.

Returns None if the result would be out of range.

Source

pub const fn saturating_add(self, rhs: u8) -> Self

Saturating integer addition.

Source

pub const fn wrapping_add(self, rhs: u8) -> Self

Wrapping (modular) integer addition.

Source

pub const fn checked_sub(self, rhs: u8) -> Option<Self>

Checked integer subtraction.

Returns None if the result would be out of range.

Source

pub const fn saturating_sub(self, rhs: u8) -> Self

Saturating integer subtraction.

Source

pub const fn wrapping_sub(self, rhs: u8) -> Self

Wrapping (modular) integer subtraction.

Source

pub const fn checked_mul(self, rhs: u8) -> Option<Self>

Checked integer multiplication.

Returns None if the result would be out of range.

Source

pub const fn saturating_mul(self, rhs: u8) -> Self

Saturating integer multiplication.

Source

pub const fn wrapping_mul(self, rhs: u8) -> Self

Wrapping (modular) integer multiplication.

Source

pub const fn checked_div(self, rhs: u8) -> Option<Self>

Checked integer division.

Returns None if the result would be out of range, or if rhs is zero.

Source

pub const fn wrapping_div(self, rhs: u8) -> Self

Wrapping (modular) integer division.

Source

pub const fn checked_div_euclid(self, rhs: u8) -> Option<Self>

Checked Euclidean division.

Returns None if the result would be out of range, or if rhs is zero.

Source

pub const fn wrapping_div_euclid(self, rhs: u8) -> Self

Wrapping (modular) Euclidean division.

Source

pub const fn checked_rem(self, rhs: u8) -> Option<Self>

Checked integer remainder.

Returns None if the result would be out of range, or if rhs is zero.

Source

pub const fn wrapping_rem(self, rhs: u8) -> Self

Wrapping (modular) integer remainder.

Source

pub const fn checked_rem_euclid(self, rhs: u8) -> Option<Self>

Checked Euclidean remainder.

Returns None if the result would be out of range, or if rhs is zero.

Source

pub const fn wrapping_rem_euclid(self, rhs: u8) -> Self

Wrapping (modular) Euclidean remainder.

Source

pub const fn checked_neg(self) -> Option<Self>

Checked negation.

Returns None if the result would be out of range.

Source

pub const fn checked_pow(self, rhs: u32) -> Option<Self>

Checked exponentiation.

Source

pub const fn saturating_pow(self, rhs: u32) -> Self

Saturating exponentiation.

Source

pub const fn wrapping_pow(self, exp: u32) -> Self

Wrapping (modular) exponentiation.

Source

pub const fn checked_shl(self, rhs: u32) -> Option<Self>

Checked shift left.

Source

pub const fn checked_shr(self, rhs: u32) -> Option<Self>

Checked shift right.

Trait Implementations§

Source§

impl Add<&BoundedEnumNamed> for &BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &BoundedEnumNamed) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<&BoundedEnumNamed> for &u8

Source§

type Output = u8

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &BoundedEnumNamed) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<&BoundedEnumNamed> for BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &BoundedEnumNamed) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<&BoundedEnumNamed> for u8

Source§

type Output = u8

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &BoundedEnumNamed) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<&u8> for &BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &u8) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<&u8> for BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &u8) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<BoundedEnumNamed> for &BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

The resulting type after applying the + operator.
Source§

fn add(self, rhs: BoundedEnumNamed) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<BoundedEnumNamed> for &u8

Source§

type Output = u8

The resulting type after applying the + operator.
Source§

fn add(self, rhs: BoundedEnumNamed) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<BoundedEnumNamed> for u8

Source§

type Output = u8

The resulting type after applying the + operator.
Source§

fn add(self, rhs: BoundedEnumNamed) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<u8> for &BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

The resulting type after applying the + operator.
Source§

fn add(self, rhs: u8) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<u8> for BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

The resulting type after applying the + operator.
Source§

fn add(self, rhs: u8) -> Self::Output

Performs the + operation. Read more
Source§

impl Add for BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

The resulting type after applying the + operator.
Source§

fn add(self, rhs: BoundedEnumNamed) -> Self::Output

Performs the + operation. Read more
Source§

impl AddAssign<&BoundedEnumNamed> for BoundedEnumNamed

Source§

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

Performs the += operation. Read more
Source§

impl AddAssign<&BoundedEnumNamed> for u8

Source§

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

Performs the += operation. Read more
Source§

impl AddAssign<&u8> for BoundedEnumNamed

Source§

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

Performs the += operation. Read more
Source§

impl AddAssign<BoundedEnumNamed> for u8

Source§

fn add_assign(&mut self, rhs: BoundedEnumNamed)

Performs the += operation. Read more
Source§

impl AddAssign<u8> for BoundedEnumNamed

Source§

fn add_assign(&mut self, rhs: u8)

Performs the += operation. Read more
Source§

impl AddAssign for BoundedEnumNamed

Source§

fn add_assign(&mut self, rhs: BoundedEnumNamed)

Performs the += operation. Read more
Source§

impl<'__a> Arbitrary<'__a> for BoundedEnumNamed

Available on crate feature arbitrary1 only.
Source§

fn arbitrary(u: &mut Unstructured<'__a>) -> Result<Self>

Generate an arbitrary value of Self from the given unstructured data. Read more
Source§

fn size_hint(depth: usize) -> (usize, Option<usize>)

Get a size hint for how many bytes out of an Unstructured this type needs to construct itself. Read more
Source§

fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>

Generate an arbitrary value of Self from the entirety of the given unstructured data. Read more
Source§

fn try_size_hint( depth: usize, ) -> Result<(usize, Option<usize>), MaxRecursionReached>

Get a size hint for how many bytes out of an Unstructured this type needs to construct itself. Read more
Source§

impl<__T> AsPrimitive<__T> for BoundedEnumNamed
where u8: AsPrimitive<__T>, __T: 'static + Copy, Self: 'static,

Available on crate feature num-traits02 only.
Source§

fn as_(self) -> __T

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

impl AsRef<u8> for BoundedEnumNamed

Source§

fn as_ref(&self) -> &u8

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

impl Binary for BoundedEnumNamed

Source§

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

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

impl BitAnd<&BoundedEnumNamed> for &BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &BoundedEnumNamed) -> Self::Output

Performs the & operation. Read more
Source§

impl BitAnd<&BoundedEnumNamed> for &u8

Source§

type Output = u8

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &BoundedEnumNamed) -> Self::Output

Performs the & operation. Read more
Source§

impl BitAnd<&BoundedEnumNamed> for BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &BoundedEnumNamed) -> Self::Output

Performs the & operation. Read more
Source§

impl BitAnd<&BoundedEnumNamed> for u8

Source§

type Output = u8

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &BoundedEnumNamed) -> Self::Output

Performs the & operation. Read more
Source§

impl BitAnd<&u8> for &BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &u8) -> Self::Output

Performs the & operation. Read more
Source§

impl BitAnd<&u8> for BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &u8) -> Self::Output

Performs the & operation. Read more
Source§

impl BitAnd<BoundedEnumNamed> for &BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: BoundedEnumNamed) -> Self::Output

Performs the & operation. Read more
Source§

impl BitAnd<BoundedEnumNamed> for &u8

Source§

type Output = u8

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: BoundedEnumNamed) -> Self::Output

Performs the & operation. Read more
Source§

impl BitAnd<BoundedEnumNamed> for u8

Source§

type Output = u8

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: BoundedEnumNamed) -> Self::Output

Performs the & operation. Read more
Source§

impl BitAnd<u8> for &BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

The resulting type after applying the & operator.
Source§

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

Performs the & operation. Read more
Source§

impl BitAnd<u8> for BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

The resulting type after applying the & operator.
Source§

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

Performs the & operation. Read more
Source§

impl BitAnd for BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: BoundedEnumNamed) -> Self::Output

Performs the & operation. Read more
Source§

impl BitAndAssign<&BoundedEnumNamed> for BoundedEnumNamed

Source§

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

Performs the &= operation. Read more
Source§

impl BitAndAssign<&BoundedEnumNamed> for u8

Source§

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

Performs the &= operation. Read more
Source§

impl BitAndAssign<&u8> for BoundedEnumNamed

Source§

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

Performs the &= operation. Read more
Source§

impl BitAndAssign<BoundedEnumNamed> for u8

Source§

fn bitand_assign(&mut self, rhs: BoundedEnumNamed)

Performs the &= operation. Read more
Source§

impl BitAndAssign<u8> for BoundedEnumNamed

Source§

fn bitand_assign(&mut self, rhs: u8)

Performs the &= operation. Read more
Source§

impl BitAndAssign for BoundedEnumNamed

Source§

fn bitand_assign(&mut self, rhs: BoundedEnumNamed)

Performs the &= operation. Read more
Source§

impl BitOr<&BoundedEnumNamed> for &BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &BoundedEnumNamed) -> Self::Output

Performs the | operation. Read more
Source§

impl BitOr<&BoundedEnumNamed> for &u8

Source§

type Output = u8

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &BoundedEnumNamed) -> Self::Output

Performs the | operation. Read more
Source§

impl BitOr<&BoundedEnumNamed> for BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &BoundedEnumNamed) -> Self::Output

Performs the | operation. Read more
Source§

impl BitOr<&BoundedEnumNamed> for u8

Source§

type Output = u8

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &BoundedEnumNamed) -> Self::Output

Performs the | operation. Read more
Source§

impl BitOr<&u8> for &BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &u8) -> Self::Output

Performs the | operation. Read more
Source§

impl BitOr<&u8> for BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &u8) -> Self::Output

Performs the | operation. Read more
Source§

impl BitOr<BoundedEnumNamed> for &BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: BoundedEnumNamed) -> Self::Output

Performs the | operation. Read more
Source§

impl BitOr<BoundedEnumNamed> for &u8

Source§

type Output = u8

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: BoundedEnumNamed) -> Self::Output

Performs the | operation. Read more
Source§

impl BitOr<BoundedEnumNamed> for u8

Source§

type Output = u8

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: BoundedEnumNamed) -> Self::Output

Performs the | operation. Read more
Source§

impl BitOr<u8> for &BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

The resulting type after applying the | operator.
Source§

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

Performs the | operation. Read more
Source§

impl BitOr<u8> for BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

The resulting type after applying the | operator.
Source§

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

Performs the | operation. Read more
Source§

impl BitOr for BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: BoundedEnumNamed) -> Self::Output

Performs the | operation. Read more
Source§

impl BitOrAssign<&BoundedEnumNamed> for BoundedEnumNamed

Source§

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

Performs the |= operation. Read more
Source§

impl BitOrAssign<&BoundedEnumNamed> for u8

Source§

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

Performs the |= operation. Read more
Source§

impl BitOrAssign<&u8> for BoundedEnumNamed

Source§

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

Performs the |= operation. Read more
Source§

impl BitOrAssign<BoundedEnumNamed> for u8

Source§

fn bitor_assign(&mut self, rhs: BoundedEnumNamed)

Performs the |= operation. Read more
Source§

impl BitOrAssign<u8> for BoundedEnumNamed

Source§

fn bitor_assign(&mut self, rhs: u8)

Performs the |= operation. Read more
Source§

impl BitOrAssign for BoundedEnumNamed

Source§

fn bitor_assign(&mut self, rhs: BoundedEnumNamed)

Performs the |= operation. Read more
Source§

impl BitXor<&BoundedEnumNamed> for &BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &BoundedEnumNamed) -> Self::Output

Performs the ^ operation. Read more
Source§

impl BitXor<&BoundedEnumNamed> for &u8

Source§

type Output = u8

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &BoundedEnumNamed) -> Self::Output

Performs the ^ operation. Read more
Source§

impl BitXor<&BoundedEnumNamed> for BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &BoundedEnumNamed) -> Self::Output

Performs the ^ operation. Read more
Source§

impl BitXor<&BoundedEnumNamed> for u8

Source§

type Output = u8

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &BoundedEnumNamed) -> Self::Output

Performs the ^ operation. Read more
Source§

impl BitXor<&u8> for &BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &u8) -> Self::Output

Performs the ^ operation. Read more
Source§

impl BitXor<&u8> for BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &u8) -> Self::Output

Performs the ^ operation. Read more
Source§

impl BitXor<BoundedEnumNamed> for &BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: BoundedEnumNamed) -> Self::Output

Performs the ^ operation. Read more
Source§

impl BitXor<BoundedEnumNamed> for &u8

Source§

type Output = u8

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: BoundedEnumNamed) -> Self::Output

Performs the ^ operation. Read more
Source§

impl BitXor<BoundedEnumNamed> for u8

Source§

type Output = u8

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: BoundedEnumNamed) -> Self::Output

Performs the ^ operation. Read more
Source§

impl BitXor<u8> for &BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: u8) -> Self::Output

Performs the ^ operation. Read more
Source§

impl BitXor<u8> for BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: u8) -> Self::Output

Performs the ^ operation. Read more
Source§

impl BitXor for BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: BoundedEnumNamed) -> Self::Output

Performs the ^ operation. Read more
Source§

impl BitXorAssign<&BoundedEnumNamed> for BoundedEnumNamed

Source§

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

Performs the ^= operation. Read more
Source§

impl BitXorAssign<&BoundedEnumNamed> for u8

Source§

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

Performs the ^= operation. Read more
Source§

impl BitXorAssign<&u8> for BoundedEnumNamed

Source§

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

Performs the ^= operation. Read more
Source§

impl BitXorAssign<BoundedEnumNamed> for u8

Source§

fn bitxor_assign(&mut self, rhs: BoundedEnumNamed)

Performs the ^= operation. Read more
Source§

impl BitXorAssign<u8> for BoundedEnumNamed

Source§

fn bitxor_assign(&mut self, rhs: u8)

Performs the ^= operation. Read more
Source§

impl BitXorAssign for BoundedEnumNamed

Source§

fn bitxor_assign(&mut self, rhs: BoundedEnumNamed)

Performs the ^= operation. Read more
Source§

impl Borrow<u8> for BoundedEnumNamed

Source§

fn borrow(&self) -> &u8

Immutably borrows from an owned value. Read more
Source§

impl Bounded for BoundedEnumNamed

Available on crate feature num-traits02 only.
Source§

fn min_value() -> Self

Returns the smallest finite number this type can represent
Source§

fn max_value() -> Self

Returns the largest finite number this type can represent
Source§

impl CheckedAdd for BoundedEnumNamed

Available on crate feature num-traits02 only.
Source§

fn checked_add(&self, v: &Self) -> Option<Self>

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

impl CheckedDiv for BoundedEnumNamed

Available on crate feature num-traits02 only.
Source§

fn checked_div(&self, v: &Self) -> Option<Self>

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

impl CheckedMul for BoundedEnumNamed

Available on crate feature num-traits02 only.
Source§

fn checked_mul(&self, v: &Self) -> Option<Self>

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

impl CheckedNeg for BoundedEnumNamed

Available on crate feature num-traits02 only.
Source§

fn checked_neg(&self) -> Option<Self>

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 CheckedRem for BoundedEnumNamed

Available on crate feature num-traits02 only.
Source§

fn checked_rem(&self, v: &Self) -> Option<Self>

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 CheckedShl for BoundedEnumNamed

Available on crate feature num-traits02 only.
Source§

fn checked_shl(&self, v: u32) -> Option<Self>

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 CheckedShr for BoundedEnumNamed

Available on crate feature num-traits02 only.
Source§

fn checked_shr(&self, v: u32) -> Option<Self>

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 CheckedSub for BoundedEnumNamed

Available on crate feature num-traits02 only.
Source§

fn checked_sub(&self, v: &Self) -> Option<Self>

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

impl Clone for BoundedEnumNamed

Source§

fn clone(&self) -> Self

Returns a duplicate 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 Contiguous for BoundedEnumNamed
where Self: 'static,

Available on crate feature bytemuck1 only.
Source§

const MAX_VALUE: u8 = 2u8

The upper inclusive bound for valid instances of this type.
Source§

const MIN_VALUE: u8 = 0u8

The lower inclusive bound for valid instances of this type.
Source§

type Int = u8

The primitive integer type with an identical representation to this type. Read more
Source§

fn from_integer(value: Self::Int) -> Option<Self>

If value is within the range for valid instances of this type, returns Some(converted_value), otherwise, returns None. Read more
Source§

fn into_integer(self) -> Self::Int

Perform the conversion from C into the underlying integral type. This mostly exists otherwise generic code would need unsafe for the value as integer Read more
Source§

impl Debug for BoundedEnumNamed

Source§

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

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

impl Default for BoundedEnumNamed

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'__de> Deserialize<'__de> for BoundedEnumNamed

Available on crate feature serde1 only.
Source§

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

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Display for BoundedEnumNamed

Source§

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

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

impl Div<&BoundedEnumNamed> for &BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &BoundedEnumNamed) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<&BoundedEnumNamed> for &u8

Source§

type Output = u8

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &BoundedEnumNamed) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<&BoundedEnumNamed> for BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &BoundedEnumNamed) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<&BoundedEnumNamed> for u8

Source§

type Output = u8

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &BoundedEnumNamed) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<&u8> for &BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &u8) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<&u8> for BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &u8) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<BoundedEnumNamed> for &BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

The resulting type after applying the / operator.
Source§

fn div(self, rhs: BoundedEnumNamed) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<BoundedEnumNamed> for &u8

Source§

type Output = u8

The resulting type after applying the / operator.
Source§

fn div(self, rhs: BoundedEnumNamed) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<BoundedEnumNamed> for u8

Source§

type Output = u8

The resulting type after applying the / operator.
Source§

fn div(self, rhs: BoundedEnumNamed) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<u8> for &BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

The resulting type after applying the / operator.
Source§

fn div(self, rhs: u8) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<u8> for BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

The resulting type after applying the / operator.
Source§

fn div(self, rhs: u8) -> Self::Output

Performs the / operation. Read more
Source§

impl Div for BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

The resulting type after applying the / operator.
Source§

fn div(self, rhs: BoundedEnumNamed) -> Self::Output

Performs the / operation. Read more
Source§

impl DivAssign<&BoundedEnumNamed> for BoundedEnumNamed

Source§

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

Performs the /= operation. Read more
Source§

impl DivAssign<&BoundedEnumNamed> for u8

Source§

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

Performs the /= operation. Read more
Source§

impl DivAssign<&u8> for BoundedEnumNamed

Source§

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

Performs the /= operation. Read more
Source§

impl DivAssign<BoundedEnumNamed> for u8

Source§

fn div_assign(&mut self, rhs: BoundedEnumNamed)

Performs the /= operation. Read more
Source§

impl DivAssign<u8> for BoundedEnumNamed

Source§

fn div_assign(&mut self, rhs: u8)

Performs the /= operation. Read more
Source§

impl DivAssign for BoundedEnumNamed

Source§

fn div_assign(&mut self, rhs: BoundedEnumNamed)

Performs the /= operation. Read more
Source§

impl From<BoundedEnumNamed> for i128

Source§

fn from(bounded: BoundedEnumNamed) -> Self

Converts to this type from the input type.
Source§

impl From<BoundedEnumNamed> for i16

Source§

fn from(bounded: BoundedEnumNamed) -> Self

Converts to this type from the input type.
Source§

impl From<BoundedEnumNamed> for i32

Source§

fn from(bounded: BoundedEnumNamed) -> Self

Converts to this type from the input type.
Source§

impl From<BoundedEnumNamed> for i64

Source§

fn from(bounded: BoundedEnumNamed) -> Self

Converts to this type from the input type.
Source§

impl From<BoundedEnumNamed> for isize

Source§

fn from(bounded: BoundedEnumNamed) -> Self

Converts to this type from the input type.
Source§

impl From<BoundedEnumNamed> for u128

Source§

fn from(bounded: BoundedEnumNamed) -> Self

Converts to this type from the input type.
Source§

impl From<BoundedEnumNamed> for u16

Source§

fn from(bounded: BoundedEnumNamed) -> Self

Converts to this type from the input type.
Source§

impl From<BoundedEnumNamed> for u32

Source§

fn from(bounded: BoundedEnumNamed) -> Self

Converts to this type from the input type.
Source§

impl From<BoundedEnumNamed> for u64

Source§

fn from(bounded: BoundedEnumNamed) -> Self

Converts to this type from the input type.
Source§

impl From<BoundedEnumNamed> for u8

Source§

fn from(bounded: BoundedEnumNamed) -> Self

Converts to this type from the input type.
Source§

impl From<BoundedEnumNamed> for usize

Source§

fn from(bounded: BoundedEnumNamed) -> Self

Converts to this type from the input type.
Source§

impl FromPrimitive for BoundedEnumNamed

Available on crate feature num-traits02 only.
Source§

fn from_i64(n: i64) -> Option<Self>

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

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

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

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

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

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

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

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

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

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

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

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

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

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 FromStr for BoundedEnumNamed

Source§

type Err = ParseError

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

fn from_str(s: &str) -> Result<Self, Self::Err>

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

impl FromZeros for BoundedEnumNamed

Source§

fn zero(&mut self)

Overwrites self with zeros. Read more
Source§

fn new_zeroed() -> Self
where Self: Sized,

Creates an instance of Self from zeroed bytes. Read more
Source§

impl Hash for BoundedEnumNamed

Source§

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

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 IntoBytes for BoundedEnumNamed

Source§

fn as_bytes(&self) -> &[u8]
where Self: Immutable,

Gets the bytes of this value. Read more
Source§

fn write_to(&self, dst: &mut [u8]) -> Result<(), SizeError<&Self, &mut [u8]>>
where Self: Immutable,

Writes a copy of self to dst. Read more
Source§

fn write_to_prefix( &self, dst: &mut [u8], ) -> Result<(), SizeError<&Self, &mut [u8]>>
where Self: Immutable,

Writes a copy of self to the prefix of dst. Read more
Source§

fn write_to_suffix( &self, dst: &mut [u8], ) -> Result<(), SizeError<&Self, &mut [u8]>>
where Self: Immutable,

Writes a copy of self to the suffix of dst. Read more
Source§

impl LowerExp for BoundedEnumNamed

Source§

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

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

impl LowerHex for BoundedEnumNamed

Source§

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

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

impl Mul<&BoundedEnumNamed> for &BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &BoundedEnumNamed) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<&BoundedEnumNamed> for &u8

Source§

type Output = u8

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &BoundedEnumNamed) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<&BoundedEnumNamed> for BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &BoundedEnumNamed) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<&BoundedEnumNamed> for u8

Source§

type Output = u8

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &BoundedEnumNamed) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<&u8> for &BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &u8) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<&u8> for BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &u8) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<BoundedEnumNamed> for &BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: BoundedEnumNamed) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<BoundedEnumNamed> for &u8

Source§

type Output = u8

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: BoundedEnumNamed) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<BoundedEnumNamed> for u8

Source§

type Output = u8

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: BoundedEnumNamed) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<u8> for &BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: u8) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<u8> for BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: u8) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul for BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: BoundedEnumNamed) -> Self::Output

Performs the * operation. Read more
Source§

impl<__A, __B> MulAdd<__A, __B> for BoundedEnumNamed
where u8: MulAdd<__A, __B, Output = u8>,

Available on crate feature num-traits02 only.
Source§

type Output = u8

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

fn mul_add(self, a: __A, b: __B) -> Self::Output

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

impl MulAssign<&BoundedEnumNamed> for BoundedEnumNamed

Source§

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

Performs the *= operation. Read more
Source§

impl MulAssign<&BoundedEnumNamed> for u8

Source§

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

Performs the *= operation. Read more
Source§

impl MulAssign<&u8> for BoundedEnumNamed

Source§

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

Performs the *= operation. Read more
Source§

impl MulAssign<BoundedEnumNamed> for u8

Source§

fn mul_assign(&mut self, rhs: BoundedEnumNamed)

Performs the *= operation. Read more
Source§

impl MulAssign<u8> for BoundedEnumNamed

Source§

fn mul_assign(&mut self, rhs: u8)

Performs the *= operation. Read more
Source§

impl MulAssign for BoundedEnumNamed

Source§

fn mul_assign(&mut self, rhs: BoundedEnumNamed)

Performs the *= operation. Read more
Source§

impl Not for &BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

The resulting type after applying the ! operator.
Source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
Source§

impl Not for BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

The resulting type after applying the ! operator.
Source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
Source§

impl NumCast for BoundedEnumNamed
where u8: NumCast,

Available on crate feature num-traits02 only.
Source§

fn from<__T: ToPrimitive>(n: __T) -> Option<Self>

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 Octal for BoundedEnumNamed

Source§

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

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

impl One for BoundedEnumNamed

Available on crate feature num-traits02 only.
Source§

fn one() -> Self

Returns the multiplicative identity element of Self, 1. Read more
Source§

fn set_one(&mut self)

Sets self to the multiplicative identity element of Self, 1.
Source§

fn is_one(&self) -> bool
where Self: PartialEq,

Returns true if self is equal to the multiplicative identity. Read more
Source§

impl Ord for BoundedEnumNamed

Source§

fn cmp(&self, other: &BoundedEnumNamed) -> 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,

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

impl PartialEq<BoundedEnumNamed> for u8

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<u8> for BoundedEnumNamed

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq for BoundedEnumNamed

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd<BoundedEnumNamed> for u8

Source§

fn partial_cmp(&self, other: &BoundedEnumNamed) -> 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

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

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

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<u8> for BoundedEnumNamed

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

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

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

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd for BoundedEnumNamed

Source§

fn partial_cmp(&self, other: &BoundedEnumNamed) -> 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

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

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

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl<'__a> Product<&'__a BoundedEnumNamed> for BoundedEnumNamed

Source§

fn product<I: Iterator<Item = &'__a Self>>(iter: I) -> Self

Takes an iterator and generates Self from the elements by multiplying the items.
Source§

impl<'__a> Product<&'__a BoundedEnumNamed> for u8

Source§

fn product<I: Iterator<Item = &'__a BoundedEnumNamed>>(iter: I) -> Self

Takes an iterator and generates Self from the elements by multiplying the items.
Source§

impl Product<BoundedEnumNamed> for u8

Source§

fn product<I: Iterator<Item = BoundedEnumNamed>>(iter: I) -> Self

Takes an iterator and generates Self from the elements by multiplying the items.
Source§

impl Product for BoundedEnumNamed

Source§

fn product<I: Iterator<Item = Self>>(iter: I) -> Self

Takes an iterator and generates Self from the elements by multiplying the items.
Source§

impl Rem<&BoundedEnumNamed> for &BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &BoundedEnumNamed) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<&BoundedEnumNamed> for &u8

Source§

type Output = u8

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &BoundedEnumNamed) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<&BoundedEnumNamed> for BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &BoundedEnumNamed) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<&BoundedEnumNamed> for u8

Source§

type Output = u8

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &BoundedEnumNamed) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<&u8> for &BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &u8) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<&u8> for BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &u8) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<BoundedEnumNamed> for &BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: BoundedEnumNamed) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<BoundedEnumNamed> for &u8

Source§

type Output = u8

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: BoundedEnumNamed) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<BoundedEnumNamed> for u8

Source§

type Output = u8

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: BoundedEnumNamed) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<u8> for &BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: u8) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<u8> for BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: u8) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem for BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: BoundedEnumNamed) -> Self::Output

Performs the % operation. Read more
Source§

impl RemAssign<&BoundedEnumNamed> for BoundedEnumNamed

Source§

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

Performs the %= operation. Read more
Source§

impl RemAssign<&BoundedEnumNamed> for u8

Source§

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

Performs the %= operation. Read more
Source§

impl RemAssign<&u8> for BoundedEnumNamed

Source§

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

Performs the %= operation. Read more
Source§

impl RemAssign<BoundedEnumNamed> for u8

Source§

fn rem_assign(&mut self, rhs: BoundedEnumNamed)

Performs the %= operation. Read more
Source§

impl RemAssign<u8> for BoundedEnumNamed

Source§

fn rem_assign(&mut self, rhs: u8)

Performs the %= operation. Read more
Source§

impl RemAssign for BoundedEnumNamed

Source§

fn rem_assign(&mut self, rhs: BoundedEnumNamed)

Performs the %= operation. Read more
Source§

impl SaturatingAdd for BoundedEnumNamed

Available on crate feature num-traits02 only.
Source§

fn saturating_add(&self, v: &Self) -> Self

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

impl SaturatingMul for BoundedEnumNamed

Available on crate feature num-traits02 only.
Source§

fn saturating_mul(&self, v: &Self) -> Self

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

impl SaturatingSub for BoundedEnumNamed

Available on crate feature num-traits02 only.
Source§

fn saturating_sub(&self, v: &Self) -> Self

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

impl Serialize for BoundedEnumNamed

Available on crate feature serde1 only.
Source§

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

Serialize this value into the given Serde serializer. Read more
Source§

impl Shl<&u32> for &BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

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

fn shl(self, rhs: &u32) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<&u32> for BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

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

fn shl(self, rhs: &u32) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<u32> for &BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

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

fn shl(self, rhs: u32) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<u32> for BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

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

fn shl(self, rhs: u32) -> Self::Output

Performs the << operation. Read more
Source§

impl ShlAssign<&u32> for BoundedEnumNamed

Source§

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

Performs the <<= operation. Read more
Source§

impl ShlAssign<u32> for BoundedEnumNamed

Source§

fn shl_assign(&mut self, rhs: u32)

Performs the <<= operation. Read more
Source§

impl Shr<&u32> for &BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

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

fn shr(self, rhs: &u32) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<&u32> for BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

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

fn shr(self, rhs: &u32) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<u32> for &BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

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

fn shr(self, rhs: u32) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<u32> for BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

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

fn shr(self, rhs: u32) -> Self::Output

Performs the >> operation. Read more
Source§

impl ShrAssign<&u32> for BoundedEnumNamed

Source§

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

Performs the >>= operation. Read more
Source§

impl ShrAssign<u32> for BoundedEnumNamed

Source§

fn shr_assign(&mut self, rhs: u32)

Performs the >>= operation. Read more
Source§

impl Step for BoundedEnumNamed

Available on crate feature step_trait only.
Source§

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

🔬This is a nightly-only experimental API. (step_trait)
Returns the bounds on the number of successor steps required to get from start to end like Iterator::size_hint(). Read more
Source§

fn forward_checked(start: Self, count: usize) -> Option<Self>

🔬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: Self, count: usize) -> Option<Self>

🔬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: Self, count: usize) -> Self

🔬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 forward_unchecked(start: Self, count: usize) -> Self

🔬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: Self, count: usize) -> Self

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

unsafe fn backward_unchecked(start: Self, count: usize) -> Self

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

impl Sub<&BoundedEnumNamed> for &BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &BoundedEnumNamed) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<&BoundedEnumNamed> for &u8

Source§

type Output = u8

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &BoundedEnumNamed) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<&BoundedEnumNamed> for BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &BoundedEnumNamed) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<&BoundedEnumNamed> for u8

Source§

type Output = u8

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &BoundedEnumNamed) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<&u8> for &BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &u8) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<&u8> for BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &u8) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<BoundedEnumNamed> for &BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: BoundedEnumNamed) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<BoundedEnumNamed> for &u8

Source§

type Output = u8

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: BoundedEnumNamed) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<BoundedEnumNamed> for u8

Source§

type Output = u8

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: BoundedEnumNamed) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<u8> for &BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: u8) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<u8> for BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: u8) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub for BoundedEnumNamed

Source§

type Output = BoundedEnumNamed

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: BoundedEnumNamed) -> Self::Output

Performs the - operation. Read more
Source§

impl SubAssign<&BoundedEnumNamed> for BoundedEnumNamed

Source§

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

Performs the -= operation. Read more
Source§

impl SubAssign<&BoundedEnumNamed> for u8

Source§

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

Performs the -= operation. Read more
Source§

impl SubAssign<&u8> for BoundedEnumNamed

Source§

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

Performs the -= operation. Read more
Source§

impl SubAssign<BoundedEnumNamed> for u8

Source§

fn sub_assign(&mut self, rhs: BoundedEnumNamed)

Performs the -= operation. Read more
Source§

impl SubAssign<u8> for BoundedEnumNamed

Source§

fn sub_assign(&mut self, rhs: u8)

Performs the -= operation. Read more
Source§

impl SubAssign for BoundedEnumNamed

Source§

fn sub_assign(&mut self, rhs: BoundedEnumNamed)

Performs the -= operation. Read more
Source§

impl<'__a> Sum<&'__a BoundedEnumNamed> for BoundedEnumNamed

Source§

fn sum<I: Iterator<Item = &'__a Self>>(iter: I) -> Self

Takes an iterator and generates Self from the elements by “summing up” the items.
Source§

impl<'__a> Sum<&'__a BoundedEnumNamed> for u8

Source§

fn sum<I: Iterator<Item = &'__a BoundedEnumNamed>>(iter: I) -> Self

Takes an iterator and generates Self from the elements by “summing up” the items.
Source§

impl Sum<BoundedEnumNamed> for u8

Source§

fn sum<I: Iterator<Item = BoundedEnumNamed>>(iter: I) -> Self

Takes an iterator and generates Self from the elements by “summing up” the items.
Source§

impl Sum for BoundedEnumNamed

Source§

fn sum<I: Iterator<Item = Self>>(iter: I) -> Self

Takes an iterator and generates Self from the elements by “summing up” the items.
Source§

impl ToPrimitive for BoundedEnumNamed
where u8: ToPrimitive,

Available on crate feature num-traits02 only.
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 TryFrom<BoundedEnumNamed> for i8

Source§

type Error = TryFromIntError

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

fn try_from(n: BoundedEnumNamed) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<i128> for BoundedEnumNamed

Source§

type Error = TryFromError

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

fn try_from(n: i128) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<i16> for BoundedEnumNamed

Source§

type Error = TryFromError

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

fn try_from(n: i16) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<i32> for BoundedEnumNamed

Source§

type Error = TryFromError

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

fn try_from(n: i32) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<i64> for BoundedEnumNamed

Source§

type Error = TryFromError

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

fn try_from(n: i64) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<i8> for BoundedEnumNamed

Source§

type Error = TryFromError

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

fn try_from(n: i8) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<isize> for BoundedEnumNamed

Source§

type Error = TryFromError

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

fn try_from(n: isize) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<u128> for BoundedEnumNamed

Source§

type Error = TryFromError

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

fn try_from(n: u128) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<u16> for BoundedEnumNamed

Source§

type Error = TryFromError

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

fn try_from(n: u16) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<u32> for BoundedEnumNamed

Source§

type Error = TryFromError

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

fn try_from(n: u32) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<u64> for BoundedEnumNamed

Source§

type Error = TryFromError

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

fn try_from(n: u64) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<u8> for BoundedEnumNamed

Source§

type Error = TryFromError

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

fn try_from(n: u8) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<usize> for BoundedEnumNamed

Source§

type Error = TryFromError

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

fn try_from(n: usize) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFromBytes for BoundedEnumNamed

Source§

fn try_read_from_bytes( source: &[u8], ) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>
where Self: Sized,

Attempts to read the given source as a Self. Read more
Source§

fn try_read_from_prefix( source: &[u8], ) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>
where Self: Sized,

Attempts to read a Self from the prefix of the given source. Read more
Source§

fn try_read_from_suffix( source: &[u8], ) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>
where Self: Sized,

Attempts to read a Self from the suffix of the given source. Read more
Source§

impl UpperExp for BoundedEnumNamed

Source§

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

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

impl UpperHex for BoundedEnumNamed

Source§

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

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

impl Zero for BoundedEnumNamed

Available on crate feature num-traits02 only.
Source§

fn zero() -> Self

Returns the additive identity element of Self, 0. Read more
Source§

fn is_zero(&self) -> bool

Returns true if self is equal to the additive identity.
Source§

fn set_zero(&mut self)

Sets self to the additive identity element of Self, 0.
Source§

impl Zeroable for BoundedEnumNamed

Available on crate feature bytemuck1 only.
Source§

fn zeroed() -> Self

Source§

impl Copy for BoundedEnumNamed

Source§

impl Eq for BoundedEnumNamed

Source§

impl Immutable for BoundedEnumNamed

Source§

impl NoUninit for BoundedEnumNamed
where Self: 'static,

Available on crate feature bytemuck1 only.
Source§

impl Unaligned for BoundedEnumNamed

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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,

Source§

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§

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

Source§

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

Source§

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> UpperBounded for T
where T: Bounded,

Source§

fn max_value() -> T

Returns the largest finite number this type can represent
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

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