Skip to main content

BoundedIsize

Struct BoundedIsize 

Source
pub struct BoundedIsize<const MIN: isize, const MAX: isize>(/* private fields */);
Expand description

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

Implementations§

Source§

impl<const MIN: isize, const MAX: isize> BoundedIsize<MIN, MAX>

Source

pub const MIN_VALUE: isize = MIN

The smallest value this bounded integer can contain.

Source

pub const MAX_VALUE: isize = MAX

The largest value that this bounded integer can contain.

Source

pub const MIN: Self

The smallest value of the bounded integer.

Source

pub const MAX: Self

The largest value of the bounded integer.

Source

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

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

Source

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

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

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

Source

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

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

Source

pub const fn new_mut(n: &mut isize) -> Option<&mut Self>

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

Source

pub const unsafe fn new_unchecked(n: isize) -> Self

Creates a bounded integer without checking the value.

§Safety

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

Source

pub const unsafe fn new_ref_unchecked(n: &isize) -> &Self

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

§Safety

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

Source

pub const unsafe fn new_mut_unchecked(n: &mut isize) -> &mut Self

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

§Safety

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

Source

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

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

Source

pub const fn new_saturating(n: isize) -> Self

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

Source

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

Creates a bounded integer by wrapping using modular arithmetic.

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

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

Source

pub const fn from_str_radix(src: &str, radix: u32) -> Result<Self, ParseError>

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

§Panics

Panics if radix is below 2 or above 36.

Source

pub const fn get(self) -> isize

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

Source

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

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

Source

pub const unsafe fn get_mut(&mut self) -> &mut isize

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

§Safety

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

Source

pub const fn abs(self) -> Self

Computes the absolute value of self, panicking if it is out of range.

Source

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

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

Source

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

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

Source

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

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

Source

pub const fn checked_add(self, rhs: isize) -> Option<Self>

Checked integer addition.

Returns None if the result would be out of range.

Source

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

Saturating integer addition.

Source

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

Checked integer subtraction.

Returns None if the result would be out of range.

Source

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

Saturating integer subtraction.

Source

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

Checked integer multiplication.

Returns None if the result would be out of range.

Source

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

Saturating integer multiplication.

Source

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

Checked integer division.

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

Source

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

Checked Euclidean division.

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

Source

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

Checked integer remainder.

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

Source

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

Checked Euclidean remainder.

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

Source

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

Checked negation.

Returns None if the result would be out of range.

Source

pub const fn saturating_neg(self) -> Self

Saturating negation.

Source

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

Checked absolute value.

Source

pub const fn saturating_abs(self) -> Self

Saturating absolute value.

Source

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

Checked exponentiation.

Source

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

Saturating exponentiation.

Source

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

Checked shift left.

Source

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

Checked shift right.

Trait Implementations§

Source§

impl<const MIN: isize, const MAX: isize> Add for BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: BoundedIsize<MIN, MAX>) -> Self::Output

Performs the + operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Add<&BoundedIsize<MIN, MAX>> for isize

Source§

type Output = isize

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &BoundedIsize<MIN, MAX>) -> Self::Output

Performs the + operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Add<&BoundedIsize<MIN, MAX>> for &isize

Source§

type Output = isize

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &BoundedIsize<MIN, MAX>) -> Self::Output

Performs the + operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Add<&BoundedIsize<MIN, MAX>> for BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &BoundedIsize<MIN, MAX>) -> Self::Output

Performs the + operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Add<&BoundedIsize<MIN, MAX>> for &BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &BoundedIsize<MIN, MAX>) -> Self::Output

Performs the + operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Add<&isize> for BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Add<&isize> for &BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Add<BoundedIsize<MIN, MAX>> for isize

Source§

type Output = isize

The resulting type after applying the + operator.
Source§

fn add(self, rhs: BoundedIsize<MIN, MAX>) -> Self::Output

Performs the + operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Add<BoundedIsize<MIN, MAX>> for &isize

Source§

type Output = isize

The resulting type after applying the + operator.
Source§

fn add(self, rhs: BoundedIsize<MIN, MAX>) -> Self::Output

Performs the + operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Add<BoundedIsize<MIN, MAX>> for &BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: BoundedIsize<MIN, MAX>) -> Self::Output

Performs the + operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Add<isize> for BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Add<isize> for &BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> AddAssign for BoundedIsize<MIN, MAX>

Source§

fn add_assign(&mut self, rhs: BoundedIsize<MIN, MAX>)

