#[repr(i8)]pub enum BoundedEnum {
Show 16 variants
N8 = -8,
N7 = -7,
N6 = -6,
N5 = -5,
N4 = -4,
N3 = -3,
N2 = -2,
N1 = -1,
Z = 0,
P1 = 1,
P2 = 2,
P3 = 3,
P4 = 4,
P5 = 5,
P6 = 6,
P7 = 7,
}__doc only.Expand description
A bounded enum.
This was generated from:
bounded_integer! {
pub enum BoundedEnum(-8, 7);
}Variants§
N8 = -8
N7 = -7
N6 = -6
N5 = -5
N4 = -4
N3 = -3
N2 = -2
N1 = -1
Z = 0
P1 = 1
P2 = 2
P3 = 3
P4 = 4
P5 = 5
P6 = 6
P7 = 7
Implementations§
Source§impl BoundedEnum
impl BoundedEnum
Sourcepub const fn const_new<const N: i8>() -> Self
pub const fn const_new<const N: i8>() -> 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.
Sourcepub const unsafe fn new_unchecked(n: i8) -> Self
pub const unsafe fn new_unchecked(n: i8) -> Self
Sourcepub const unsafe fn new_ref_unchecked(n: &i8) -> &Self
pub const unsafe fn new_ref_unchecked(n: &i8) -> &Self
Sourcepub const unsafe fn new_mut_unchecked(n: &mut i8) -> &mut Self
pub const unsafe fn new_mut_unchecked(n: &mut i8) -> &mut Self
Sourcepub const fn in_range(n: i8) -> bool
pub const fn in_range(n: i8) -> bool
Checks whether the given value is in the range of the bounded integer.
Sourcepub const fn new_saturating(n: i8) -> Self
pub const fn new_saturating(n: i8) -> Self
Sourcepub const fn new_wrapping<__Z: LargerInt>(n: __Z) -> Self
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.
Sourcepub const fn from_str_radix(src: &str, radix: u32) -> Result<Self, ParseError>
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.
Sourcepub const fn get_ref(&self) -> &i8
pub const fn get_ref(&self) -> &i8
Returns a shared reference to the value of the bounded integer.
Sourcepub const unsafe fn get_mut(&mut self) -> &mut i8
pub const unsafe fn get_mut(&mut self) -> &mut i8
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.
Sourcepub const fn abs(self) -> Self
pub const fn abs(self) -> Self
Computes the absolute value of self, panicking if it is out of range.
Sourcepub const fn pow(self, exp: u32) -> Self
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.
Sourcepub const fn div_euclid(self, rhs: i8) -> Self
pub const fn div_euclid(self, rhs: i8) -> Self
Calculates the quotient of Euclidean division of self by rhs. Panics if rhs
is 0 or the result is out of range.
Sourcepub const fn rem_euclid(self, rhs: i8) -> Self
pub const fn rem_euclid(self, rhs: i8) -> Self
Calculates the least nonnegative remainder of self (mod rhs). Panics if rhs is 0
or the result is out of range.
Sourcepub const fn checked_add(self, rhs: i8) -> Option<Self>
pub const fn checked_add(self, rhs: i8) -> Option<Self>
Checked integer addition.
Returns None if the result would be out of range.
Sourcepub const fn saturating_add(self, rhs: i8) -> Self
pub const fn saturating_add(self, rhs: i8) -> Self
Saturating integer addition.
Sourcepub const fn wrapping_add(self, rhs: i8) -> Self
pub const fn wrapping_add(self, rhs: i8) -> Self
Wrapping (modular) integer addition.
Sourcepub const fn checked_sub(self, rhs: i8) -> Option<Self>
pub const fn checked_sub(self, rhs: i8) -> Option<Self>
Checked integer subtraction.
Returns None if the result would be out of range.
Sourcepub const fn saturating_sub(self, rhs: i8) -> Self
pub const fn saturating_sub(self, rhs: i8) -> Self
Saturating integer subtraction.
Sourcepub const fn wrapping_sub(self, rhs: i8) -> Self
pub const fn wrapping_sub(self, rhs: i8) -> Self
Wrapping (modular) integer subtraction.
Sourcepub const fn checked_mul(self, rhs: i8) -> Option<Self>
pub const fn checked_mul(self, rhs: i8) -> Option<Self>
Checked integer multiplication.
Returns None if the result would be out of range.
Sourcepub const fn saturating_mul(self, rhs: i8) -> Self
pub const fn saturating_mul(self, rhs: i8) -> Self
Saturating integer multiplication.
Sourcepub const fn wrapping_mul(self, rhs: i8) -> Self
pub const fn wrapping_mul(self, rhs: i8) -> Self
Wrapping (modular) integer multiplication.
Sourcepub const fn checked_div(self, rhs: i8) -> Option<Self>
pub const fn checked_div(self, rhs: i8) -> Option<Self>
Checked integer division.
Returns None if the result would be out of range, or if rhs is zero.
Sourcepub const fn wrapping_div(self, rhs: i8) -> Self
pub const fn wrapping_div(self, rhs: i8) -> Self
Wrapping (modular) integer division.
Sourcepub const fn checked_div_euclid(self, rhs: i8) -> Option<Self>
pub const fn checked_div_euclid(self, rhs: i8) -> Option<Self>
Checked Euclidean division.
Returns None if the result would be out of range, or if rhs is zero.
Sourcepub const fn wrapping_div_euclid(self, rhs: i8) -> Self
pub const fn wrapping_div_euclid(self, rhs: i8) -> Self
Wrapping (modular) Euclidean division.
Sourcepub const fn checked_rem(self, rhs: i8) -> Option<Self>
pub const fn checked_rem(self, rhs: i8) -> Option<Self>
Checked integer remainder.
Returns None if the result would be out of range, or if rhs is zero.
Sourcepub const fn wrapping_rem(self, rhs: i8) -> Self
pub const fn wrapping_rem(self, rhs: i8) -> Self
Wrapping (modular) integer remainder.
Sourcepub const fn checked_rem_euclid(self, rhs: i8) -> Option<Self>
pub const fn checked_rem_euclid(self, rhs: i8) -> Option<Self>
Checked Euclidean remainder.
Returns None if the result would be out of range, or if rhs is zero.
Sourcepub const fn wrapping_rem_euclid(self, rhs: i8) -> Self
pub const fn wrapping_rem_euclid(self, rhs: i8) -> Self
Wrapping (modular) Euclidean remainder.
Sourcepub const fn checked_neg(self) -> Option<Self>
pub const fn checked_neg(self) -> Option<Self>
Checked negation.
Returns None if the result would be out of range.
Sourcepub const fn saturating_neg(self) -> Self
pub const fn saturating_neg(self) -> Self
Saturating negation.
Sourcepub const fn wrapping_neg(self) -> Self
pub const fn wrapping_neg(self) -> Self
Wrapping (modular) negation.
Sourcepub const fn checked_abs(self) -> Option<Self>
pub const fn checked_abs(self) -> Option<Self>
Checked absolute value.
Sourcepub const fn saturating_abs(self) -> Self
pub const fn saturating_abs(self) -> Self
Saturating absolute value.
Sourcepub const fn wrapping_abs(self) -> Self
pub const fn wrapping_abs(self) -> Self
Wrapping (modular) absolute value.
Sourcepub const fn checked_pow(self, rhs: u32) -> Option<Self>
pub const fn checked_pow(self, rhs: u32) -> Option<Self>
Checked exponentiation.
Sourcepub const fn saturating_pow(self, rhs: u32) -> Self
pub const fn saturating_pow(self, rhs: u32) -> Self
Saturating exponentiation.
Sourcepub const fn wrapping_pow(self, exp: u32) -> Self
pub const fn wrapping_pow(self, exp: u32) -> Self
Wrapping (modular) exponentiation.
Sourcepub const fn checked_shl(self, rhs: u32) -> Option<Self>
pub const fn checked_shl(self, rhs: u32) -> Option<Self>
Checked shift left.
Sourcepub const fn checked_shr(self, rhs: u32) -> Option<Self>
pub const fn checked_shr(self, rhs: u32) -> Option<Self>
Checked shift right.
Trait Implementations§
Source§impl Add<&BoundedEnum> for &BoundedEnum
impl Add<&BoundedEnum> for &BoundedEnum
Source§type Output = BoundedEnum
type Output = BoundedEnum
+ operator.Source§impl Add<&BoundedEnum> for &i8
impl Add<&BoundedEnum> for &i8
Source§impl Add<&BoundedEnum> for BoundedEnum
impl Add<&BoundedEnum> for BoundedEnum
Source§type Output = BoundedEnum
type Output = BoundedEnum
+ operator.Source§impl Add<&BoundedEnum> for i8
impl Add<&BoundedEnum> for i8
Source§impl Add<&i8> for &BoundedEnum
impl Add<&i8> for &BoundedEnum
Source§impl Add<&i8> for BoundedEnum
impl Add<&i8> for BoundedEnum
Source§impl Add<BoundedEnum> for &BoundedEnum
impl Add<BoundedEnum> for &BoundedEnum
Source§type Output = BoundedEnum
type Output = BoundedEnum
+ operator.Source§impl Add<BoundedEnum> for &i8
impl Add<BoundedEnum> for &i8
Source§impl Add<BoundedEnum> for i8
impl Add<BoundedEnum> for i8
Source§impl Add<i8> for &BoundedEnum
impl Add<i8> for &BoundedEnum
Source§impl Add<i8> for BoundedEnum
impl Add<i8> for BoundedEnum
Source§impl Add for BoundedEnum
impl Add for BoundedEnum
Source§type Output = BoundedEnum
type Output = BoundedEnum
+ operator.Source§impl AddAssign<&BoundedEnum> for BoundedEnum
impl AddAssign<&BoundedEnum> for BoundedEnum
Source§fn add_assign(&mut self, rhs: &BoundedEnum)
fn add_assign(&mut self, rhs: &BoundedEnum)
+= operation. Read moreSource§impl AddAssign<&BoundedEnum> for i8
impl AddAssign<&BoundedEnum> for i8
Source§fn add_assign(&mut self, rhs: &BoundedEnum)
fn add_assign(&mut self, rhs: &BoundedEnum)
+= operation. Read moreSource§impl AddAssign<&i8> for BoundedEnum
impl AddAssign<&i8> for BoundedEnum
Source§fn add_assign(&mut self, rhs: &i8)
fn add_assign(&mut self, rhs: &i8)
+= operation. Read moreSource§impl AddAssign<BoundedEnum> for i8
impl AddAssign<BoundedEnum> for i8
Source§fn add_assign(&mut self, rhs: BoundedEnum)
fn add_assign(&mut self, rhs: BoundedEnum)
+= operation. Read moreSource§impl AddAssign<i8> for BoundedEnum
impl AddAssign<i8> for BoundedEnum
Source§fn add_assign(&mut self, rhs: i8)
fn add_assign(&mut self, rhs: i8)
+= operation. Read moreSource§impl AddAssign for BoundedEnum
impl AddAssign for BoundedEnum
Source§fn add_assign(&mut self, rhs: BoundedEnum)
fn add_assign(&mut self, rhs: BoundedEnum)
+= operation. Read moreSource§impl<'__a> Arbitrary<'__a> for BoundedEnum
Available on crate feature arbitrary1 only.
impl<'__a> Arbitrary<'__a> for BoundedEnum
arbitrary1 only.Source§fn arbitrary(u: &mut Unstructured<'__a>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'__a>) -> Result<Self>
Self from the given unstructured data. Read moreSource§fn size_hint(depth: usize) -> (usize, Option<usize>)
fn size_hint(depth: usize) -> (usize, Option<usize>)
Unstructured this type
needs to construct itself. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
Self from the entirety of the given
unstructured data. Read moreSource§fn try_size_hint(
depth: usize,
) -> Result<(usize, Option<usize>), MaxRecursionReached>
fn try_size_hint( depth: usize, ) -> Result<(usize, Option<usize>), MaxRecursionReached>
Unstructured this type
needs to construct itself. Read moreSource§impl<__T> AsPrimitive<__T> for BoundedEnum
Available on crate feature num-traits02 only.
impl<__T> AsPrimitive<__T> for BoundedEnum
num-traits02 only.Source§impl AsRef<i8> for BoundedEnum
impl AsRef<i8> for BoundedEnum
Source§impl Binary for BoundedEnum
impl Binary for BoundedEnum
Source§impl BitAnd<&BoundedEnum> for &BoundedEnum
impl BitAnd<&BoundedEnum> for &BoundedEnum
Source§type Output = BoundedEnum
type Output = BoundedEnum
& operator.Source§impl BitAnd<&BoundedEnum> for &i8
impl BitAnd<&BoundedEnum> for &i8
Source§impl BitAnd<&BoundedEnum> for BoundedEnum
impl BitAnd<&BoundedEnum> for BoundedEnum
Source§type Output = BoundedEnum
type Output = BoundedEnum
& operator.Source§impl BitAnd<&BoundedEnum> for i8
impl BitAnd<&BoundedEnum> for i8
Source§impl BitAnd<&i8> for &BoundedEnum
impl BitAnd<&i8> for &BoundedEnum
Source§impl BitAnd<&i8> for BoundedEnum
impl BitAnd<&i8> for BoundedEnum
Source§impl BitAnd<BoundedEnum> for &BoundedEnum
impl BitAnd<BoundedEnum> for &BoundedEnum
Source§type Output = BoundedEnum
type Output = BoundedEnum
& operator.Source§impl BitAnd<BoundedEnum> for &i8
impl BitAnd<BoundedEnum> for &i8
Source§impl BitAnd<BoundedEnum> for i8
impl BitAnd<BoundedEnum> for i8
Source§impl BitAnd<i8> for &BoundedEnum
impl BitAnd<i8> for &BoundedEnum
Source§impl BitAnd<i8> for BoundedEnum
impl BitAnd<i8> for BoundedEnum
Source§impl BitAnd for BoundedEnum
impl BitAnd for BoundedEnum
Source§type Output = BoundedEnum
type Output = BoundedEnum
& operator.Source§impl BitAndAssign<&BoundedEnum> for BoundedEnum
impl BitAndAssign<&BoundedEnum> for BoundedEnum
Source§fn bitand_assign(&mut self, rhs: &BoundedEnum)
fn bitand_assign(&mut self, rhs: &BoundedEnum)
&= operation. Read moreSource§impl BitAndAssign<&BoundedEnum> for i8
impl BitAndAssign<&BoundedEnum> for i8
Source§fn bitand_assign(&mut self, rhs: &BoundedEnum)
fn bitand_assign(&mut self, rhs: &BoundedEnum)
&= operation. Read moreSource§impl BitAndAssign<&i8> for BoundedEnum
impl BitAndAssign<&i8> for BoundedEnum
Source§fn bitand_assign(&mut self, rhs: &i8)
fn bitand_assign(&mut self, rhs: &i8)
&= operation. Read moreSource§impl BitAndAssign<BoundedEnum> for i8
impl BitAndAssign<BoundedEnum> for i8
Source§fn bitand_assign(&mut self, rhs: BoundedEnum)
fn bitand_assign(&mut self, rhs: BoundedEnum)
&= operation. Read moreSource§impl BitAndAssign<i8> for BoundedEnum
impl BitAndAssign<i8> for BoundedEnum
Source§fn bitand_assign(&mut self, rhs: i8)
fn bitand_assign(&mut self, rhs: i8)
&= operation. Read moreSource§impl BitAndAssign for BoundedEnum
impl BitAndAssign for BoundedEnum
Source§fn bitand_assign(&mut self, rhs: BoundedEnum)
fn bitand_assign(&mut self, rhs: BoundedEnum)
&= operation. Read moreSource§impl BitOr<&BoundedEnum> for &BoundedEnum
impl BitOr<&BoundedEnum> for &BoundedEnum
Source§type Output = BoundedEnum
type Output = BoundedEnum
| operator.Source§impl BitOr<&BoundedEnum> for &i8
impl BitOr<&BoundedEnum> for &i8
Source§impl BitOr<&BoundedEnum> for BoundedEnum
impl BitOr<&BoundedEnum> for BoundedEnum
Source§type Output = BoundedEnum
type Output = BoundedEnum
| operator.Source§impl BitOr<&BoundedEnum> for i8
impl BitOr<&BoundedEnum> for i8
Source§impl BitOr<&i8> for &BoundedEnum
impl BitOr<&i8> for &BoundedEnum
Source§impl BitOr<&i8> for BoundedEnum
impl BitOr<&i8> for BoundedEnum
Source§impl BitOr<BoundedEnum> for &BoundedEnum
impl BitOr<BoundedEnum> for &BoundedEnum
Source§type Output = BoundedEnum
type Output = BoundedEnum
| operator.Source§impl BitOr<BoundedEnum> for &i8
impl BitOr<BoundedEnum> for &i8
Source§impl BitOr<BoundedEnum> for i8
impl BitOr<BoundedEnum> for i8
Source§impl BitOr<i8> for &BoundedEnum
impl BitOr<i8> for &BoundedEnum
Source§impl BitOr<i8> for BoundedEnum
impl BitOr<i8> for BoundedEnum
Source§impl BitOr for BoundedEnum
impl BitOr for BoundedEnum
Source§type Output = BoundedEnum
type Output = BoundedEnum
| operator.Source§impl BitOrAssign<&BoundedEnum> for BoundedEnum
impl BitOrAssign<&BoundedEnum> for BoundedEnum
Source§fn bitor_assign(&mut self, rhs: &BoundedEnum)
fn bitor_assign(&mut self, rhs: &BoundedEnum)
|= operation. Read moreSource§impl BitOrAssign<&BoundedEnum> for i8
impl BitOrAssign<&BoundedEnum> for i8
Source§fn bitor_assign(&mut self, rhs: &BoundedEnum)
fn bitor_assign(&mut self, rhs: &BoundedEnum)
|= operation. Read moreSource§impl BitOrAssign<&i8> for BoundedEnum
impl BitOrAssign<&i8> for BoundedEnum
Source§fn bitor_assign(&mut self, rhs: &i8)
fn bitor_assign(&mut self, rhs: &i8)
|= operation. Read moreSource§impl BitOrAssign<BoundedEnum> for i8
impl BitOrAssign<BoundedEnum> for i8
Source§fn bitor_assign(&mut self, rhs: BoundedEnum)
fn bitor_assign(&mut self, rhs: BoundedEnum)
|= operation. Read moreSource§impl BitOrAssign<i8> for BoundedEnum
impl BitOrAssign<i8> for BoundedEnum
Source§fn bitor_assign(&mut self, rhs: i8)
fn bitor_assign(&mut self, rhs: i8)
|= operation. Read moreSource§impl BitOrAssign for BoundedEnum
impl BitOrAssign for BoundedEnum
Source§fn bitor_assign(&mut self, rhs: BoundedEnum)
fn bitor_assign(&mut self, rhs: BoundedEnum)
|= operation. Read moreSource§impl BitXor<&BoundedEnum> for &BoundedEnum
impl BitXor<&BoundedEnum> for &BoundedEnum
Source§type Output = BoundedEnum
type Output = BoundedEnum
^ operator.Source§impl BitXor<&BoundedEnum> for &i8
impl BitXor<&BoundedEnum> for &i8
Source§impl BitXor<&BoundedEnum> for BoundedEnum
impl BitXor<&BoundedEnum> for BoundedEnum
Source§type Output = BoundedEnum
type Output = BoundedEnum
^ operator.Source§impl BitXor<&BoundedEnum> for i8
impl BitXor<&BoundedEnum> for i8
Source§impl BitXor<&i8> for &BoundedEnum
impl BitXor<&i8> for &BoundedEnum
Source§impl BitXor<&i8> for BoundedEnum
impl BitXor<&i8> for BoundedEnum
Source§impl BitXor<BoundedEnum> for &BoundedEnum
impl BitXor<BoundedEnum> for &BoundedEnum
Source§type Output = BoundedEnum
type Output = BoundedEnum
^ operator.Source§impl BitXor<BoundedEnum> for &i8
impl BitXor<BoundedEnum> for &i8
Source§impl BitXor<BoundedEnum> for i8
impl BitXor<BoundedEnum> for i8
Source§impl BitXor<i8> for &BoundedEnum
impl BitXor<i8> for &BoundedEnum
Source§impl BitXor<i8> for BoundedEnum
impl BitXor<i8> for BoundedEnum
Source§impl BitXor for BoundedEnum
impl BitXor for BoundedEnum
Source§type Output = BoundedEnum
type Output = BoundedEnum
^ operator.Source§impl BitXorAssign<&BoundedEnum> for BoundedEnum
impl BitXorAssign<&BoundedEnum> for BoundedEnum
Source§fn bitxor_assign(&mut self, rhs: &BoundedEnum)
fn bitxor_assign(&mut self, rhs: &BoundedEnum)
^= operation. Read moreSource§impl BitXorAssign<&BoundedEnum> for i8
impl BitXorAssign<&BoundedEnum> for i8
Source§fn bitxor_assign(&mut self, rhs: &BoundedEnum)
fn bitxor_assign(&mut self, rhs: &BoundedEnum)
^= operation. Read moreSource§impl BitXorAssign<&i8> for BoundedEnum
impl BitXorAssign<&i8> for BoundedEnum
Source§fn bitxor_assign(&mut self, rhs: &i8)
fn bitxor_assign(&mut self, rhs: &i8)
^= operation. Read moreSource§impl BitXorAssign<BoundedEnum> for i8
impl BitXorAssign<BoundedEnum> for i8
Source§fn bitxor_assign(&mut self, rhs: BoundedEnum)
fn bitxor_assign(&mut self, rhs: BoundedEnum)
^= operation. Read moreSource§impl BitXorAssign<i8> for BoundedEnum
impl BitXorAssign<i8> for BoundedEnum
Source§fn bitxor_assign(&mut self, rhs: i8)
fn bitxor_assign(&mut self, rhs: i8)
^= operation. Read moreSource§impl BitXorAssign for BoundedEnum
impl BitXorAssign for BoundedEnum
Source§fn bitxor_assign(&mut self, rhs: BoundedEnum)
fn bitxor_assign(&mut self, rhs: BoundedEnum)
^= operation. Read moreSource§impl Borrow<i8> for BoundedEnum
impl Borrow<i8> for BoundedEnum
Source§impl Bounded for BoundedEnum
Available on crate feature num-traits02 only.
impl Bounded for BoundedEnum
num-traits02 only.Source§impl CheckedAdd for BoundedEnum
Available on crate feature num-traits02 only.
impl CheckedAdd for BoundedEnum
num-traits02 only.Source§fn checked_add(&self, v: &Self) -> Option<Self>
fn checked_add(&self, v: &Self) -> Option<Self>
None is
returned.Source§impl CheckedDiv for BoundedEnum
Available on crate feature num-traits02 only.
impl CheckedDiv for BoundedEnum
num-traits02 only.Source§fn checked_div(&self, v: &Self) -> Option<Self>
fn checked_div(&self, v: &Self) -> Option<Self>
None is returned.Source§impl CheckedMul for BoundedEnum
Available on crate feature num-traits02 only.
impl CheckedMul for BoundedEnum
num-traits02 only.Source§fn checked_mul(&self, v: &Self) -> Option<Self>
fn checked_mul(&self, v: &Self) -> Option<Self>
None is returned.Source§impl CheckedNeg for BoundedEnum
Available on crate feature num-traits02 only.
impl CheckedNeg for BoundedEnum
num-traits02 only.Source§fn checked_neg(&self) -> Option<Self>
fn checked_neg(&self) -> Option<Self>
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 moreSource§impl CheckedRem for BoundedEnum
Available on crate feature num-traits02 only.
impl CheckedRem for BoundedEnum
num-traits02 only.Source§fn checked_rem(&self, v: &Self) -> Option<Self>
fn checked_rem(&self, v: &Self) -> Option<Self>
None is returned. Read moreSource§impl CheckedShl for BoundedEnum
Available on crate feature num-traits02 only.
impl CheckedShl for BoundedEnum
num-traits02 only.Source§impl CheckedShr for BoundedEnum
Available on crate feature num-traits02 only.
impl CheckedShr for BoundedEnum
num-traits02 only.Source§impl CheckedSub for BoundedEnum
Available on crate feature num-traits02 only.
impl CheckedSub for BoundedEnum
num-traits02 only.Source§fn checked_sub(&self, v: &Self) -> Option<Self>
fn checked_sub(&self, v: &Self) -> Option<Self>
None is returned.Source§impl Clone for BoundedEnum
impl Clone for BoundedEnum
Source§impl Contiguous for BoundedEnumwhere
Self: 'static,
Available on crate feature bytemuck1 only.
impl Contiguous for BoundedEnumwhere
Self: 'static,
bytemuck1 only.Source§type Int = i8
type Int = i8
Source§fn from_integer(value: Self::Int) -> Option<Self>
fn from_integer(value: Self::Int) -> Option<Self>
value is within the range for valid instances of this type,
returns Some(converted_value), otherwise, returns None. Read moreSource§fn into_integer(self) -> Self::Int
fn into_integer(self) -> Self::Int
C into the underlying integral type. This
mostly exists otherwise generic code would need unsafe for the value as integer Read moreSource§impl Debug for BoundedEnum
impl Debug for BoundedEnum
Source§impl Default for BoundedEnum
impl Default for BoundedEnum
Source§impl<'__de> Deserialize<'__de> for BoundedEnum
Available on crate feature serde1 only.
impl<'__de> Deserialize<'__de> for BoundedEnum
serde1 only.Source§fn deserialize<D: Deserializer<'__de>>(
deserializer: D,
) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'__de>>( deserializer: D, ) -> Result<Self, D::Error>
Source§impl Display for BoundedEnum
impl Display for BoundedEnum
Source§impl Div<&BoundedEnum> for &BoundedEnum
impl Div<&BoundedEnum> for &BoundedEnum
Source§type Output = BoundedEnum
type Output = BoundedEnum
/ operator.Source§impl Div<&BoundedEnum> for &i8
impl Div<&BoundedEnum> for &i8
Source§impl Div<&BoundedEnum> for BoundedEnum
impl Div<&BoundedEnum> for BoundedEnum
Source§type Output = BoundedEnum
type Output = BoundedEnum
/ operator.Source§impl Div<&BoundedEnum> for i8
impl Div<&BoundedEnum> for i8
Source§impl Div<&i8> for &BoundedEnum
impl Div<&i8> for &BoundedEnum
Source§impl Div<&i8> for BoundedEnum
impl Div<&i8> for BoundedEnum
Source§impl Div<BoundedEnum> for &BoundedEnum
impl Div<BoundedEnum> for &BoundedEnum
Source§type Output = BoundedEnum
type Output = BoundedEnum
/ operator.Source§impl Div<BoundedEnum> for &i8
impl Div<BoundedEnum> for &i8
Source§impl Div<BoundedEnum> for i8
impl Div<BoundedEnum> for i8
Source§impl Div<i8> for &BoundedEnum
impl Div<i8> for &BoundedEnum
Source§impl Div<i8> for BoundedEnum
impl Div<i8> for BoundedEnum
Source§impl Div for BoundedEnum
impl Div for BoundedEnum
Source§type Output = BoundedEnum
type Output = BoundedEnum
/ operator.Source§impl DivAssign<&BoundedEnum> for BoundedEnum
impl DivAssign<&BoundedEnum> for BoundedEnum
Source§fn div_assign(&mut self, rhs: &BoundedEnum)
fn div_assign(&mut self, rhs: &BoundedEnum)
/= operation. Read moreSource§impl DivAssign<&BoundedEnum> for i8
impl DivAssign<&BoundedEnum> for i8
Source§fn div_assign(&mut self, rhs: &BoundedEnum)
fn div_assign(&mut self, rhs: &BoundedEnum)
/= operation. Read moreSource§impl DivAssign<&i8> for BoundedEnum
impl DivAssign<&i8> for BoundedEnum
Source§fn div_assign(&mut self, rhs: &i8)
fn div_assign(&mut self, rhs: &i8)
/= operation. Read moreSource§impl DivAssign<BoundedEnum> for i8
impl DivAssign<BoundedEnum> for i8
Source§fn div_assign(&mut self, rhs: BoundedEnum)
fn div_assign(&mut self, rhs: BoundedEnum)
/= operation. Read moreSource§impl DivAssign<i8> for BoundedEnum
impl DivAssign<i8> for BoundedEnum
Source§fn div_assign(&mut self, rhs: i8)
fn div_assign(&mut self, rhs: i8)
/= operation. Read moreSource§impl DivAssign for BoundedEnum
impl DivAssign for BoundedEnum
Source§fn div_assign(&mut self, rhs: BoundedEnum)
fn div_assign(&mut self, rhs: BoundedEnum)
/= operation. Read moreSource§impl From<BoundedEnum> for i128
impl From<BoundedEnum> for i128
Source§fn from(bounded: BoundedEnum) -> Self
fn from(bounded: BoundedEnum) -> Self
Source§impl From<BoundedEnum> for i16
impl From<BoundedEnum> for i16
Source§fn from(bounded: BoundedEnum) -> Self
fn from(bounded: BoundedEnum) -> Self
Source§impl From<BoundedEnum> for i32
impl From<BoundedEnum> for i32
Source§fn from(bounded: BoundedEnum) -> Self
fn from(bounded: BoundedEnum) -> Self
Source§impl From<BoundedEnum> for i64
impl From<BoundedEnum> for i64
Source§fn from(bounded: BoundedEnum) -> Self
fn from(bounded: BoundedEnum) -> Self
Source§impl From<BoundedEnum> for i8
impl From<BoundedEnum> for i8
Source§fn from(bounded: BoundedEnum) -> Self
fn from(bounded: BoundedEnum) -> Self
Source§impl From<BoundedEnum> for isize
impl From<BoundedEnum> for isize
Source§fn from(bounded: BoundedEnum) -> Self
fn from(bounded: BoundedEnum) -> Self
Source§impl FromPrimitive for BoundedEnumwhere
i8: FromPrimitive,
Available on crate feature num-traits02 only.
impl FromPrimitive for BoundedEnumwhere
i8: FromPrimitive,
num-traits02 only.Source§fn from_i64(n: i64) -> Option<Self>
fn from_i64(n: i64) -> Option<Self>
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>
fn from_u64(n: u64) -> Option<Self>
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>
fn from_isize(n: isize) -> Option<Self>
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>
fn from_i8(n: i8) -> Option<Self>
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>
fn from_i16(n: i16) -> Option<Self>
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>
fn from_i32(n: i32) -> Option<Self>
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>
fn from_i128(n: i128) -> Option<Self>
i128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moreSource§fn from_usize(n: usize) -> Option<Self>
fn from_usize(n: usize) -> Option<Self>
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>
fn from_u8(n: u8) -> Option<Self>
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>
fn from_u16(n: u16) -> Option<Self>
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>
fn from_u32(n: u32) -> Option<Self>
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>
fn from_u128(n: u128) -> Option<Self>
u128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moreSource§impl FromStr for BoundedEnum
impl FromStr for BoundedEnum
Source§impl FromZeros for BoundedEnum
impl FromZeros for BoundedEnum
Source§impl Hash for BoundedEnum
impl Hash for BoundedEnum
Source§impl IntoBytes for BoundedEnum
impl IntoBytes for BoundedEnum
Source§impl LowerExp for BoundedEnum
impl LowerExp for BoundedEnum
Source§impl LowerHex for BoundedEnum
impl LowerHex for BoundedEnum
Source§impl Mul<&BoundedEnum> for &BoundedEnum
impl Mul<&BoundedEnum> for &BoundedEnum
Source§type Output = BoundedEnum
type Output = BoundedEnum
* operator.Source§impl Mul<&BoundedEnum> for &i8
impl Mul<&BoundedEnum> for &i8
Source§impl Mul<&BoundedEnum> for BoundedEnum
impl Mul<&BoundedEnum> for BoundedEnum
Source§type Output = BoundedEnum
type Output = BoundedEnum
* operator.Source§impl Mul<&BoundedEnum> for i8
impl Mul<&BoundedEnum> for i8
Source§impl Mul<&i8> for &BoundedEnum
impl Mul<&i8> for &BoundedEnum
Source§impl Mul<&i8> for BoundedEnum
impl Mul<&i8> for BoundedEnum
Source§impl Mul<BoundedEnum> for &BoundedEnum
impl Mul<BoundedEnum> for &BoundedEnum
Source§type Output = BoundedEnum
type Output = BoundedEnum
* operator.Source§impl Mul<BoundedEnum> for &i8
impl Mul<BoundedEnum> for &i8
Source§impl Mul<BoundedEnum> for i8
impl Mul<BoundedEnum> for i8
Source§impl Mul<i8> for &BoundedEnum
impl Mul<i8> for &BoundedEnum
Source§impl Mul<i8> for BoundedEnum
impl Mul<i8> for BoundedEnum
Source§impl Mul for BoundedEnum
impl Mul for BoundedEnum
Source§type Output = BoundedEnum
type Output = BoundedEnum
* operator.Source§impl<__A, __B> MulAdd<__A, __B> for BoundedEnum
Available on crate feature num-traits02 only.
impl<__A, __B> MulAdd<__A, __B> for BoundedEnum
num-traits02 only.Source§impl MulAssign<&BoundedEnum> for BoundedEnum
impl MulAssign<&BoundedEnum> for BoundedEnum
Source§fn mul_assign(&mut self, rhs: &BoundedEnum)
fn mul_assign(&mut self, rhs: &BoundedEnum)
*= operation. Read moreSource§impl MulAssign<&BoundedEnum> for i8
impl MulAssign<&BoundedEnum> for i8
Source§fn mul_assign(&mut self, rhs: &BoundedEnum)
fn mul_assign(&mut self, rhs: &BoundedEnum)
*= operation. Read moreSource§impl MulAssign<&i8> for BoundedEnum
impl MulAssign<&i8> for BoundedEnum
Source§fn mul_assign(&mut self, rhs: &i8)
fn mul_assign(&mut self, rhs: &i8)
*= operation. Read moreSource§impl MulAssign<BoundedEnum> for i8
impl MulAssign<BoundedEnum> for i8
Source§fn mul_assign(&mut self, rhs: BoundedEnum)
fn mul_assign(&mut self, rhs: BoundedEnum)
*= operation. Read moreSource§impl MulAssign<i8> for BoundedEnum
impl MulAssign<i8> for BoundedEnum
Source§fn mul_assign(&mut self, rhs: i8)
fn mul_assign(&mut self, rhs: i8)
*= operation. Read moreSource§impl MulAssign for BoundedEnum
impl MulAssign for BoundedEnum
Source§fn mul_assign(&mut self, rhs: BoundedEnum)
fn mul_assign(&mut self, rhs: BoundedEnum)
*= operation. Read moreSource§impl Neg for &BoundedEnum
impl Neg for &BoundedEnum
Source§impl Neg for BoundedEnum
impl Neg for BoundedEnum
Source§impl Not for &BoundedEnum
impl Not for &BoundedEnum
Source§impl Not for BoundedEnum
impl Not for BoundedEnum
Source§impl NumCast for BoundedEnum
Available on crate feature num-traits02 only.
impl NumCast for BoundedEnum
num-traits02 only.Source§impl Octal for BoundedEnum
impl Octal for BoundedEnum
Source§impl One for BoundedEnum
Available on crate feature num-traits02 only.
impl One for BoundedEnum
num-traits02 only.Source§impl Ord for BoundedEnum
impl Ord for BoundedEnum
Source§fn cmp(&self, other: &BoundedEnum) -> Ordering
fn cmp(&self, other: &BoundedEnum) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq<BoundedEnum> for i8
impl PartialEq<BoundedEnum> for i8
Source§impl PartialEq<i8> for BoundedEnum
impl PartialEq<i8> for BoundedEnum
Source§impl PartialEq for BoundedEnum
impl PartialEq for BoundedEnum
Source§impl PartialOrd<BoundedEnum> for i8
impl PartialOrd<BoundedEnum> for i8
Source§impl PartialOrd<i8> for BoundedEnum
impl PartialOrd<i8> for BoundedEnum
Source§impl PartialOrd for BoundedEnum
impl PartialOrd for BoundedEnum
Source§impl<'__a> Product<&'__a BoundedEnum> for BoundedEnum
impl<'__a> Product<&'__a BoundedEnum> for BoundedEnum
Source§impl<'__a> Product<&'__a BoundedEnum> for i8
impl<'__a> Product<&'__a BoundedEnum> for i8
Source§fn product<I: Iterator<Item = &'__a BoundedEnum>>(iter: I) -> Self
fn product<I: Iterator<Item = &'__a BoundedEnum>>(iter: I) -> Self
Self from the elements by multiplying
the items.Source§impl Product<BoundedEnum> for i8
impl Product<BoundedEnum> for i8
Source§fn product<I: Iterator<Item = BoundedEnum>>(iter: I) -> Self
fn product<I: Iterator<Item = BoundedEnum>>(iter: I) -> Self
Self from the elements by multiplying
the items.Source§impl Product for BoundedEnum
impl Product for BoundedEnum
Source§impl Rem<&BoundedEnum> for &BoundedEnum
impl Rem<&BoundedEnum> for &BoundedEnum
Source§type Output = BoundedEnum
type Output = BoundedEnum
% operator.Source§impl Rem<&BoundedEnum> for &i8
impl Rem<&BoundedEnum> for &i8
Source§impl Rem<&BoundedEnum> for BoundedEnum
impl Rem<&BoundedEnum> for BoundedEnum
Source§type Output = BoundedEnum
type Output = BoundedEnum
% operator.Source§impl Rem<&BoundedEnum> for i8
impl Rem<&BoundedEnum> for i8
Source§impl Rem<&i8> for &BoundedEnum
impl Rem<&i8> for &BoundedEnum
Source§impl Rem<&i8> for BoundedEnum
impl Rem<&i8> for BoundedEnum
Source§impl Rem<BoundedEnum> for &BoundedEnum
impl Rem<BoundedEnum> for &BoundedEnum
Source§type Output = BoundedEnum
type Output = BoundedEnum
% operator.Source§impl Rem<BoundedEnum> for &i8
impl Rem<BoundedEnum> for &i8
Source§impl Rem<BoundedEnum> for i8
impl Rem<BoundedEnum> for i8
Source§impl Rem<i8> for &BoundedEnum
impl Rem<i8> for &BoundedEnum
Source§impl Rem<i8> for BoundedEnum
impl Rem<i8> for BoundedEnum
Source§impl Rem for BoundedEnum
impl Rem for BoundedEnum
Source§type Output = BoundedEnum
type Output = BoundedEnum
% operator.Source§impl RemAssign<&BoundedEnum> for BoundedEnum
impl RemAssign<&BoundedEnum> for BoundedEnum
Source§fn rem_assign(&mut self, rhs: &BoundedEnum)
fn rem_assign(&mut self, rhs: &BoundedEnum)
%= operation. Read moreSource§impl RemAssign<&BoundedEnum> for i8
impl RemAssign<&BoundedEnum> for i8
Source§fn rem_assign(&mut self, rhs: &BoundedEnum)
fn rem_assign(&mut self, rhs: &BoundedEnum)
%= operation. Read moreSource§impl RemAssign<&i8> for BoundedEnum
impl RemAssign<&i8> for BoundedEnum
Source§fn rem_assign(&mut self, rhs: &i8)
fn rem_assign(&mut self, rhs: &i8)
%= operation. Read moreSource§impl RemAssign<BoundedEnum> for i8
impl RemAssign<BoundedEnum> for i8
Source§fn rem_assign(&mut self, rhs: BoundedEnum)
fn rem_assign(&mut self, rhs: BoundedEnum)
%= operation. Read moreSource§impl RemAssign<i8> for BoundedEnum
impl RemAssign<i8> for BoundedEnum
Source§fn rem_assign(&mut self, rhs: i8)
fn rem_assign(&mut self, rhs: i8)
%= operation. Read moreSource§impl RemAssign for BoundedEnum
impl RemAssign for BoundedEnum
Source§fn rem_assign(&mut self, rhs: BoundedEnum)
fn rem_assign(&mut self, rhs: BoundedEnum)
%= operation. Read moreSource§impl SaturatingAdd for BoundedEnum
Available on crate feature num-traits02 only.
impl SaturatingAdd for BoundedEnum
num-traits02 only.Source§fn saturating_add(&self, v: &Self) -> Self
fn saturating_add(&self, v: &Self) -> Self
self + other, saturating at the relevant high or low boundary of
the type.Source§impl SaturatingMul for BoundedEnum
Available on crate feature num-traits02 only.
impl SaturatingMul for BoundedEnum
num-traits02 only.Source§fn saturating_mul(&self, v: &Self) -> Self
fn saturating_mul(&self, v: &Self) -> Self
self * other, saturating at the relevant high or low boundary of
the type.Source§impl SaturatingSub for BoundedEnum
Available on crate feature num-traits02 only.
impl SaturatingSub for BoundedEnum
num-traits02 only.Source§fn saturating_sub(&self, v: &Self) -> Self
fn saturating_sub(&self, v: &Self) -> Self
self - other, saturating at the relevant high or low boundary of
the type.Source§impl Serialize for BoundedEnum
Available on crate feature serde1 only.
impl Serialize for BoundedEnum
serde1 only.Source§impl Shl<&u32> for &BoundedEnum
impl Shl<&u32> for &BoundedEnum
Source§impl Shl<&u32> for BoundedEnum
impl Shl<&u32> for BoundedEnum
Source§impl Shl<u32> for &BoundedEnum
impl Shl<u32> for &BoundedEnum
Source§impl Shl<u32> for BoundedEnum
impl Shl<u32> for BoundedEnum
Source§impl ShlAssign<&u32> for BoundedEnum
impl ShlAssign<&u32> for BoundedEnum
Source§fn shl_assign(&mut self, rhs: &u32)
fn shl_assign(&mut self, rhs: &u32)
<<= operation. Read moreSource§impl ShlAssign<u32> for BoundedEnum
impl ShlAssign<u32> for BoundedEnum
Source§fn shl_assign(&mut self, rhs: u32)
fn shl_assign(&mut self, rhs: u32)
<<= operation. Read moreSource§impl Shr<&u32> for &BoundedEnum
impl Shr<&u32> for &BoundedEnum
Source§impl Shr<&u32> for BoundedEnum
impl Shr<&u32> for BoundedEnum
Source§impl Shr<u32> for &BoundedEnum
impl Shr<u32> for &BoundedEnum
Source§impl Shr<u32> for BoundedEnum
impl Shr<u32> for BoundedEnum
Source§impl ShrAssign<&u32> for BoundedEnum
impl ShrAssign<&u32> for BoundedEnum
Source§fn shr_assign(&mut self, rhs: &u32)
fn shr_assign(&mut self, rhs: &u32)
>>= operation. Read moreSource§impl ShrAssign<u32> for BoundedEnum
impl ShrAssign<u32> for BoundedEnum
Source§fn shr_assign(&mut self, rhs: u32)
fn shr_assign(&mut self, rhs: u32)
>>= operation. Read moreSource§impl Step for BoundedEnum
Available on crate feature step_trait only.
impl Step for BoundedEnum
step_trait only.Source§fn steps_between(start: &Self, end: &Self) -> (usize, Option<usize>)
fn steps_between(start: &Self, end: &Self) -> (usize, Option<usize>)
step_trait)start to end
like Iterator::size_hint(). Read moreSource§fn forward_checked(start: Self, count: usize) -> Option<Self>
fn forward_checked(start: Self, count: usize) -> Option<Self>
step_trait)Source§fn backward_checked(start: Self, count: usize) -> Option<Self>
fn backward_checked(start: Self, count: usize) -> Option<Self>
step_trait)Source§fn forward(start: Self, count: usize) -> Self
fn forward(start: Self, count: usize) -> Self
step_trait)Source§unsafe fn forward_unchecked(start: Self, count: usize) -> Self
unsafe fn forward_unchecked(start: Self, count: usize) -> Self
step_trait)Source§fn backward(start: Self, count: usize) -> Self
fn backward(start: Self, count: usize) -> Self
step_trait)Source§unsafe fn backward_unchecked(start: Self, count: usize) -> Self
unsafe fn backward_unchecked(start: Self, count: usize) -> Self
step_trait)Source§impl Sub<&BoundedEnum> for &BoundedEnum
impl Sub<&BoundedEnum> for &BoundedEnum
Source§type Output = BoundedEnum
type Output = BoundedEnum
- operator.Source§impl Sub<&BoundedEnum> for &i8
impl Sub<&BoundedEnum> for &i8
Source§impl Sub<&BoundedEnum> for BoundedEnum
impl Sub<&BoundedEnum> for BoundedEnum
Source§type Output = BoundedEnum
type Output = BoundedEnum
- operator.Source§impl Sub<&BoundedEnum> for i8
impl Sub<&BoundedEnum> for i8
Source§impl Sub<&i8> for &BoundedEnum
impl Sub<&i8> for &BoundedEnum
Source§impl Sub<&i8> for BoundedEnum
impl Sub<&i8> for BoundedEnum
Source§impl Sub<BoundedEnum> for &BoundedEnum
impl Sub<BoundedEnum> for &BoundedEnum
Source§type Output = BoundedEnum
type Output = BoundedEnum
- operator.Source§impl Sub<BoundedEnum> for &i8
impl Sub<BoundedEnum> for &i8
Source§impl Sub<BoundedEnum> for i8
impl Sub<BoundedEnum> for i8
Source§impl Sub<i8> for &BoundedEnum
impl Sub<i8> for &BoundedEnum
Source§impl Sub<i8> for BoundedEnum
impl Sub<i8> for BoundedEnum
Source§impl Sub for BoundedEnum
impl Sub for BoundedEnum
Source§type Output = BoundedEnum
type Output = BoundedEnum
- operator.Source§impl SubAssign<&BoundedEnum> for BoundedEnum
impl SubAssign<&BoundedEnum> for BoundedEnum
Source§fn sub_assign(&mut self, rhs: &BoundedEnum)
fn sub_assign(&mut self, rhs: &BoundedEnum)
-= operation. Read moreSource§impl SubAssign<&BoundedEnum> for i8
impl SubAssign<&BoundedEnum> for i8
Source§fn sub_assign(&mut self, rhs: &BoundedEnum)
fn sub_assign(&mut self, rhs: &BoundedEnum)
-= operation. Read moreSource§impl SubAssign<&i8> for BoundedEnum
impl SubAssign<&i8> for BoundedEnum
Source§fn sub_assign(&mut self, rhs: &i8)
fn sub_assign(&mut self, rhs: &i8)
-= operation. Read moreSource§impl SubAssign<BoundedEnum> for i8
impl SubAssign<BoundedEnum> for i8
Source§fn sub_assign(&mut self, rhs: BoundedEnum)
fn sub_assign(&mut self, rhs: BoundedEnum)
-= operation. Read moreSource§impl SubAssign<i8> for BoundedEnum
impl SubAssign<i8> for BoundedEnum
Source§fn sub_assign(&mut self, rhs: i8)
fn sub_assign(&mut self, rhs: i8)
-= operation. Read moreSource§impl SubAssign for BoundedEnum
impl SubAssign for BoundedEnum
Source§fn sub_assign(&mut self, rhs: BoundedEnum)
fn sub_assign(&mut self, rhs: BoundedEnum)
-= operation. Read moreSource§impl<'__a> Sum<&'__a BoundedEnum> for BoundedEnum
impl<'__a> Sum<&'__a BoundedEnum> for BoundedEnum
Source§impl<'__a> Sum<&'__a BoundedEnum> for i8
impl<'__a> Sum<&'__a BoundedEnum> for i8
Source§fn sum<I: Iterator<Item = &'__a BoundedEnum>>(iter: I) -> Self
fn sum<I: Iterator<Item = &'__a BoundedEnum>>(iter: I) -> Self
Self from the elements by “summing up”
the items.Source§impl Sum<BoundedEnum> for i8
impl Sum<BoundedEnum> for i8
Source§fn sum<I: Iterator<Item = BoundedEnum>>(iter: I) -> Self
fn sum<I: Iterator<Item = BoundedEnum>>(iter: I) -> Self
Self from the elements by “summing up”
the items.Source§impl Sum for BoundedEnum
impl Sum for BoundedEnum
Source§impl ToPrimitive for BoundedEnumwhere
i8: ToPrimitive,
Available on crate feature num-traits02 only.
impl ToPrimitive for BoundedEnumwhere
i8: ToPrimitive,
num-traits02 only.Source§fn to_i64(&self) -> Option<i64>
fn to_i64(&self) -> Option<i64>
self to an i64. If the value cannot be
represented by an i64, then None is returned.Source§fn to_u64(&self) -> Option<u64>
fn to_u64(&self) -> Option<u64>
self to a u64. If the value cannot be
represented by a u64, then None is returned.Source§fn to_isize(&self) -> Option<isize>
fn to_isize(&self) -> Option<isize>
self to an isize. If the value cannot be
represented by an isize, then None is returned.Source§fn to_i8(&self) -> Option<i8>
fn to_i8(&self) -> Option<i8>
self to an i8. If the value cannot be
represented by an i8, then None is returned.Source§fn to_i16(&self) -> Option<i16>
fn to_i16(&self) -> Option<i16>
self to an i16. If the value cannot be
represented by an i16, then None is returned.Source§fn to_i32(&self) -> Option<i32>
fn to_i32(&self) -> Option<i32>
self to an i32. If the value cannot be
represented by an i32, then None is returned.Source§fn to_i128(&self) -> Option<i128>
fn to_i128(&self) -> Option<i128>
self to an i128. If the value cannot be
represented by an i128 (i64 under the default implementation), then
None is returned. Read moreSource§fn to_usize(&self) -> Option<usize>
fn to_usize(&self) -> Option<usize>
self to a usize. If the value cannot be
represented by a usize, then None is returned.Source§fn to_u8(&self) -> Option<u8>
fn to_u8(&self) -> Option<u8>
self to a u8. If the value cannot be
represented by a u8, then None is returned.Source§fn to_u16(&self) -> Option<u16>
fn to_u16(&self) -> Option<u16>
self to a u16. If the value cannot be
represented by a u16, then None is returned.Source§fn to_u32(&self) -> Option<u32>
fn to_u32(&self) -> Option<u32>
self to a u32. If the value cannot be
represented by a u32, then None is returned.Source§fn to_u128(&self) -> Option<u128>
fn to_u128(&self) -> Option<u128>
self to a u128. If the value cannot be
represented by a u128 (u64 under the default implementation), then
None is returned. Read moreSource§impl TryFrom<BoundedEnum> for u128
impl TryFrom<BoundedEnum> for u128
Source§type Error = TryFromIntError
type Error = TryFromIntError
Source§impl TryFrom<BoundedEnum> for u16
impl TryFrom<BoundedEnum> for u16
Source§type Error = TryFromIntError
type Error = TryFromIntError
Source§impl TryFrom<BoundedEnum> for u32
impl TryFrom<BoundedEnum> for u32
Source§type Error = TryFromIntError
type Error = TryFromIntError
Source§impl TryFrom<BoundedEnum> for u64
impl TryFrom<BoundedEnum> for u64
Source§type Error = TryFromIntError
type Error = TryFromIntError
Source§impl TryFrom<BoundedEnum> for u8
impl TryFrom<BoundedEnum> for u8
Source§type Error = TryFromIntError
type Error = TryFromIntError
Source§impl TryFrom<BoundedEnum> for usize
impl TryFrom<BoundedEnum> for usize
Source§type Error = TryFromIntError
type Error = TryFromIntError
Source§impl TryFrom<i128> for BoundedEnum
impl TryFrom<i128> for BoundedEnum
Source§impl TryFrom<i16> for BoundedEnum
impl TryFrom<i16> for BoundedEnum
Source§impl TryFrom<i32> for BoundedEnum
impl TryFrom<i32> for BoundedEnum
Source§impl TryFrom<i64> for BoundedEnum
impl TryFrom<i64> for BoundedEnum
Source§impl TryFrom<i8> for BoundedEnum
impl TryFrom<i8> for BoundedEnum
Source§impl TryFrom<isize> for BoundedEnum
impl TryFrom<isize> for BoundedEnum
Source§impl TryFrom<u128> for BoundedEnum
impl TryFrom<u128> for BoundedEnum
Source§impl TryFrom<u16> for BoundedEnum
impl TryFrom<u16> for BoundedEnum
Source§impl TryFrom<u32> for BoundedEnum
impl TryFrom<u32> for BoundedEnum
Source§impl TryFrom<u64> for BoundedEnum
impl TryFrom<u64> for BoundedEnum
Source§impl TryFrom<u8> for BoundedEnum
impl TryFrom<u8> for BoundedEnum
Source§impl TryFrom<usize> for BoundedEnum
impl TryFrom<usize> for BoundedEnum
Source§impl TryFromBytes for BoundedEnum
impl TryFromBytes for BoundedEnum
Source§fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
Source§fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
Source§fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
Source§impl UpperExp for BoundedEnum
impl UpperExp for BoundedEnum
Source§impl UpperHex for BoundedEnum
impl UpperHex for BoundedEnum
Source§impl Zero for BoundedEnum
Available on crate feature num-traits02 only.
impl Zero for BoundedEnum
num-traits02 only.Source§impl Zeroable for BoundedEnum
Available on crate feature bytemuck1 only.
impl Zeroable for BoundedEnum
bytemuck1 only.impl Copy for BoundedEnum
impl Eq for BoundedEnum
impl Immutable for BoundedEnum
impl NoUninit for BoundedEnumwhere
Self: 'static,
bytemuck1 only.