Enum bounded_integer::examples::BoundedEnum
source · [−]#[repr(i8)]
pub enum BoundedEnum {
Show 16 variants
N8,
N7,
N6,
N5,
N4,
N3,
N2,
N1,
Z,
P1,
P2,
P3,
P4,
P5,
P6,
P7,
}Expand description
A bounded enum.
This was generated from:
bounded_integer! {
pub enum BoundedEnum { -8..8 }
}Variants
N8
N7
N6
N5
N4
N3
N2
N1
Z
P1
P2
P3
P4
P5
P6
P7
Implementations
sourceimpl BoundedEnum
impl BoundedEnum
sourcepub const unsafe fn new_unchecked(n: i8) -> Self
pub const unsafe fn new_unchecked(n: i8) -> Self
sourcepub unsafe fn new_ref_unchecked(n: &i8) -> &Self
pub unsafe fn new_ref_unchecked(n: &i8) -> &Self
sourcepub unsafe fn new_mut_unchecked(n: &mut i8) -> &mut Self
pub 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 fn from_str_radix(src: &str, radix: u32) -> Result<Self, ParseError>
pub 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 unsafe fn get_mut(&mut self) -> &mut i8
pub 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.
sourcepub const fn saturating_add(self, rhs: i8) -> Self
pub const fn saturating_add(self, rhs: i8) -> Self
Saturating 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.
sourcepub const fn saturating_sub(self, rhs: i8) -> Self
pub const fn saturating_sub(self, rhs: i8) -> Self
Saturating 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.
sourcepub const fn saturating_mul(self, rhs: i8) -> Self
pub const fn saturating_mul(self, rhs: i8) -> Self
Saturating 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.
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.
sourcepub const fn checked_rem(self, rhs: i8) -> Option<Self>
pub const fn checked_rem(self, rhs: i8) -> Option<Self>
Checked 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.
sourcepub const fn checked_neg(self) -> Option<Self>
pub const fn checked_neg(self) -> Option<Self>
Checked negation.
sourcepub const fn saturating_neg(self) -> Self
pub const fn saturating_neg(self) -> Self
Saturating 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 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.
Trait Implementations
sourceimpl<'a> Add<&'a BoundedEnum> for &i8
impl<'a> Add<&'a BoundedEnum> for &i8
sourceimpl<'a> Add<&'a BoundedEnum> for &BoundedEnum
impl<'a> Add<&'a BoundedEnum> for &BoundedEnum
type Output = BoundedEnum
type Output = BoundedEnum
The resulting type after applying the + operator.
sourcefn add(self, rhs: &'a BoundedEnum) -> Self::Output
fn add(self, rhs: &'a BoundedEnum) -> Self::Output
Performs the + operation. Read more
sourceimpl<'a> Add<&'a i8> for &BoundedEnum
impl<'a> Add<&'a i8> for &BoundedEnum
sourceimpl<'b> Add<&'b BoundedEnum> for i8
impl<'b> Add<&'b BoundedEnum> for i8
sourceimpl<'b> Add<&'b BoundedEnum> for BoundedEnum
impl<'b> Add<&'b BoundedEnum> for BoundedEnum
type Output = BoundedEnum
type Output = BoundedEnum
The resulting type after applying the + operator.
sourcefn add(self, rhs: &'b BoundedEnum) -> Self::Output
fn add(self, rhs: &'b BoundedEnum) -> Self::Output
Performs the + operation. Read more
sourceimpl<'b> Add<&'b i8> for BoundedEnum
impl<'b> Add<&'b i8> for BoundedEnum
sourceimpl Add<BoundedEnum> for i8
impl Add<BoundedEnum> for i8
sourceimpl Add<BoundedEnum> for &i8
impl Add<BoundedEnum> for &i8
sourceimpl Add<BoundedEnum> for BoundedEnum
impl Add<BoundedEnum> for BoundedEnum
type Output = BoundedEnum
type Output = BoundedEnum
The resulting type after applying the + operator.
sourcefn add(self, rhs: BoundedEnum) -> Self::Output
fn add(self, rhs: BoundedEnum) -> Self::Output
Performs the + operation. Read more
sourceimpl Add<BoundedEnum> for &BoundedEnum
impl Add<BoundedEnum> for &BoundedEnum
type Output = BoundedEnum
type Output = BoundedEnum
The resulting type after applying the + operator.
sourcefn add(self, rhs: BoundedEnum) -> Self::Output
fn add(self, rhs: BoundedEnum) -> Self::Output
Performs the + operation. Read more
sourceimpl Add<i8> for BoundedEnum
impl Add<i8> for BoundedEnum
sourceimpl Add<i8> for &BoundedEnum
impl Add<i8> for &BoundedEnum
sourceimpl<'a> AddAssign<&'a BoundedEnum> for i8
impl<'a> AddAssign<&'a BoundedEnum> for i8
sourcefn add_assign(&mut self, rhs: &'a BoundedEnum)
fn add_assign(&mut self, rhs: &'a BoundedEnum)
Performs the += operation. Read more
sourceimpl<'a> AddAssign<&'a BoundedEnum> for BoundedEnum
impl<'a> AddAssign<&'a BoundedEnum> for BoundedEnum
sourcefn add_assign(&mut self, rhs: &'a BoundedEnum)
fn add_assign(&mut self, rhs: &'a BoundedEnum)
Performs the += operation. Read more
sourceimpl<'a> AddAssign<&'a i8> for BoundedEnum
impl<'a> AddAssign<&'a i8> for BoundedEnum
sourcefn add_assign(&mut self, rhs: &'a i8)
fn add_assign(&mut self, rhs: &'a i8)
Performs the += operation. Read more
sourceimpl AddAssign<BoundedEnum> for i8
impl AddAssign<BoundedEnum> for i8
sourcefn add_assign(&mut self, rhs: BoundedEnum)
fn add_assign(&mut self, rhs: BoundedEnum)
Performs the += operation. Read more
sourceimpl AddAssign<BoundedEnum> for BoundedEnum
impl AddAssign<BoundedEnum> for BoundedEnum
sourcefn add_assign(&mut self, rhs: BoundedEnum)
fn add_assign(&mut self, rhs: BoundedEnum)
Performs the += operation. Read more
sourceimpl AddAssign<i8> for BoundedEnum
impl AddAssign<i8> for BoundedEnum
sourcefn add_assign(&mut self, rhs: i8)
fn add_assign(&mut self, rhs: i8)
Performs the += operation. Read more
sourceimpl<'a> Arbitrary<'a> for BoundedEnum
impl<'a> Arbitrary<'a> for BoundedEnum
sourcefn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>
Generate an arbitrary value of Self from the given unstructured data. Read more
sourcefn size_hint(depth: usize) -> (usize, Option<usize>)
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
sourcefn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
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
sourceimpl AsBytes for BoundedEnum
impl AsBytes for BoundedEnum
sourcefn as_bytes(&self) -> &[u8]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
fn as_bytes(&self) -> &[u8]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
Gets the bytes of this value. Read more
sourcefn as_bytes_mut(&mut self) -> &mut [u8]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8] where
Self: FromBytes,
fn as_bytes_mut(&mut self) -> &mut [u8]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8] where
Self: FromBytes,
Gets the bytes of this value mutably. Read more
sourcefn write_to<B>(&self, bytes: B) -> Option<()> where
B: ByteSliceMut,
fn write_to<B>(&self, bytes: B) -> Option<()> where
B: ByteSliceMut,
Writes a copy of self to bytes. Read more
sourcefn write_to_prefix<B>(&self, bytes: B) -> Option<()> where
B: ByteSliceMut,
fn write_to_prefix<B>(&self, bytes: B) -> Option<()> where
B: ByteSliceMut,
Writes a copy of self to the prefix of bytes. Read more
sourcefn write_to_suffix<B>(&self, bytes: B) -> Option<()> where
B: ByteSliceMut,
fn write_to_suffix<B>(&self, bytes: B) -> Option<()> where
B: ByteSliceMut,
Writes a copy of self to the suffix of bytes. Read more
sourceimpl AsRef<i8> for BoundedEnum
impl AsRef<i8> for BoundedEnum
sourceimpl Binary for BoundedEnum
impl Binary for BoundedEnum
sourceimpl Borrow<i8> for BoundedEnum
impl Borrow<i8> for BoundedEnum
sourceimpl Clone for BoundedEnum
impl Clone for BoundedEnum
sourcefn clone(&self) -> BoundedEnum
fn clone(&self) -> BoundedEnum
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Contiguous for BoundedEnum
impl Contiguous for BoundedEnum
sourcefn from_integer(value: Self::Int) -> Option<Self>
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
sourcefn into_integer(self) -> Self::Int
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
sourceimpl Debug for BoundedEnum
impl Debug for BoundedEnum
sourceimpl Default for BoundedEnum
impl Default for BoundedEnum
sourceimpl<'de> Deserialize<'de> for BoundedEnum
impl<'de> Deserialize<'de> for BoundedEnum
sourcefn deserialize<D>(
deserializer: D
) -> Result<Self, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<Self, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Display for BoundedEnum
impl Display for BoundedEnum
sourceimpl<'a> Div<&'a BoundedEnum> for &i8
impl<'a> Div<&'a BoundedEnum> for &i8
sourceimpl<'a> Div<&'a BoundedEnum> for &BoundedEnum
impl<'a> Div<&'a BoundedEnum> for &BoundedEnum
type Output = BoundedEnum
type Output = BoundedEnum
The resulting type after applying the / operator.
sourcefn div(self, rhs: &'a BoundedEnum) -> Self::Output
fn div(self, rhs: &'a BoundedEnum) -> Self::Output
Performs the / operation. Read more
sourceimpl<'a> Div<&'a i8> for &BoundedEnum
impl<'a> Div<&'a i8> for &BoundedEnum
sourceimpl<'b> Div<&'b BoundedEnum> for i8
impl<'b> Div<&'b BoundedEnum> for i8
sourceimpl<'b> Div<&'b BoundedEnum> for BoundedEnum
impl<'b> Div<&'b BoundedEnum> for BoundedEnum
type Output = BoundedEnum
type Output = BoundedEnum
The resulting type after applying the / operator.
sourcefn div(self, rhs: &'b BoundedEnum) -> Self::Output
fn div(self, rhs: &'b BoundedEnum) -> Self::Output
Performs the / operation. Read more
sourceimpl<'b> Div<&'b i8> for BoundedEnum
impl<'b> Div<&'b i8> for BoundedEnum
sourceimpl Div<BoundedEnum> for i8
impl Div<BoundedEnum> for i8
sourceimpl Div<BoundedEnum> for &i8
impl Div<BoundedEnum> for &i8
sourceimpl Div<BoundedEnum> for BoundedEnum
impl Div<BoundedEnum> for BoundedEnum
type Output = BoundedEnum
type Output = BoundedEnum
The resulting type after applying the / operator.
sourcefn div(self, rhs: BoundedEnum) -> Self::Output
fn div(self, rhs: BoundedEnum) -> Self::Output
Performs the / operation. Read more
sourceimpl Div<BoundedEnum> for &BoundedEnum
impl Div<BoundedEnum> for &BoundedEnum
type Output = BoundedEnum
type Output = BoundedEnum
The resulting type after applying the / operator.
sourcefn div(self, rhs: BoundedEnum) -> Self::Output
fn div(self, rhs: BoundedEnum) -> Self::Output
Performs the / operation. Read more
sourceimpl Div<i8> for BoundedEnum
impl Div<i8> for BoundedEnum
sourceimpl Div<i8> for &BoundedEnum
impl Div<i8> for &BoundedEnum
sourceimpl<'a> DivAssign<&'a BoundedEnum> for i8
impl<'a> DivAssign<&'a BoundedEnum> for i8
sourcefn div_assign(&mut self, rhs: &'a BoundedEnum)
fn div_assign(&mut self, rhs: &'a BoundedEnum)
Performs the /= operation. Read more
sourceimpl<'a> DivAssign<&'a BoundedEnum> for BoundedEnum
impl<'a> DivAssign<&'a BoundedEnum> for BoundedEnum
sourcefn div_assign(&mut self, rhs: &'a BoundedEnum)
fn div_assign(&mut self, rhs: &'a BoundedEnum)
Performs the /= operation. Read more
sourceimpl<'a> DivAssign<&'a i8> for BoundedEnum
impl<'a> DivAssign<&'a i8> for BoundedEnum
sourcefn div_assign(&mut self, rhs: &'a i8)
fn div_assign(&mut self, rhs: &'a i8)
Performs the /= operation. Read more
sourceimpl DivAssign<BoundedEnum> for i8
impl DivAssign<BoundedEnum> for i8
sourcefn div_assign(&mut self, rhs: BoundedEnum)
fn div_assign(&mut self, rhs: BoundedEnum)
Performs the /= operation. Read more
sourceimpl DivAssign<BoundedEnum> for BoundedEnum
impl DivAssign<BoundedEnum> for BoundedEnum
sourcefn div_assign(&mut self, rhs: BoundedEnum)
fn div_assign(&mut self, rhs: BoundedEnum)
Performs the /= operation. Read more
sourceimpl DivAssign<i8> for BoundedEnum
impl DivAssign<i8> for BoundedEnum
sourcefn div_assign(&mut self, rhs: i8)
fn div_assign(&mut self, rhs: i8)
Performs the /= operation. Read more
sourceimpl From<BoundedEnum> for i8
impl From<BoundedEnum> for i8
sourcefn from(bounded: BoundedEnum) -> Self
fn from(bounded: BoundedEnum) -> Self
Converts to this type from the input type.
sourceimpl From<BoundedEnum> for i16
impl From<BoundedEnum> for i16
sourcefn from(bounded: BoundedEnum) -> Self
fn from(bounded: BoundedEnum) -> Self
Converts to this type from the input type.
sourceimpl From<BoundedEnum> for i32
impl From<BoundedEnum> for i32
sourcefn from(bounded: BoundedEnum) -> Self
fn from(bounded: BoundedEnum) -> Self
Converts to this type from the input type.
sourceimpl From<BoundedEnum> for i64
impl From<BoundedEnum> for i64
sourcefn from(bounded: BoundedEnum) -> Self
fn from(bounded: BoundedEnum) -> Self
Converts to this type from the input type.
sourceimpl From<BoundedEnum> for i128
impl From<BoundedEnum> for i128
sourcefn from(bounded: BoundedEnum) -> Self
fn from(bounded: BoundedEnum) -> Self
Converts to this type from the input type.
sourceimpl FromStr for BoundedEnum
impl FromStr for BoundedEnum
sourceimpl Hash for BoundedEnum
impl Hash for BoundedEnum
sourceimpl LowerExp for BoundedEnum
impl LowerExp for BoundedEnum
sourceimpl LowerHex for BoundedEnum
impl LowerHex for BoundedEnum
sourceimpl<'a> Mul<&'a BoundedEnum> for &i8
impl<'a> Mul<&'a BoundedEnum> for &i8
sourceimpl<'a> Mul<&'a BoundedEnum> for &BoundedEnum
impl<'a> Mul<&'a BoundedEnum> for &BoundedEnum
type Output = BoundedEnum
type Output = BoundedEnum
The resulting type after applying the * operator.
sourcefn mul(self, rhs: &'a BoundedEnum) -> Self::Output
fn mul(self, rhs: &'a BoundedEnum) -> Self::Output
Performs the * operation. Read more
sourceimpl<'a> Mul<&'a i8> for &BoundedEnum
impl<'a> Mul<&'a i8> for &BoundedEnum
sourceimpl<'b> Mul<&'b BoundedEnum> for i8
impl<'b> Mul<&'b BoundedEnum> for i8
sourceimpl<'b> Mul<&'b BoundedEnum> for BoundedEnum
impl<'b> Mul<&'b BoundedEnum> for BoundedEnum
type Output = BoundedEnum
type Output = BoundedEnum
The resulting type after applying the * operator.
sourcefn mul(self, rhs: &'b BoundedEnum) -> Self::Output
fn mul(self, rhs: &'b BoundedEnum) -> Self::Output
Performs the * operation. Read more
sourceimpl<'b> Mul<&'b i8> for BoundedEnum
impl<'b> Mul<&'b i8> for BoundedEnum
sourceimpl Mul<BoundedEnum> for i8
impl Mul<BoundedEnum> for i8
sourceimpl Mul<BoundedEnum> for &i8
impl Mul<BoundedEnum> for &i8
sourceimpl Mul<BoundedEnum> for BoundedEnum
impl Mul<BoundedEnum> for BoundedEnum
type Output = BoundedEnum
type Output = BoundedEnum
The resulting type after applying the * operator.
sourcefn mul(self, rhs: BoundedEnum) -> Self::Output
fn mul(self, rhs: BoundedEnum) -> Self::Output
Performs the * operation. Read more
sourceimpl Mul<BoundedEnum> for &BoundedEnum
impl Mul<BoundedEnum> for &BoundedEnum
type Output = BoundedEnum
type Output = BoundedEnum
The resulting type after applying the * operator.
sourcefn mul(self, rhs: BoundedEnum) -> Self::Output
fn mul(self, rhs: BoundedEnum) -> Self::Output
Performs the * operation. Read more
sourceimpl Mul<i8> for BoundedEnum
impl Mul<i8> for BoundedEnum
sourceimpl Mul<i8> for &BoundedEnum
impl Mul<i8> for &BoundedEnum
sourceimpl<'a> MulAssign<&'a BoundedEnum> for i8
impl<'a> MulAssign<&'a BoundedEnum> for i8
sourcefn mul_assign(&mut self, rhs: &'a BoundedEnum)
fn mul_assign(&mut self, rhs: &'a BoundedEnum)
Performs the *= operation. Read more
sourceimpl<'a> MulAssign<&'a BoundedEnum> for BoundedEnum
impl<'a> MulAssign<&'a BoundedEnum> for BoundedEnum
sourcefn mul_assign(&mut self, rhs: &'a BoundedEnum)
fn mul_assign(&mut self, rhs: &'a BoundedEnum)
Performs the *= operation. Read more
sourceimpl<'a> MulAssign<&'a i8> for BoundedEnum
impl<'a> MulAssign<&'a i8> for BoundedEnum
sourcefn mul_assign(&mut self, rhs: &'a i8)
fn mul_assign(&mut self, rhs: &'a i8)
Performs the *= operation. Read more
sourceimpl MulAssign<BoundedEnum> for i8
impl MulAssign<BoundedEnum> for i8
sourcefn mul_assign(&mut self, rhs: BoundedEnum)
fn mul_assign(&mut self, rhs: BoundedEnum)
Performs the *= operation. Read more
sourceimpl MulAssign<BoundedEnum> for BoundedEnum
impl MulAssign<BoundedEnum> for BoundedEnum
sourcefn mul_assign(&mut self, rhs: BoundedEnum)
fn mul_assign(&mut self, rhs: BoundedEnum)
Performs the *= operation. Read more
sourceimpl MulAssign<i8> for BoundedEnum
impl MulAssign<i8> for BoundedEnum
sourcefn mul_assign(&mut self, rhs: i8)
fn mul_assign(&mut self, rhs: i8)
Performs the *= operation. Read more
sourceimpl Neg for BoundedEnum
impl Neg for BoundedEnum
sourceimpl Neg for &BoundedEnum
impl Neg for &BoundedEnum
sourceimpl Octal for BoundedEnum
impl Octal for BoundedEnum
sourceimpl Ord for BoundedEnum
impl Ord for BoundedEnum
sourceimpl PartialEq<BoundedEnum> for BoundedEnum
impl PartialEq<BoundedEnum> for BoundedEnum
sourceimpl PartialEq<BoundedEnum> for i8
impl PartialEq<BoundedEnum> for i8
sourceimpl PartialEq<i8> for BoundedEnum
impl PartialEq<i8> for BoundedEnum
sourceimpl PartialOrd<BoundedEnum> for BoundedEnum
impl PartialOrd<BoundedEnum> for BoundedEnum
sourcefn partial_cmp(&self, other: &BoundedEnum) -> Option<Ordering>
fn partial_cmp(&self, other: &BoundedEnum) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
sourceimpl PartialOrd<BoundedEnum> for i8
impl PartialOrd<BoundedEnum> for i8
sourcefn partial_cmp(&self, other: &BoundedEnum) -> Option<Ordering>
fn partial_cmp(&self, other: &BoundedEnum) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
sourceimpl PartialOrd<i8> for BoundedEnum
impl PartialOrd<i8> for BoundedEnum
sourcefn partial_cmp(&self, other: &i8) -> Option<Ordering>
fn partial_cmp(&self, other: &i8) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
sourceimpl<'a> Product<&'a BoundedEnum> for BoundedEnum
impl<'a> Product<&'a BoundedEnum> for BoundedEnum
sourceimpl<'a> Product<&'a BoundedEnum> for i8
impl<'a> Product<&'a BoundedEnum> for i8
sourcefn product<I: Iterator<Item = &'a BoundedEnum>>(iter: I) -> Self
fn product<I: Iterator<Item = &'a BoundedEnum>>(iter: I) -> Self
Method which takes an iterator and generates Self from the elements by
multiplying the items. Read more
sourceimpl Product<BoundedEnum> for BoundedEnum
impl Product<BoundedEnum> for BoundedEnum
sourceimpl Product<BoundedEnum> for i8
impl Product<BoundedEnum> for i8
sourcefn product<I: Iterator<Item = BoundedEnum>>(iter: I) -> Self
fn product<I: Iterator<Item = BoundedEnum>>(iter: I) -> Self
Method which takes an iterator and generates Self from the elements by
multiplying the items. Read more
sourceimpl<'a> Rem<&'a BoundedEnum> for &i8
impl<'a> Rem<&'a BoundedEnum> for &i8
sourceimpl<'a> Rem<&'a BoundedEnum> for &BoundedEnum
impl<'a> Rem<&'a BoundedEnum> for &BoundedEnum
type Output = BoundedEnum
type Output = BoundedEnum
The resulting type after applying the % operator.
sourcefn rem(self, rhs: &'a BoundedEnum) -> Self::Output
fn rem(self, rhs: &'a BoundedEnum) -> Self::Output
Performs the % operation. Read more
sourceimpl<'a> Rem<&'a i8> for &BoundedEnum
impl<'a> Rem<&'a i8> for &BoundedEnum
sourceimpl<'b> Rem<&'b BoundedEnum> for i8
impl<'b> Rem<&'b BoundedEnum> for i8
sourceimpl<'b> Rem<&'b BoundedEnum> for BoundedEnum
impl<'b> Rem<&'b BoundedEnum> for BoundedEnum
type Output = BoundedEnum
type Output = BoundedEnum
The resulting type after applying the % operator.
sourcefn rem(self, rhs: &'b BoundedEnum) -> Self::Output
fn rem(self, rhs: &'b BoundedEnum) -> Self::Output
Performs the % operation. Read more
sourceimpl<'b> Rem<&'b i8> for BoundedEnum
impl<'b> Rem<&'b i8> for BoundedEnum
sourceimpl Rem<BoundedEnum> for i8
impl Rem<BoundedEnum> for i8
sourceimpl Rem<BoundedEnum> for &i8
impl Rem<BoundedEnum> for &i8
sourceimpl Rem<BoundedEnum> for BoundedEnum
impl Rem<BoundedEnum> for BoundedEnum
type Output = BoundedEnum
type Output = BoundedEnum
The resulting type after applying the % operator.
sourcefn rem(self, rhs: BoundedEnum) -> Self::Output
fn rem(self, rhs: BoundedEnum) -> Self::Output
Performs the % operation. Read more
sourceimpl Rem<BoundedEnum> for &BoundedEnum
impl Rem<BoundedEnum> for &BoundedEnum
type Output = BoundedEnum
type Output = BoundedEnum
The resulting type after applying the % operator.
sourcefn rem(self, rhs: BoundedEnum) -> Self::Output
fn rem(self, rhs: BoundedEnum) -> Self::Output
Performs the % operation. Read more
sourceimpl Rem<i8> for BoundedEnum
impl Rem<i8> for BoundedEnum
sourceimpl Rem<i8> for &BoundedEnum
impl Rem<i8> for &BoundedEnum
sourceimpl<'a> RemAssign<&'a BoundedEnum> for i8
impl<'a> RemAssign<&'a BoundedEnum> for i8
sourcefn rem_assign(&mut self, rhs: &'a BoundedEnum)
fn rem_assign(&mut self, rhs: &'a BoundedEnum)
Performs the %= operation. Read more
sourceimpl<'a> RemAssign<&'a BoundedEnum> for BoundedEnum
impl<'a> RemAssign<&'a BoundedEnum> for BoundedEnum
sourcefn rem_assign(&mut self, rhs: &'a BoundedEnum)
fn rem_assign(&mut self, rhs: &'a BoundedEnum)
Performs the %= operation. Read more
sourceimpl<'a> RemAssign<&'a i8> for BoundedEnum
impl<'a> RemAssign<&'a i8> for BoundedEnum
sourcefn rem_assign(&mut self, rhs: &'a i8)
fn rem_assign(&mut self, rhs: &'a i8)
Performs the %= operation. Read more
sourceimpl RemAssign<BoundedEnum> for i8
impl RemAssign<BoundedEnum> for i8
sourcefn rem_assign(&mut self, rhs: BoundedEnum)
fn rem_assign(&mut self, rhs: BoundedEnum)
Performs the %= operation. Read more
sourceimpl RemAssign<BoundedEnum> for BoundedEnum
impl RemAssign<BoundedEnum> for BoundedEnum
sourcefn rem_assign(&mut self, rhs: BoundedEnum)
fn rem_assign(&mut self, rhs: BoundedEnum)
Performs the %= operation. Read more
sourceimpl RemAssign<i8> for BoundedEnum
impl RemAssign<i8> for BoundedEnum
sourcefn rem_assign(&mut self, rhs: i8)
fn rem_assign(&mut self, rhs: i8)
Performs the %= operation. Read more
sourceimpl Serialize for BoundedEnum
impl Serialize for BoundedEnum
sourcefn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
sourceimpl Step for BoundedEnum
impl Step for BoundedEnum
sourcefn steps_between(start: &Self, end: &Self) -> Option<usize>
fn steps_between(start: &Self, end: &Self) -> Option<usize>
step_trait)Returns the number of successor steps required to get from start to end. Read more
sourcefn forward_checked(start: Self, count: usize) -> Option<Self>
fn forward_checked(start: Self, count: usize) -> Option<Self>
step_trait)Returns the value that would be obtained by taking the successor
of self count times. Read more
sourcefn backward_checked(start: Self, count: usize) -> Option<Self>
fn backward_checked(start: Self, count: usize) -> Option<Self>
step_trait)Returns the value that would be obtained by taking the predecessor
of self count times. Read more
sourcefn forward(start: Self, count: usize) -> Self
fn forward(start: Self, count: usize) -> Self
step_trait)Returns the value that would be obtained by taking the successor
of self count times. Read more
sourceunsafe fn forward_unchecked(start: Self, count: usize) -> Self
unsafe fn forward_unchecked(start: Self, count: usize) -> Self
step_trait)Returns the value that would be obtained by taking the successor
of self count times. Read more
sourcefn backward(start: Self, count: usize) -> Self
fn backward(start: Self, count: usize) -> Self
step_trait)Returns the value that would be obtained by taking the predecessor
of self count times. Read more
sourceunsafe fn backward_unchecked(start: Self, count: usize) -> Self
unsafe fn backward_unchecked(start: Self, count: usize) -> Self
step_trait)Returns the value that would be obtained by taking the predecessor
of self count times. Read more
sourceimpl<'a> Sub<&'a BoundedEnum> for &i8
impl<'a> Sub<&'a BoundedEnum> for &i8
sourceimpl<'a> Sub<&'a BoundedEnum> for &BoundedEnum
impl<'a> Sub<&'a BoundedEnum> for &BoundedEnum
type Output = BoundedEnum
type Output = BoundedEnum
The resulting type after applying the - operator.
sourcefn sub(self, rhs: &'a BoundedEnum) -> Self::Output
fn sub(self, rhs: &'a BoundedEnum) -> Self::Output
Performs the - operation. Read more
sourceimpl<'a> Sub<&'a i8> for &BoundedEnum
impl<'a> Sub<&'a i8> for &BoundedEnum
sourceimpl<'b> Sub<&'b BoundedEnum> for i8
impl<'b> Sub<&'b BoundedEnum> for i8
sourceimpl<'b> Sub<&'b BoundedEnum> for BoundedEnum
impl<'b> Sub<&'b BoundedEnum> for BoundedEnum
type Output = BoundedEnum
type Output = BoundedEnum
The resulting type after applying the - operator.
sourcefn sub(self, rhs: &'b BoundedEnum) -> Self::Output
fn sub(self, rhs: &'b BoundedEnum) -> Self::Output
Performs the - operation. Read more
sourceimpl<'b> Sub<&'b i8> for BoundedEnum
impl<'b> Sub<&'b i8> for BoundedEnum
sourceimpl Sub<BoundedEnum> for i8
impl Sub<BoundedEnum> for i8
sourceimpl Sub<BoundedEnum> for &i8
impl Sub<BoundedEnum> for &i8
sourceimpl Sub<BoundedEnum> for BoundedEnum
impl Sub<BoundedEnum> for BoundedEnum
type Output = BoundedEnum
type Output = BoundedEnum
The resulting type after applying the - operator.
sourcefn sub(self, rhs: BoundedEnum) -> Self::Output
fn sub(self, rhs: BoundedEnum) -> Self::Output
Performs the - operation. Read more
sourceimpl Sub<BoundedEnum> for &BoundedEnum
impl Sub<BoundedEnum> for &BoundedEnum
type Output = BoundedEnum
type Output = BoundedEnum
The resulting type after applying the - operator.
sourcefn sub(self, rhs: BoundedEnum) -> Self::Output
fn sub(self, rhs: BoundedEnum) -> Self::Output
Performs the - operation. Read more
sourceimpl Sub<i8> for BoundedEnum
impl Sub<i8> for BoundedEnum
sourceimpl Sub<i8> for &BoundedEnum
impl Sub<i8> for &BoundedEnum
sourceimpl<'a> SubAssign<&'a BoundedEnum> for i8
impl<'a> SubAssign<&'a BoundedEnum> for i8
sourcefn sub_assign(&mut self, rhs: &'a BoundedEnum)
fn sub_assign(&mut self, rhs: &'a BoundedEnum)
Performs the -= operation. Read more
sourceimpl<'a> SubAssign<&'a BoundedEnum> for BoundedEnum
impl<'a> SubAssign<&'a BoundedEnum> for BoundedEnum
sourcefn sub_assign(&mut self, rhs: &'a BoundedEnum)
fn sub_assign(&mut self, rhs: &'a BoundedEnum)
Performs the -= operation. Read more
sourceimpl<'a> SubAssign<&'a i8> for BoundedEnum
impl<'a> SubAssign<&'a i8> for BoundedEnum
sourcefn sub_assign(&mut self, rhs: &'a i8)
fn sub_assign(&mut self, rhs: &'a i8)
Performs the -= operation. Read more
sourceimpl SubAssign<BoundedEnum> for i8
impl SubAssign<BoundedEnum> for i8
sourcefn sub_assign(&mut self, rhs: BoundedEnum)
fn sub_assign(&mut self, rhs: BoundedEnum)
Performs the -= operation. Read more
sourceimpl SubAssign<BoundedEnum> for BoundedEnum
impl SubAssign<BoundedEnum> for BoundedEnum
sourcefn sub_assign(&mut self, rhs: BoundedEnum)
fn sub_assign(&mut self, rhs: BoundedEnum)
Performs the -= operation. Read more
sourceimpl SubAssign<i8> for BoundedEnum
impl SubAssign<i8> for BoundedEnum
sourcefn sub_assign(&mut self, rhs: i8)
fn sub_assign(&mut self, rhs: i8)
Performs the -= operation. Read more
sourceimpl<'a> Sum<&'a BoundedEnum> for BoundedEnum
impl<'a> Sum<&'a BoundedEnum> for BoundedEnum
sourceimpl<'a> Sum<&'a BoundedEnum> for i8
impl<'a> Sum<&'a BoundedEnum> for i8
sourcefn sum<I: Iterator<Item = &'a BoundedEnum>>(iter: I) -> Self
fn sum<I: Iterator<Item = &'a BoundedEnum>>(iter: I) -> Self
Method which takes an iterator and generates Self from the elements by
“summing up” the items. Read more
sourceimpl Sum<BoundedEnum> for BoundedEnum
impl Sum<BoundedEnum> for BoundedEnum
sourceimpl Sum<BoundedEnum> for i8
impl Sum<BoundedEnum> for i8
sourcefn sum<I: Iterator<Item = BoundedEnum>>(iter: I) -> Self
fn sum<I: Iterator<Item = BoundedEnum>>(iter: I) -> Self
Method which takes an iterator and generates Self from the elements by
“summing up” the items. Read more
sourceimpl UpperExp for BoundedEnum
impl UpperExp for BoundedEnum
sourceimpl UpperHex for BoundedEnum
impl UpperHex for BoundedEnum
impl Copy for BoundedEnum
impl Eq for BoundedEnum
impl StructuralEq for BoundedEnum
impl StructuralPartialEq for BoundedEnum
impl Unaligned for BoundedEnum
Auto Trait Implementations
impl RefUnwindSafe for BoundedEnum
impl Send for BoundedEnum
impl Sync for BoundedEnum
impl Unpin for BoundedEnum
impl UnwindSafe for BoundedEnum
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more