Performs the += operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> AddAssign<&BoundedIsize<MIN, MAX>> for isize

Source§

fn add_assign(&mut self, rhs: &BoundedIsize<MIN, MAX>)

Performs the += operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> AddAssign<&BoundedIsize<MIN, MAX>> for BoundedIsize<MIN, MAX>

Source§

fn add_assign(&mut self, rhs: &BoundedIsize<MIN, MAX>)

Performs the += operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> AddAssign<&isize> for BoundedIsize<MIN, MAX>

Source§

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

Performs the += operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> AddAssign<BoundedIsize<MIN, MAX>> for isize

Source§

fn add_assign(&mut self, rhs: BoundedIsize<MIN, MAX>)

Performs the += operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> AddAssign<isize> for BoundedIsize<MIN, MAX>

Source§

fn add_assign(&mut self, rhs: isize)

Performs the += operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> AsRef<isize> for BoundedIsize<MIN, MAX>

Source§

fn as_ref(&self) -> &isize

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

impl<const MIN: isize, const MAX: isize> Binary for BoundedIsize<MIN, MAX>

Source§

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

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

impl<const MIN: isize, const MAX: isize> BitAnd for BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: BoundedIsize<MIN, MAX>) -> Self::Output

Performs the & operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> BitAnd<&BoundedIsize<MIN, MAX>> for isize

Source§

type Output = isize

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &BoundedIsize<MIN, MAX>) -> Self::Output

Performs the & operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> BitAnd<&BoundedIsize<MIN, MAX>> for &isize

Source§

type Output = isize

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &BoundedIsize<MIN, MAX>) -> Self::Output

Performs the & operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> BitAnd<&BoundedIsize<MIN, MAX>> for BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &BoundedIsize<MIN, MAX>) -> Self::Output

Performs the & operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> BitAnd<&BoundedIsize<MIN, MAX>> for &BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &BoundedIsize<MIN, MAX>) -> Self::Output

Performs the & operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> BitAnd<&isize> for BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

The resulting type after applying the & operator.
Source§

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

Performs the & operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> BitAnd<&isize> for &BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

The resulting type after applying the & operator.
Source§

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

Performs the & operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> BitAnd<BoundedIsize<MIN, MAX>> for isize

Source§

type Output = isize

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: BoundedIsize<MIN, MAX>) -> Self::Output

Performs the & operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> BitAnd<BoundedIsize<MIN, MAX>> for &isize

Source§

type Output = isize

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: BoundedIsize<MIN, MAX>) -> Self::Output

Performs the & operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> BitAnd<BoundedIsize<MIN, MAX>> for &BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: BoundedIsize<MIN, MAX>) -> Self::Output

Performs the & operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> BitAnd<isize> for BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

The resulting type after applying the & operator.
Source§

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

Performs the & operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> BitAnd<isize> for &BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

The resulting type after applying the & operator.
Source§

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

Performs the & operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> BitAndAssign for BoundedIsize<MIN, MAX>

Source§

fn bitand_assign(&mut self, rhs: BoundedIsize<MIN, MAX>)

Performs the &= operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> BitAndAssign<&BoundedIsize<MIN, MAX>> for isize

Source§

fn bitand_assign(&mut self, rhs: &BoundedIsize<MIN, MAX>)

Performs the &= operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> BitAndAssign<&BoundedIsize<MIN, MAX>> for BoundedIsize<MIN, MAX>

Source§

fn bitand_assign(&mut self, rhs: &BoundedIsize<MIN, MAX>)

Performs the &= operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> BitAndAssign<&isize> for BoundedIsize<MIN, MAX>

Source§

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

Performs the &= operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> BitAndAssign<BoundedIsize<MIN, MAX>> for isize

Source§

fn bitand_assign(&mut self, rhs: BoundedIsize<MIN, MAX>)

Performs the &= operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> BitAndAssign<isize> for BoundedIsize<MIN, MAX>

Source§

fn bitand_assign(&mut self, rhs: isize)

Performs the &= operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> BitOr for BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: BoundedIsize<MIN, MAX>) -> Self::Output

Performs the | operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> BitOr<&BoundedIsize<MIN, MAX>> for isize

Source§

type Output = isize

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &BoundedIsize<MIN, MAX>) -> Self::Output

Performs the | operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> BitOr<&BoundedIsize<MIN, MAX>> for &isize

