Struct bounded_integer::examples::BoundedStruct
source · [−]#[repr(transparent)]pub struct BoundedStruct(_);Expand description
A bounded struct, implemented as a protected newtype.
This was generated from:
bounded_integer! {
pub struct BoundedStruct { -8..8 }
}Implementations
sourceimpl BoundedStruct
impl BoundedStruct
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 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 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 BoundedStruct> for &i8
impl<'a> Add<&'a BoundedStruct> for &i8
sourceimpl<'a> Add<&'a BoundedStruct> for &BoundedStruct
impl<'a> Add<&'a BoundedStruct> for &BoundedStruct
type Output = BoundedStruct
type Output = BoundedStruct
The resulting type after applying the + operator.
sourcefn add(self, rhs: &'a BoundedStruct) -> Self::Output
fn add(self, rhs: &'a BoundedStruct) -> Self::Output
Performs the + operation. Read more
sourceimpl<'a> Add<&'a i8> for &BoundedStruct
impl<'a> Add<&'a i8> for &BoundedStruct
sourceimpl<'b> Add<&'b BoundedStruct> for i8
impl<'b> Add<&'b BoundedStruct> for i8
sourceimpl<'b> Add<&'b BoundedStruct> for BoundedStruct
impl<'b> Add<&'b BoundedStruct> for BoundedStruct
type Output = BoundedStruct
type Output = BoundedStruct
The resulting type after applying the + operator.
sourcefn add(self, rhs: &'b BoundedStruct) -> Self::Output
fn add(self, rhs: &'b BoundedStruct) -> Self::Output
Performs the + operation. Read more
sourceimpl<'b> Add<&'b i8> for BoundedStruct
impl<'b> Add<&'b i8> for BoundedStruct
sourceimpl Add<BoundedStruct> for i8
impl Add<BoundedStruct> for i8
sourceimpl Add<BoundedStruct> for &i8
impl Add<BoundedStruct> for &i8
sourceimpl Add<BoundedStruct> for BoundedStruct
impl Add<BoundedStruct> for BoundedStruct
type Output = BoundedStruct
type Output = BoundedStruct
The resulting type after applying the + operator.
sourcefn add(self, rhs: BoundedStruct) -> Self::Output
fn add(self, rhs: BoundedStruct) -> Self::Output
Performs the + operation. Read more
sourceimpl Add<BoundedStruct> for &BoundedStruct
impl Add<BoundedStruct> for &BoundedStruct
type Output = BoundedStruct
type Output = BoundedStruct
The resulting type after applying the + operator.
sourcefn add(self, rhs: BoundedStruct) -> Self::Output
fn add(self, rhs: BoundedStruct) -> Self::Output
Performs the + operation. Read more
sourceimpl Add<i8> for BoundedStruct
impl Add<i8> for BoundedStruct
sourceimpl Add<i8> for &BoundedStruct
impl Add<i8> for &BoundedStruct
sourceimpl<'a> AddAssign<&'a BoundedStruct> for i8
impl<'a> AddAssign<&'a BoundedStruct> for i8
sourcefn add_assign(&mut self, rhs: &'a BoundedStruct)
fn add_assign(&mut self, rhs: &'a BoundedStruct)
Performs the += operation. Read more
sourceimpl<'a> AddAssign<&'a BoundedStruct> for BoundedStruct
impl<'a> AddAssign<&'a BoundedStruct> for BoundedStruct
sourcefn add_assign(&mut self, rhs: &'a BoundedStruct)
fn add_assign(&mut self, rhs: &'a BoundedStruct)
Performs the += operation. Read more
sourceimpl<'a> AddAssign<&'a i8> for BoundedStruct
impl<'a> AddAssign<&'a i8> for BoundedStruct
sourcefn add_assign(&mut self, rhs: &'a i8)
fn add_assign(&mut self, rhs: &'a i8)
Performs the += operation. Read more
sourceimpl AddAssign<BoundedStruct> for i8
impl AddAssign<BoundedStruct> for i8
sourcefn add_assign(&mut self, rhs: BoundedStruct)
fn add_assign(&mut self, rhs: BoundedStruct)
Performs the += operation. Read more
sourceimpl AddAssign<BoundedStruct> for BoundedStruct
impl AddAssign<BoundedStruct> for BoundedStruct
sourcefn add_assign(&mut self, rhs: BoundedStruct)
fn add_assign(&mut self, rhs: BoundedStruct)
Performs the += operation. Read more
sourceimpl AddAssign<i8> for BoundedStruct
impl AddAssign<i8> for BoundedStruct
sourcefn add_assign(&mut self, rhs: i8)
fn add_assign(&mut self, rhs: i8)
Performs the += operation. Read more
sourceimpl<'a> Arbitrary<'a> for BoundedStruct
impl<'a> Arbitrary<'a> for BoundedStruct
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 BoundedStruct
impl AsBytes for BoundedStruct
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 BoundedStruct
impl AsRef<i8> for BoundedStruct
sourceimpl Binary for BoundedStruct
impl Binary for BoundedStruct
sourceimpl Borrow<i8> for BoundedStruct
impl Borrow<i8> for BoundedStruct
sourceimpl Clone for BoundedStruct
impl Clone for BoundedStruct
sourcefn clone(&self) -> BoundedStruct
fn clone(&self) -> BoundedStruct
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 BoundedStruct
impl Contiguous for BoundedStruct
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 BoundedStruct
impl Debug for BoundedStruct
sourceimpl Default for BoundedStruct
impl Default for BoundedStruct
sourceimpl<'de> Deserialize<'de> for BoundedStruct
impl<'de> Deserialize<'de> for BoundedStruct
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 BoundedStruct
impl Display for BoundedStruct
sourceimpl<'a> Div<&'a BoundedStruct> for &i8
impl<'a> Div<&'a BoundedStruct> for &i8
sourceimpl<'a> Div<&'a BoundedStruct> for &BoundedStruct
impl<'a> Div<&'a BoundedStruct> for &BoundedStruct
type Output = BoundedStruct
type Output = BoundedStruct
The resulting type after applying the / operator.
sourcefn div(self, rhs: &'a BoundedStruct) -> Self::Output
fn div(self, rhs: &'a BoundedStruct) -> Self::Output
Performs the / operation. Read more
sourceimpl<'a> Div<&'a i8> for &BoundedStruct
impl<'a> Div<&'a i8> for &BoundedStruct
sourceimpl<'b> Div<&'b BoundedStruct> for i8
impl<'b> Div<&'b BoundedStruct> for i8
sourceimpl<'b> Div<&'b BoundedStruct> for BoundedStruct
impl<'b> Div<&'b BoundedStruct> for BoundedStruct
type Output = BoundedStruct
type Output = BoundedStruct
The resulting type after applying the / operator.
sourcefn div(self, rhs: &'b BoundedStruct) -> Self::Output
fn div(self, rhs: &'b BoundedStruct) -> Self::Output
Performs the / operation. Read more
sourceimpl<'b> Div<&'b i8> for BoundedStruct
impl<'b> Div<&'b i8> for BoundedStruct
sourceimpl Div<BoundedStruct> for i8
impl Div<BoundedStruct> for i8
sourceimpl Div<BoundedStruct> for &i8
impl Div<BoundedStruct> for &i8
sourceimpl Div<BoundedStruct> for BoundedStruct
impl Div<BoundedStruct> for BoundedStruct
type Output = BoundedStruct
type Output = BoundedStruct
The resulting type after applying the / operator.
sourcefn div(self, rhs: BoundedStruct) -> Self::Output
fn div(self, rhs: BoundedStruct) -> Self::Output
Performs the / operation. Read more
sourceimpl Div<BoundedStruct> for &BoundedStruct
impl Div<BoundedStruct> for &BoundedStruct
type Output = BoundedStruct
type Output = BoundedStruct
The resulting type after applying the / operator.
sourcefn div(self, rhs: BoundedStruct) -> Self::Output
fn div(self, rhs: BoundedStruct) -> Self::Output
Performs the / operation. Read more
sourceimpl Div<i8> for BoundedStruct
impl Div<i8> for BoundedStruct
sourceimpl Div<i8> for &BoundedStruct
impl Div<i8> for &BoundedStruct
sourceimpl<'a> DivAssign<&'a BoundedStruct> for i8
impl<'a> DivAssign<&'a BoundedStruct> for i8
sourcefn div_assign(&mut self, rhs: &'a BoundedStruct)
fn div_assign(&mut self, rhs: &'a BoundedStruct)
Performs the /= operation. Read more
sourceimpl<'a> DivAssign<&'a BoundedStruct> for BoundedStruct
impl<'a> DivAssign<&'a BoundedStruct> for BoundedStruct
sourcefn div_assign(&mut self, rhs: &'a BoundedStruct)
fn div_assign(&mut self, rhs: &'a BoundedStruct)
Performs the /= operation. Read more
sourceimpl<'a> DivAssign<&'a i8> for BoundedStruct
impl<'a> DivAssign<&'a i8> for BoundedStruct
sourcefn div_assign(&mut self, rhs: &'a i8)
fn div_assign(&mut self, rhs: &'a i8)
Performs the /= operation. Read more
sourceimpl DivAssign<BoundedStruct> for i8
impl DivAssign<BoundedStruct> for i8
sourcefn div_assign(&mut self, rhs: BoundedStruct)
fn div_assign(&mut self, rhs: BoundedStruct)
Performs the /= operation. Read more
sourceimpl DivAssign<BoundedStruct> for BoundedStruct
impl DivAssign<BoundedStruct> for BoundedStruct
sourcefn div_assign(&mut self, rhs: BoundedStruct)
fn div_assign(&mut self, rhs: BoundedStruct)
Performs the /= operation. Read more
sourceimpl DivAssign<i8> for BoundedStruct
impl DivAssign<i8> for BoundedStruct
sourcefn div_assign(&mut self, rhs: i8)
fn div_assign(&mut self, rhs: i8)
Performs the /= operation. Read more
sourceimpl From<BoundedStruct> for i8
impl From<BoundedStruct> for i8
sourcefn from(bounded: BoundedStruct) -> Self
fn from(bounded: BoundedStruct) -> Self
Converts to this type from the input type.
sourceimpl From<BoundedStruct> for i16
impl From<BoundedStruct> for i16
sourcefn from(bounded: BoundedStruct) -> Self
fn from(bounded: BoundedStruct) -> Self
Converts to this type from the input type.
sourceimpl From<BoundedStruct> for i32
impl From<BoundedStruct> for i32
sourcefn from(bounded: BoundedStruct) -> Self
fn from(bounded: BoundedStruct) -> Self
Converts to this type from the input type.
sourceimpl From<BoundedStruct> for i64
impl From<BoundedStruct> for i64
sourcefn from(bounded: BoundedStruct) -> Self
fn from(bounded: BoundedStruct) -> Self
Converts to this type from the input type.
sourceimpl From<BoundedStruct> for i128
impl From<BoundedStruct> for i128
sourcefn from(bounded: BoundedStruct) -> Self
fn from(bounded: BoundedStruct) -> Self
Converts to this type from the input type.
sourceimpl FromStr for BoundedStruct
impl FromStr for BoundedStruct
sourceimpl Hash for BoundedStruct
impl Hash for BoundedStruct
sourceimpl LowerExp for BoundedStruct
impl LowerExp for BoundedStruct
sourceimpl LowerHex for BoundedStruct
impl LowerHex for BoundedStruct
sourceimpl<'a> Mul<&'a BoundedStruct> for &i8
impl<'a> Mul<&'a BoundedStruct> for &i8
sourceimpl<'a> Mul<&'a BoundedStruct> for &BoundedStruct
impl<'a> Mul<&'a BoundedStruct> for &BoundedStruct
type Output = BoundedStruct
type Output = BoundedStruct
The resulting type after applying the * operator.
sourcefn mul(self, rhs: &'a BoundedStruct) -> Self::Output
fn mul(self, rhs: &'a BoundedStruct) -> Self::Output
Performs the * operation. Read more
sourceimpl<'a> Mul<&'a i8> for &BoundedStruct
impl<'a> Mul<&'a i8> for &BoundedStruct
sourceimpl<'b> Mul<&'b BoundedStruct> for i8
impl<'b> Mul<&'b BoundedStruct> for i8
sourceimpl<'b> Mul<&'b BoundedStruct> for BoundedStruct
impl<'b> Mul<&'b BoundedStruct> for BoundedStruct
type Output = BoundedStruct
type Output = BoundedStruct
The resulting type after applying the * operator.
sourcefn mul(self, rhs: &'b BoundedStruct) -> Self::Output
fn mul(self, rhs: &'b BoundedStruct) -> Self::Output
Performs the * operation. Read more
sourceimpl<'b> Mul<&'b i8> for BoundedStruct
impl<'b> Mul<&'b i8> for BoundedStruct
sourceimpl Mul<BoundedStruct> for i8
impl Mul<BoundedStruct> for i8
sourceimpl Mul<BoundedStruct> for &i8
impl Mul<BoundedStruct> for &i8
sourceimpl Mul<BoundedStruct> for BoundedStruct
impl Mul<BoundedStruct> for BoundedStruct
type Output = BoundedStruct
type Output = BoundedStruct
The resulting type after applying the * operator.
sourcefn mul(self, rhs: BoundedStruct) -> Self::Output
fn mul(self, rhs: BoundedStruct) -> Self::Output
Performs the * operation. Read more
sourceimpl Mul<BoundedStruct> for &BoundedStruct
impl Mul<BoundedStruct> for &BoundedStruct
type Output = BoundedStruct
type Output = BoundedStruct
The resulting type after applying the * operator.
sourcefn mul(self, rhs: BoundedStruct) -> Self::Output
fn mul(self, rhs: BoundedStruct) -> Self::Output
Performs the * operation. Read more
sourceimpl Mul<i8> for BoundedStruct
impl Mul<i8> for BoundedStruct
sourceimpl Mul<i8> for &BoundedStruct
impl Mul<i8> for &BoundedStruct
sourceimpl<'a> MulAssign<&'a BoundedStruct> for i8
impl<'a> MulAssign<&'a BoundedStruct> for i8
sourcefn mul_assign(&mut self, rhs: &'a BoundedStruct)
fn mul_assign(&mut self, rhs: &'a BoundedStruct)
Performs the *= operation. Read more
sourceimpl<'a> MulAssign<&'a BoundedStruct> for BoundedStruct
impl<'a> MulAssign<&'a BoundedStruct> for BoundedStruct
sourcefn mul_assign(&mut self, rhs: &'a BoundedStruct)
fn mul_assign(&mut self, rhs: &'a BoundedStruct)
Performs the *= operation. Read more
sourceimpl<'a> MulAssign<&'a i8> for BoundedStruct
impl<'a> MulAssign<&'a i8> for BoundedStruct
sourcefn mul_assign(&mut self, rhs: &'a i8)
fn mul_assign(&mut self, rhs: &'a i8)
Performs the *= operation. Read more
sourceimpl MulAssign<BoundedStruct> for i8
impl MulAssign<BoundedStruct> for i8
sourcefn mul_assign(&mut self, rhs: BoundedStruct)
fn mul_assign(&mut self, rhs: BoundedStruct)
Performs the *= operation. Read more
sourceimpl MulAssign<BoundedStruct> for BoundedStruct
impl MulAssign<BoundedStruct> for BoundedStruct
sourcefn mul_assign(&mut self, rhs: BoundedStruct)
fn mul_assign(&mut self, rhs: BoundedStruct)
Performs the *= operation. Read more
sourceimpl MulAssign<i8> for BoundedStruct
impl MulAssign<i8> for BoundedStruct
sourcefn mul_assign(&mut self, rhs: i8)
fn mul_assign(&mut self, rhs: i8)
Performs the *= operation. Read more
sourceimpl Neg for BoundedStruct
impl Neg for BoundedStruct
sourceimpl Neg for &BoundedStruct
impl Neg for &BoundedStruct
sourceimpl Octal for BoundedStruct
impl Octal for BoundedStruct
sourceimpl Ord for BoundedStruct
impl Ord for BoundedStruct
sourceimpl PartialEq<BoundedStruct> for BoundedStruct
impl PartialEq<BoundedStruct> for BoundedStruct
sourcefn eq(&self, other: &BoundedStruct) -> bool
fn eq(&self, other: &BoundedStruct) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &BoundedStruct) -> bool
fn ne(&self, other: &BoundedStruct) -> bool
This method tests for !=.
sourceimpl PartialEq<BoundedStruct> for i8
impl PartialEq<BoundedStruct> for i8
sourceimpl PartialEq<i8> for BoundedStruct
impl PartialEq<i8> for BoundedStruct
sourceimpl PartialOrd<BoundedStruct> for BoundedStruct
impl PartialOrd<BoundedStruct> for BoundedStruct
sourcefn partial_cmp(&self, other: &BoundedStruct) -> Option<Ordering>
fn partial_cmp(&self, other: &BoundedStruct) -> 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<BoundedStruct> for i8
impl PartialOrd<BoundedStruct> for i8
sourcefn partial_cmp(&self, other: &BoundedStruct) -> Option<Ordering>
fn partial_cmp(&self, other: &BoundedStruct) -> 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 BoundedStruct
impl PartialOrd<i8> for BoundedStruct
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 BoundedStruct> for BoundedStruct
impl<'a> Product<&'a BoundedStruct> for BoundedStruct
sourceimpl<'a> Product<&'a BoundedStruct> for i8
impl<'a> Product<&'a BoundedStruct> for i8
sourcefn product<I: Iterator<Item = &'a BoundedStruct>>(iter: I) -> Self
fn product<I: Iterator<Item = &'a BoundedStruct>>(iter: I) -> Self
Method which takes an iterator and generates Self from the elements by
multiplying the items. Read more
sourceimpl Product<BoundedStruct> for BoundedStruct
impl Product<BoundedStruct> for BoundedStruct
sourceimpl Product<BoundedStruct> for i8
impl Product<BoundedStruct> for i8
sourcefn product<I: Iterator<Item = BoundedStruct>>(iter: I) -> Self
fn product<I: Iterator<Item = BoundedStruct>>(iter: I) -> Self
Method which takes an iterator and generates Self from the elements by
multiplying the items. Read more
sourceimpl<'a> Rem<&'a BoundedStruct> for &i8
impl<'a> Rem<&'a BoundedStruct> for &i8
sourceimpl<'a> Rem<&'a BoundedStruct> for &BoundedStruct
impl<'a> Rem<&'a BoundedStruct> for &BoundedStruct
type Output = BoundedStruct
type Output = BoundedStruct
The resulting type after applying the % operator.
sourcefn rem(self, rhs: &'a BoundedStruct) -> Self::Output
fn rem(self, rhs: &'a BoundedStruct) -> Self::Output
Performs the % operation. Read more
sourceimpl<'a> Rem<&'a i8> for &BoundedStruct
impl<'a> Rem<&'a i8> for &BoundedStruct
sourceimpl<'b> Rem<&'b BoundedStruct> for i8
impl<'b> Rem<&'b BoundedStruct> for i8
sourceimpl<'b> Rem<&'b BoundedStruct> for BoundedStruct
impl<'b> Rem<&'b BoundedStruct> for BoundedStruct
type Output = BoundedStruct
type Output = BoundedStruct
The resulting type after applying the % operator.
sourcefn rem(self, rhs: &'b BoundedStruct) -> Self::Output
fn rem(self, rhs: &'b BoundedStruct) -> Self::Output
Performs the % operation. Read more
sourceimpl<'b> Rem<&'b i8> for BoundedStruct
impl<'b> Rem<&'b i8> for BoundedStruct
sourceimpl Rem<BoundedStruct> for i8
impl Rem<BoundedStruct> for i8
sourceimpl Rem<BoundedStruct> for &i8
impl Rem<BoundedStruct> for &i8
sourceimpl Rem<BoundedStruct> for BoundedStruct
impl Rem<BoundedStruct> for BoundedStruct
type Output = BoundedStruct
type Output = BoundedStruct
The resulting type after applying the % operator.
sourcefn rem(self, rhs: BoundedStruct) -> Self::Output
fn rem(self, rhs: BoundedStruct) -> Self::Output
Performs the % operation. Read more
sourceimpl Rem<BoundedStruct> for &BoundedStruct
impl Rem<BoundedStruct> for &BoundedStruct
type Output = BoundedStruct
type Output = BoundedStruct
The resulting type after applying the % operator.
sourcefn rem(self, rhs: BoundedStruct) -> Self::Output
fn rem(self, rhs: BoundedStruct) -> Self::Output
Performs the % operation. Read more
sourceimpl Rem<i8> for BoundedStruct
impl Rem<i8> for BoundedStruct
sourceimpl Rem<i8> for &BoundedStruct
impl Rem<i8> for &BoundedStruct
sourceimpl<'a> RemAssign<&'a BoundedStruct> for i8
impl<'a> RemAssign<&'a BoundedStruct> for i8
sourcefn rem_assign(&mut self, rhs: &'a BoundedStruct)
fn rem_assign(&mut self, rhs: &'a BoundedStruct)
Performs the %= operation. Read more
sourceimpl<'a> RemAssign<&'a BoundedStruct> for BoundedStruct
impl<'a> RemAssign<&'a BoundedStruct> for BoundedStruct
sourcefn rem_assign(&mut self, rhs: &'a BoundedStruct)
fn rem_assign(&mut self, rhs: &'a BoundedStruct)
Performs the %= operation. Read more
sourceimpl<'a> RemAssign<&'a i8> for BoundedStruct
impl<'a> RemAssign<&'a i8> for BoundedStruct
sourcefn rem_assign(&mut self, rhs: &'a i8)
fn rem_assign(&mut self, rhs: &'a i8)
Performs the %= operation. Read more
sourceimpl RemAssign<BoundedStruct> for i8
impl RemAssign<BoundedStruct> for i8
sourcefn rem_assign(&mut self, rhs: BoundedStruct)
fn rem_assign(&mut self, rhs: BoundedStruct)
Performs the %= operation. Read more
sourceimpl RemAssign<BoundedStruct> for BoundedStruct
impl RemAssign<BoundedStruct> for BoundedStruct
sourcefn rem_assign(&mut self, rhs: BoundedStruct)
fn rem_assign(&mut self, rhs: BoundedStruct)
Performs the %= operation. Read more
sourceimpl RemAssign<i8> for BoundedStruct
impl RemAssign<i8> for BoundedStruct
sourcefn rem_assign(&mut self, rhs: i8)
fn rem_assign(&mut self, rhs: i8)
Performs the %= operation. Read more
sourceimpl Serialize for BoundedStruct
impl Serialize for BoundedStruct
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 BoundedStruct
impl Step for BoundedStruct
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 BoundedStruct> for &i8
impl<'a> Sub<&'a BoundedStruct> for &i8
sourceimpl<'a> Sub<&'a BoundedStruct> for &BoundedStruct
impl<'a> Sub<&'a BoundedStruct> for &BoundedStruct
type Output = BoundedStruct
type Output = BoundedStruct
The resulting type after applying the - operator.
sourcefn sub(self, rhs: &'a BoundedStruct) -> Self::Output
fn sub(self, rhs: &'a BoundedStruct) -> Self::Output
Performs the - operation. Read more
sourceimpl<'a> Sub<&'a i8> for &BoundedStruct
impl<'a> Sub<&'a i8> for &BoundedStruct
sourceimpl<'b> Sub<&'b BoundedStruct> for i8
impl<'b> Sub<&'b BoundedStruct> for i8
sourceimpl<'b> Sub<&'b BoundedStruct> for BoundedStruct
impl<'b> Sub<&'b BoundedStruct> for BoundedStruct
type Output = BoundedStruct
type Output = BoundedStruct
The resulting type after applying the - operator.
sourcefn sub(self, rhs: &'b BoundedStruct) -> Self::Output
fn sub(self, rhs: &'b BoundedStruct) -> Self::Output
Performs the - operation. Read more
sourceimpl<'b> Sub<&'b i8> for BoundedStruct
impl<'b> Sub<&'b i8> for BoundedStruct
sourceimpl Sub<BoundedStruct> for i8
impl Sub<BoundedStruct> for i8
sourceimpl Sub<BoundedStruct> for &i8
impl Sub<BoundedStruct> for &i8
sourceimpl Sub<BoundedStruct> for BoundedStruct
impl Sub<BoundedStruct> for BoundedStruct
type Output = BoundedStruct
type Output = BoundedStruct
The resulting type after applying the - operator.
sourcefn sub(self, rhs: BoundedStruct) -> Self::Output
fn sub(self, rhs: BoundedStruct) -> Self::Output
Performs the - operation. Read more
sourceimpl Sub<BoundedStruct> for &BoundedStruct
impl Sub<BoundedStruct> for &BoundedStruct
type Output = BoundedStruct
type Output = BoundedStruct
The resulting type after applying the - operator.
sourcefn sub(self, rhs: BoundedStruct) -> Self::Output
fn sub(self, rhs: BoundedStruct) -> Self::Output
Performs the - operation. Read more
sourceimpl Sub<i8> for BoundedStruct
impl Sub<i8> for BoundedStruct
sourceimpl Sub<i8> for &BoundedStruct
impl Sub<i8> for &BoundedStruct
sourceimpl<'a> SubAssign<&'a BoundedStruct> for i8
impl<'a> SubAssign<&'a BoundedStruct> for i8
sourcefn sub_assign(&mut self, rhs: &'a BoundedStruct)
fn sub_assign(&mut self, rhs: &'a BoundedStruct)
Performs the -= operation. Read more
sourceimpl<'a> SubAssign<&'a BoundedStruct> for BoundedStruct
impl<'a> SubAssign<&'a BoundedStruct> for BoundedStruct
sourcefn sub_assign(&mut self, rhs: &'a BoundedStruct)
fn sub_assign(&mut self, rhs: &'a BoundedStruct)
Performs the -= operation. Read more
sourceimpl<'a> SubAssign<&'a i8> for BoundedStruct
impl<'a> SubAssign<&'a i8> for BoundedStruct
sourcefn sub_assign(&mut self, rhs: &'a i8)
fn sub_assign(&mut self, rhs: &'a i8)
Performs the -= operation. Read more
sourceimpl SubAssign<BoundedStruct> for i8
impl SubAssign<BoundedStruct> for i8
sourcefn sub_assign(&mut self, rhs: BoundedStruct)
fn sub_assign(&mut self, rhs: BoundedStruct)
Performs the -= operation. Read more
sourceimpl SubAssign<BoundedStruct> for BoundedStruct
impl SubAssign<BoundedStruct> for BoundedStruct
sourcefn sub_assign(&mut self, rhs: BoundedStruct)
fn sub_assign(&mut self, rhs: BoundedStruct)
Performs the -= operation. Read more
sourceimpl SubAssign<i8> for BoundedStruct
impl SubAssign<i8> for BoundedStruct
sourcefn sub_assign(&mut self, rhs: i8)
fn sub_assign(&mut self, rhs: i8)
Performs the -= operation. Read more
sourceimpl<'a> Sum<&'a BoundedStruct> for BoundedStruct
impl<'a> Sum<&'a BoundedStruct> for BoundedStruct
sourceimpl<'a> Sum<&'a BoundedStruct> for i8
impl<'a> Sum<&'a BoundedStruct> for i8
sourcefn sum<I: Iterator<Item = &'a BoundedStruct>>(iter: I) -> Self
fn sum<I: Iterator<Item = &'a BoundedStruct>>(iter: I) -> Self
Method which takes an iterator and generates Self from the elements by
“summing up” the items. Read more
sourceimpl Sum<BoundedStruct> for BoundedStruct
impl Sum<BoundedStruct> for BoundedStruct
sourceimpl Sum<BoundedStruct> for i8
impl Sum<BoundedStruct> for i8
sourcefn sum<I: Iterator<Item = BoundedStruct>>(iter: I) -> Self
fn sum<I: Iterator<Item = BoundedStruct>>(iter: I) -> Self
Method which takes an iterator and generates Self from the elements by
“summing up” the items. Read more
sourceimpl UpperExp for BoundedStruct
impl UpperExp for BoundedStruct
sourceimpl UpperHex for BoundedStruct
impl UpperHex for BoundedStruct
impl Copy for BoundedStruct
impl Eq for BoundedStruct
impl StructuralEq for BoundedStruct
impl StructuralPartialEq for BoundedStruct
impl Unaligned for BoundedStruct
Auto Trait Implementations
impl RefUnwindSafe for BoundedStruct
impl Send for BoundedStruct
impl Sync for BoundedStruct
impl Unpin for BoundedStruct
impl UnwindSafe for BoundedStruct
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