Source§

type Output = isize

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &BoundedIsize<MIN, MAX>) -> Self::Output

Performs the | operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> BitOr<&BoundedIsize<MIN, MAX>> for BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &BoundedIsize<MIN, MAX>) -> Self::Output

Performs the | operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> BitOr<&BoundedIsize<MIN, MAX>> for &BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &BoundedIsize<MIN, MAX>) -> Self::Output

Performs the | operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> BitOr<&isize> for BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

The resulting type after applying the | operator.
Source§

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

Performs the | operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> BitOr<&isize> for &BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

The resulting type after applying the | operator.
Source§

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

Performs the | operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> BitOr<BoundedIsize<MIN, MAX>> for isize

Source§

type Output = isize

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: BoundedIsize<MIN, MAX>) -> Self::Output

Performs the | operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> BitOr<BoundedIsize<MIN, MAX>> for &isize

Source§

type Output = isize

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: BoundedIsize<MIN, MAX>) -> Self::Output

Performs the | operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> BitOr<BoundedIsize<MIN, MAX>> for &BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: BoundedIsize<MIN, MAX>) -> Self::Output

Performs the | operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> BitOr<isize> for BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

The resulting type after applying the | operator.
Source§

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

Performs the | operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> BitOr<isize> for &BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

The resulting type after applying the | operator.
Source§

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

Performs the | operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> BitOrAssign for BoundedIsize<MIN, MAX>

Source§

fn bitor_assign(&mut self, rhs: BoundedIsize<MIN, MAX>)

Performs the |= operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> BitOrAssign<&BoundedIsize<MIN, MAX>> for isize

Source§

fn bitor_assign(&mut self, rhs: &BoundedIsize<MIN, MAX>)

Performs the |= operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> BitOrAssign<&BoundedIsize<MIN, MAX>> for BoundedIsize<MIN, MAX>

Source§

fn bitor_assign(&mut self, rhs: &BoundedIsize<MIN, MAX>)

Performs the |= operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> BitOrAssign<&isize> for BoundedIsize<MIN, MAX>

Source§

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

Performs the |= operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> BitOrAssign<BoundedIsize<MIN, MAX>> for isize

Source§

fn bitor_assign(&mut self, rhs: BoundedIsize<MIN, MAX>)

Performs the |= operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> BitOrAssign<isize> for BoundedIsize<MIN, MAX>

Source§

fn bitor_assign(&mut self, rhs: isize)

Performs the |= operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> BitXor for BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: BoundedIsize<MIN, MAX>) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> BitXor<&BoundedIsize<MIN, MAX>> for isize

Source§

type Output = isize

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &BoundedIsize<MIN, MAX>) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> BitXor<&BoundedIsize<MIN, MAX>> for &isize

Source§

type Output = isize

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &BoundedIsize<MIN, MAX>) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> BitXor<&BoundedIsize<MIN, MAX>> for BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &BoundedIsize<MIN, MAX>) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> BitXor<&BoundedIsize<MIN, MAX>> for &BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &BoundedIsize<MIN, MAX>) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> BitXor<&isize> for BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

The resulting type after applying the ^ operator.
Source§

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

Performs the ^ operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> BitXor<&isize> for &BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

The resulting type after applying the ^ operator.
Source§

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

Performs the ^ operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> BitXor<BoundedIsize<MIN, MAX>> for isize

Source§

type Output = isize

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: BoundedIsize<MIN, MAX>) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> BitXor<BoundedIsize<MIN, MAX>> for &isize

Source§

type Output = isize

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: BoundedIsize<MIN, MAX>) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> BitXor<BoundedIsize<MIN, MAX>> for &BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: BoundedIsize<MIN, MAX>) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> BitXor<isize> for BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

The resulting type after applying the ^ operator.
Source§

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

Performs the ^ operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> BitXor<isize> for &BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

The resulting type after applying the ^ operator.
Source§

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

Performs the ^ operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> BitXorAssign for BoundedIsize<MIN, MAX>

Source§

fn bitxor_assign(&mut self, rhs: BoundedIsize<MIN, MAX>)

Performs the ^= operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> BitXorAssign<&BoundedIsize<MIN, MAX>> for isize

Source§

fn bitxor_assign(&mut self, rhs: &BoundedIsize<MIN, MAX>)

Performs the ^= operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> BitXorAssign<&BoundedIsize<MIN, MAX>> for BoundedIsize<MIN, MAX>

Source§

fn bitxor_assign(&mut self, rhs: &BoundedIsize<MIN, MAX>)

Performs the ^= operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> BitXorAssign<&isize> for BoundedIsize<MIN, MAX>

Source§

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

Performs the ^= operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> BitXorAssign<BoundedIsize<MIN, MAX>> for isize

Source§

fn bitxor_assign(&mut self, rhs: BoundedIsize<MIN, MAX>)

Performs the ^= operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> BitXorAssign<isize> for BoundedIsize<MIN, MAX>

Source§

fn bitxor_assign(&mut self, rhs: isize)

Performs the ^= operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Borrow<isize> for BoundedIsize<MIN, MAX>

Source§

fn borrow(&self) -> &isize

Immutably borrows from an owned value. Read more
Source§

impl<const MIN: isize, const MAX: isize> Clone for BoundedIsize<MIN, MAX>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<const MIN: isize, const MAX: isize> Copy for BoundedIsize<MIN, MAX>

Source§

impl<const MIN: isize, const MAX: isize> Debug for BoundedIsize<MIN, MAX>

Source§

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

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

impl<const MIN: isize, const MAX: isize> Display for BoundedIsize<MIN, MAX>

Source§

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

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

impl<const MIN: isize, const MAX: isize> Div for BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: BoundedIsize<MIN, MAX>) -> Self::Output

Performs the / operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Div<&BoundedIsize<MIN, MAX>> for isize

Source§

type Output = isize

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &BoundedIsize<MIN, MAX>) -> Self::Output

Performs the / operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Div<&BoundedIsize<MIN, MAX>> for &isize

Source§

type Output = isize

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &BoundedIsize<MIN, MAX>) -> Self::Output

Performs the / operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Div<&BoundedIsize<MIN, MAX>> for BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &BoundedIsize<MIN, MAX>) -> Self::Output

Performs the / operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Div<&BoundedIsize<MIN, MAX>> for &BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &BoundedIsize<MIN, MAX>) -> Self::Output

Performs the / operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Div<&isize> for BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Div<&isize> for &BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Div<BoundedIsize<MIN, MAX>> for isize

Source§

type Output = isize

The resulting type after applying the / operator.
Source§

fn div(self, rhs: BoundedIsize<MIN, MAX>) -> Self::Output

Performs the / operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Div<BoundedIsize<MIN, MAX>> for &isize

Source§

type Output = isize

The resulting type after applying the / operator.
Source§

fn div(self, rhs: BoundedIsize<MIN, MAX>) -> Self::Output

Performs the / operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Div<BoundedIsize<MIN, MAX>> for &BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: BoundedIsize<MIN, MAX>) -> Self::Output

Performs the / operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Div<isize> for BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Div<isize> for &BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> DivAssign for BoundedIsize<MIN, MAX>

Source§

fn div_assign(&mut self, rhs: BoundedIsize<MIN, MAX>)

Performs the /= operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> DivAssign<&BoundedIsize<MIN, MAX>> for isize

Source§

fn div_assign(&mut self, rhs: &BoundedIsize<MIN, MAX>)

Performs the /= operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> DivAssign<&BoundedIsize<MIN, MAX>> for BoundedIsize<MIN, MAX>

Source§

fn div_assign(&mut self, rhs: &BoundedIsize<MIN, MAX>)

Performs the /= operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> DivAssign<&isize> for BoundedIsize<MIN, MAX>

Source§

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

Performs the /= operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> DivAssign<BoundedIsize<MIN, MAX>> for isize

Source§

fn div_assign(&mut self, rhs: BoundedIsize<MIN, MAX>)

Performs the /= operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> DivAssign<isize> for BoundedIsize<MIN, MAX>

Source§

fn div_assign(&mut self, rhs: isize)

Performs the /= operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Eq for BoundedIsize<MIN, MAX>

Source§

impl<const MIN: isize, const MAX: isize> From<BoundedIsize<MIN, MAX>> for isize

Source§

fn from(bounded: BoundedIsize<MIN, MAX>) -> Self

Converts to this type from the input type.
Source§

impl<const MIN: isize, const MAX: isize> FromStr for BoundedIsize<MIN, MAX>

Source§

type Err = ParseError

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

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

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

impl<const MIN: isize, const MAX: isize> Hash for BoundedIsize<MIN, MAX>

Source§

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

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

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

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

impl<const MIN: isize, const MAX: isize> LowerExp for BoundedIsize<MIN, MAX>

Source§

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

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

impl<const MIN: isize, const MAX: isize> LowerHex for BoundedIsize<MIN, MAX>

Source§

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

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

impl<const MIN: isize, const MAX: isize> Mul for BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: BoundedIsize<MIN, MAX>) -> Self::Output

Performs the * operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Mul<&BoundedIsize<MIN, MAX>> for isize

Source§

type Output = isize

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &BoundedIsize<MIN, MAX>) -> Self::Output

Performs the * operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Mul<&BoundedIsize<MIN, MAX>> for &isize

Source§

type Output = isize

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &BoundedIsize<MIN, MAX>) -> Self::Output

Performs the * operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Mul<&BoundedIsize<MIN, MAX>> for BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &BoundedIsize<MIN, MAX>) -> Self::Output

Performs the * operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Mul<&BoundedIsize<MIN, MAX>> for &BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &BoundedIsize<MIN, MAX>) -> Self::Output

Performs the * operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Mul<&isize> for BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Mul<&isize> for &BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Mul<BoundedIsize<MIN, MAX>> for isize

Source§

type Output = isize

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: BoundedIsize<MIN, MAX>) -> Self::Output

Performs the * operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Mul<BoundedIsize<MIN, MAX>> for &isize

Source§

type Output = isize

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: BoundedIsize<MIN, MAX>) -> Self::Output

Performs the * operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Mul<BoundedIsize<MIN, MAX>> for &BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: BoundedIsize<MIN, MAX>) -> Self::Output

Performs the * operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Mul<isize> for BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Mul<isize> for &BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> MulAssign for BoundedIsize<MIN, MAX>

Source§

fn mul_assign(&mut self, rhs: BoundedIsize<MIN, MAX>)

Performs the *= operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> MulAssign<&BoundedIsize<MIN, MAX>> for isize

Source§

fn mul_assign(&mut self, rhs: &BoundedIsize<MIN, MAX>)

Performs the *= operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> MulAssign<&BoundedIsize<MIN, MAX>> for BoundedIsize<MIN, MAX>

Source§

fn mul_assign(&mut self, rhs: &BoundedIsize<MIN, MAX>)

Performs the *= operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> MulAssign<&isize> for BoundedIsize<MIN, MAX>

Source§

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

Performs the *= operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> MulAssign<BoundedIsize<MIN, MAX>> for isize

Source§

fn mul_assign(&mut self, rhs: BoundedIsize<MIN, MAX>)

Performs the *= operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> MulAssign<isize> for BoundedIsize<MIN, MAX>

Source§

fn mul_assign(&mut self, rhs: isize)

Performs the *= operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Neg for BoundedIsize<MIN, MAX>

Available on not (nowhere).
Source§

type Output = BoundedIsize<MIN, MAX>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Neg for &BoundedIsize<MIN, MAX>

Available on not (nowhere).
Source§

type Output = BoundedIsize<MIN, MAX>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Not for BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

The resulting type after applying the ! operator.
Source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Not for &BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

The resulting type after applying the ! operator.
Source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Octal for BoundedIsize<MIN, MAX>

Source§

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

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

impl<const MIN: isize, const MAX: isize> Ord for BoundedIsize<MIN, MAX>

Source§

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

This method returns an Ordering between self and other. Read more
1.21.0 (const: unstable) · Source§

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

Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§

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

Compares and returns the minimum of two values. Read more
1.50.0 (const: unstable) · Source§

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

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

impl<const MIN: isize, const MAX: isize> PartialEq for BoundedIsize<MIN, MAX>

Source§

fn eq(&self, other: &BoundedIsize<MIN, MAX>) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl<const MIN: isize, const MAX: isize> PartialEq<BoundedIsize<MIN, MAX>> for isize

Source§

fn eq(&self, other: &BoundedIsize<MIN, MAX>) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl<const MIN: isize, const MAX: isize> PartialEq<isize> for BoundedIsize<MIN, MAX>

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl<const MIN: isize, const MAX: isize> PartialOrd for BoundedIsize<MIN, MAX>

Source§

fn partial_cmp(&self, other: &BoundedIsize<MIN, MAX>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

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

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

impl<const MIN: isize, const MAX: isize> PartialOrd<BoundedIsize<MIN, MAX>> for isize

Source§

fn partial_cmp(&self, other: &BoundedIsize<MIN, MAX>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

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

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

impl<const MIN: isize, const MAX: isize> PartialOrd<isize> for BoundedIsize<MIN, MAX>

Source§

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

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

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

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

impl<const MIN: isize, const MAX: isize> Product for BoundedIsize<MIN, MAX>

Source§

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

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

impl<'__a, const MIN: isize, const MAX: isize> Product<&'__a BoundedIsize<MIN, MAX>> for BoundedIsize<MIN, MAX>

Source§

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

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

impl<'__a, const MIN: isize, const MAX: isize> Product<&'__a BoundedIsize<MIN, MAX>> for isize

Source§

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

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

impl<const MIN: isize, const MAX: isize> Product<BoundedIsize<MIN, MAX>> for isize

Source§

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

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

impl<const MIN: isize, const MAX: isize> Rem for BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: BoundedIsize<MIN, MAX>) -> Self::Output

Performs the % operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Rem<&BoundedIsize<MIN, MAX>> for isize

Source§

type Output = isize

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &BoundedIsize<MIN, MAX>) -> Self::Output

Performs the % operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Rem<&BoundedIsize<MIN, MAX>> for &isize

Source§

type Output = isize

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &BoundedIsize<MIN, MAX>) -> Self::Output

Performs the % operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Rem<&BoundedIsize<MIN, MAX>> for BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &BoundedIsize<MIN, MAX>) -> Self::Output

Performs the % operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Rem<&BoundedIsize<MIN, MAX>> for &BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &BoundedIsize<MIN, MAX>) -> Self::Output

Performs the % operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Rem<&isize> for BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Rem<&isize> for &BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Rem<BoundedIsize<MIN, MAX>> for isize

Source§

type Output = isize

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: BoundedIsize<MIN, MAX>) -> Self::Output

Performs the % operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Rem<BoundedIsize<MIN, MAX>> for &isize

Source§

type Output = isize

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: BoundedIsize<MIN, MAX>) -> Self::Output

Performs the % operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Rem<BoundedIsize<MIN, MAX>> for &BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: BoundedIsize<MIN, MAX>) -> Self::Output

Performs the % operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Rem<isize> for BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Rem<isize> for &BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> RemAssign for BoundedIsize<MIN, MAX>

Source§

fn rem_assign(&mut self, rhs: BoundedIsize<MIN, MAX>)

Performs the %= operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> RemAssign<&BoundedIsize<MIN, MAX>> for isize

Source§

fn rem_assign(&mut self, rhs: &BoundedIsize<MIN, MAX>)

Performs the %= operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> RemAssign<&BoundedIsize<MIN, MAX>> for BoundedIsize<MIN, MAX>

Source§

fn rem_assign(&mut self, rhs: &BoundedIsize<MIN, MAX>)

Performs the %= operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> RemAssign<&isize> for BoundedIsize<MIN, MAX>

Source§

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

Performs the %= operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> RemAssign<BoundedIsize<MIN, MAX>> for isize

Source§

fn rem_assign(&mut self, rhs: BoundedIsize<MIN, MAX>)

Performs the %= operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> RemAssign<isize> for BoundedIsize<MIN, MAX>

Source§

fn rem_assign(&mut self, rhs: isize)

Performs the %= operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Shl<&u32> for BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

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

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

Performs the << operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Shl<&u32> for &BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

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

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

Performs the << operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Shl<u32> for BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

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

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

Performs the << operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Shl<u32> for &BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

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

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

Performs the << operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> ShlAssign<&u32> for BoundedIsize<MIN, MAX>

Source§

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

Performs the <<= operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> ShlAssign<u32> for BoundedIsize<MIN, MAX>

Source§

fn shl_assign(&mut self, rhs: u32)

Performs the <<= operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Shr<&u32> for BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

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

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

Performs the >> operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Shr<&u32> for &BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

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

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

Performs the >> operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Shr<u32> for BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

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

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

Performs the >> operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Shr<u32> for &BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

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

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

Performs the >> operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> ShrAssign<&u32> for BoundedIsize<MIN, MAX>

Source§

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

Performs the >>= operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> ShrAssign<u32> for BoundedIsize<MIN, MAX>

Source§

fn shr_assign(&mut self, rhs: u32)

Performs the >>= operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Sub for BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: BoundedIsize<MIN, MAX>) -> Self::Output

Performs the - operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Sub<&BoundedIsize<MIN, MAX>> for isize

Source§

type Output = isize

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &BoundedIsize<MIN, MAX>) -> Self::Output

Performs the - operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Sub<&BoundedIsize<MIN, MAX>> for &isize

Source§

type Output = isize

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &BoundedIsize<MIN, MAX>) -> Self::Output

Performs the - operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Sub<&BoundedIsize<MIN, MAX>> for BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &BoundedIsize<MIN, MAX>) -> Self::Output

Performs the - operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Sub<&BoundedIsize<MIN, MAX>> for &BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &BoundedIsize<MIN, MAX>) -> Self::Output

Performs the - operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Sub<&isize> for BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Sub<&isize> for &BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Sub<BoundedIsize<MIN, MAX>> for isize

Source§

type Output = isize

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: BoundedIsize<MIN, MAX>) -> Self::Output

Performs the - operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Sub<BoundedIsize<MIN, MAX>> for &isize

Source§

type Output = isize

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: BoundedIsize<MIN, MAX>) -> Self::Output

Performs the - operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Sub<BoundedIsize<MIN, MAX>> for &BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: BoundedIsize<MIN, MAX>) -> Self::Output

Performs the - operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Sub<isize> for BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Sub<isize> for &BoundedIsize<MIN, MAX>

Source§

type Output = BoundedIsize<MIN, MAX>

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> SubAssign for BoundedIsize<MIN, MAX>

Source§

fn sub_assign(&mut self, rhs: BoundedIsize<MIN, MAX>)

Performs the -= operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> SubAssign<&BoundedIsize<MIN, MAX>> for isize

Source§

fn sub_assign(&mut self, rhs: &BoundedIsize<MIN, MAX>)

Performs the -= operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> SubAssign<&BoundedIsize<MIN, MAX>> for BoundedIsize<MIN, MAX>

Source§

fn sub_assign(&mut self, rhs: &BoundedIsize<MIN, MAX>)

Performs the -= operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> SubAssign<&isize> for BoundedIsize<MIN, MAX>

Source§

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

Performs the -= operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> SubAssign<BoundedIsize<MIN, MAX>> for isize

Source§

fn sub_assign(&mut self, rhs: BoundedIsize<MIN, MAX>)

Performs the -= operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> SubAssign<isize> for BoundedIsize<MIN, MAX>

Source§

fn sub_assign(&mut self, rhs: isize)

Performs the -= operation. Read more
Source§

impl<const MIN: isize, const MAX: isize> Sum for BoundedIsize<MIN, MAX>

Source§

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

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

impl<'__a, const MIN: isize, const MAX: isize> Sum<&'__a BoundedIsize<MIN, MAX>> for BoundedIsize<MIN, MAX>

Source§

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

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

impl<'__a, const MIN: isize, const MAX: isize> Sum<&'__a BoundedIsize<MIN, MAX>> for isize

Source§

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

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

impl<const MIN: isize, const MAX: isize> Sum<BoundedIsize<MIN, MAX>> for isize

Source§

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

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

impl<const MIN: isize, const MAX: isize> TryFrom<BoundedIsize<MIN, MAX>> for u8

Source§

type Error = TryFromIntError

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

fn try_from(n: BoundedIsize<MIN, MAX>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<const MIN: isize, const MAX: isize> TryFrom<BoundedIsize<MIN, MAX>> for u16

Source§

type Error = TryFromIntError

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

fn try_from(n: BoundedIsize<MIN, MAX>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<const MIN: isize, const MAX: isize> TryFrom<BoundedIsize<MIN, MAX>> for u32

Source§

type Error = TryFromIntError

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

fn try_from(n: BoundedIsize<MIN, MAX>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<const MIN: isize, const MAX: isize> TryFrom<BoundedIsize<MIN, MAX>> for u64

Source§

type Error = TryFromIntError

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

fn try_from(n: BoundedIsize<MIN, MAX>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<const MIN: isize, const MAX: isize> TryFrom<BoundedIsize<MIN, MAX>> for u128

Source§

type Error = TryFromIntError

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

fn try_from(n: BoundedIsize<MIN, MAX>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<const MIN: isize, const MAX: isize> TryFrom<BoundedIsize<MIN, MAX>> for usize

Source§

type Error = TryFromIntError

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

fn try_from(n: BoundedIsize<MIN, MAX>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<const MIN: isize, const MAX: isize> TryFrom<BoundedIsize<MIN, MAX>> for i8

Source§

type Error = TryFromIntError

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

fn try_from(n: BoundedIsize<MIN, MAX>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<const MIN: isize, const MAX: isize> TryFrom<BoundedIsize<MIN, MAX>> for i16

Source§

type Error = TryFromIntError

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

fn try_from(n: BoundedIsize<MIN, MAX>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<const MIN: isize, const MAX: isize> TryFrom<BoundedIsize<MIN, MAX>> for i32

Source§

type Error = TryFromIntError

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

fn try_from(n: BoundedIsize<MIN, MAX>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<const MIN: isize, const MAX: isize> TryFrom<BoundedIsize<MIN, MAX>> for i64

Source§

type Error = TryFromIntError

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

fn try_from(n: BoundedIsize<MIN, MAX>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<const MIN: isize, const MAX: isize> TryFrom<BoundedIsize<MIN, MAX>> for i128

Source§

type Error = TryFromIntError

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

fn try_from(n: BoundedIsize<MIN, MAX>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<const MIN: isize, const MAX: isize> TryFrom<i8> for BoundedIsize<MIN, MAX>

Source§

type Error = TryFromError

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

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

Performs the conversion.
Source§

impl<const MIN: isize, const MAX: isize> TryFrom<i16> for BoundedIsize<MIN, MAX>

Source§

type Error = TryFromError

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

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

Performs the conversion.
Source§

impl<const MIN: isize, const MAX: isize> TryFrom<i32> for BoundedIsize<MIN, MAX>

Source§

type Error = TryFromError

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

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

Performs the conversion.
Source§

impl<const MIN: isize, const MAX: isize> TryFrom<i64> for BoundedIsize<MIN, MAX>

Source§

type Error = TryFromError

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

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

Performs the conversion.
Source§

impl<const MIN: isize, const MAX: isize> TryFrom<i128> for BoundedIsize<MIN, MAX>

Source§

type Error = TryFromError

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

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

Performs the conversion.
Source§

impl<const MIN: isize, const MAX: isize> TryFrom<isize> for BoundedIsize<MIN, MAX>

Source§

type Error = TryFromError

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

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

Performs the conversion.
Source§

impl<const MIN: isize, const MAX: isize> TryFrom<u8> for BoundedIsize<MIN, MAX>

Source§

type Error = TryFromError

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

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

Performs the conversion.
Source§

impl<const MIN: isize, const MAX: isize> TryFrom<u16> for BoundedIsize<MIN, MAX>

Source§

type Error = TryFromError

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

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

Performs the conversion.
Source§

impl<const MIN: isize, const MAX: isize> TryFrom<u32> for BoundedIsize<MIN, MAX>

Source§

type Error = TryFromError

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

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

Performs the conversion.
Source§

impl<const MIN: isize, const MAX: isize> TryFrom<u64> for BoundedIsize<MIN, MAX>

Source§

type Error = TryFromError

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

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

Performs the conversion.
Source§

impl<const MIN: isize, const MAX: isize> TryFrom<u128> for BoundedIsize<MIN, MAX>

Source§

type Error = TryFromError

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

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

Performs the conversion.
Source§

impl<const MIN: isize, const MAX: isize> TryFrom<usize> for BoundedIsize<MIN, MAX>

Source§

type Error = TryFromError

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

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

Performs the conversion.
Source§

impl<const MIN: isize, const MAX: isize> UpperExp for BoundedIsize<MIN, MAX>

Source§

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

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

impl<const MIN: isize, const MAX: isize> UpperHex for BoundedIsize<MIN, MAX>

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<const MIN: isize, const MAX: isize> Freeze for BoundedIsize<MIN, MAX>

§

impl<const MIN: isize, const MAX: isize> RefUnwindSafe for BoundedIsize<MIN, MAX>

§

impl<const MIN: isize, const MAX: isize> Send for BoundedIsize<MIN, MAX>

§

impl<const MIN: isize, const MAX: isize> Sync for BoundedIsize<MIN, MAX>

§

impl<const MIN: isize, const MAX: isize> Unpin for BoundedIsize<MIN, MAX>

§

impl<const MIN: isize, const MAX: isize> UnsafeUnpin for BoundedIsize<MIN, MAX>

§

impl<const MIN: isize, const MAX: isize> UnwindSafe for BoundedIsize<MIN, MAX>

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

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

Source§

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

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

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

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

Source§

type Error = Infallible

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

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

Performs the conversion.
Source§

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

Source§

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

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

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

Performs the conversion.