#[repr(transparent)]
pub struct BoundedI64<const MIN: i64, const MAX: i64>(_);
Available on crate feature types only.
Expand description

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

Implementations§

source§

impl<const MIN: i64, const MAX: i64> Bounded<MIN, MAX>

source

pub const MIN_VALUE: i64 = MIN

The smallest value this bounded integer can contain.

source

pub const MAX_VALUE: i64 = 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 unsafe fn new_unchecked(n: i64) -> 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 unsafe fn new_ref_unchecked(n: &i64) -> &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 unsafe fn new_mut_unchecked(n: &mut i64) -> &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: i64) -> bool

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

source

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

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

source

pub fn new_ref(n: &i64) -> 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 fn new_mut(n: &mut i64) -> 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 fn new_saturating(n: i64) -> Self

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

source

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.

source

pub const fn get(self) -> i64

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

source

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

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

source

pub unsafe fn get_mut(&mut self) -> &mut i64

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 fn abs(self) -> Self

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

source

pub 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 fn div_euclid(self, rhs: i64) -> 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 fn rem_euclid(self, rhs: i64) -> 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: i64) -> Option<Self>

Checked integer addition.

source

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

Saturating integer addition.

source

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

Checked integer subtraction.

source

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

Saturating integer subtraction.

source

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

Checked integer multiplication.

source

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

Saturating integer multiplication.

source

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

Checked integer division.

source

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

Checked Euclidean division.

source

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

Checked integer remainder.

source

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

Checked Euclidean remainder.

source

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

Checked negation.

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: i64, const MAX: i64> Add<&Bounded<MIN, MAX>> for &i64

§

type Output = i64

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl<const MIN: i64, const MAX: i64> Add<&Bounded<MIN, MAX>> for i64

§

type Output = i64

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl<const L_MIN: i64, const L_MAX: i64, const R_MIN: i64, const R_MAX: i64> Add<&Bounded<R_MIN, R_MAX>> for &Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Bounded<R_MIN, R_MAX>) -> Self::Output

Performs the + operation. Read more
source§

impl<const L_MIN: i64, const L_MAX: i64, const R_MIN: i64, const R_MAX: i64> Add<&Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Bounded<R_MIN, R_MAX>) -> Self::Output

Performs the + operation. Read more
source§

impl<const MIN: i64, const MAX: i64> Add<&i64> for &Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl<const MIN: i64, const MAX: i64> Add<&i64> for Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl<const MIN: i64, const MAX: i64> Add<Bounded<MIN, MAX>> for &i64

§

type Output = i64

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl<const MIN: i64, const MAX: i64> Add<Bounded<MIN, MAX>> for i64

§

type Output = i64

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl<const L_MIN: i64, const L_MAX: i64, const R_MIN: i64, const R_MAX: i64> Add<Bounded<R_MIN, R_MAX>> for &Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

The resulting type after applying the + operator.
source§

fn add(self, rhs: Bounded<R_MIN, R_MAX>) -> Self::Output

Performs the + operation. Read more
source§

impl<const L_MIN: i64, const L_MAX: i64, const R_MIN: i64, const R_MAX: i64> Add<Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

The resulting type after applying the + operator.
source§

fn add(self, rhs: Bounded<R_MIN, R_MAX>) -> Self::Output

Performs the + operation. Read more
source§

impl<const MIN: i64, const MAX: i64> Add<i64> for &Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl<const MIN: i64, const MAX: i64> Add<i64> for Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl<const MIN: i64, const MAX: i64> AddAssign<&Bounded<MIN, MAX>> for i64

source§

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

Performs the += operation. Read more
source§

impl<const L_MIN: i64, const L_MAX: i64, const R_MIN: i64, const R_MAX: i64> AddAssign<&Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

source§

fn add_assign(&mut self, rhs: &Bounded<R_MIN, R_MAX>)

Performs the += operation. Read more
source§

impl<const MIN: i64, const MAX: i64> AddAssign<&i64> for Bounded<MIN, MAX>

source§

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

Performs the += operation. Read more
source§

impl<const MIN: i64, const MAX: i64> AddAssign<Bounded<MIN, MAX>> for i64

source§

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

Performs the += operation. Read more
source§

impl<const L_MIN: i64, const L_MAX: i64, const R_MIN: i64, const R_MAX: i64> AddAssign<Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

source§

fn add_assign(&mut self, rhs: Bounded<R_MIN, R_MAX>)

Performs the += operation. Read more
source§

impl<const MIN: i64, const MAX: i64> AddAssign<i64> for Bounded<MIN, MAX>

source§

fn add_assign(&mut self, rhs: i64)

Performs the += operation. Read more
source§

impl<'a, const MIN: i64, const MAX: i64> Arbitrary<'a> for Bounded<MIN, MAX>

Available on crate feature arbitrary1 only.
source§

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

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

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

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

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

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

impl<T, const MIN: i64, const MAX: i64> AsPrimitive<T> for Bounded<MIN, MAX>where i64: AsPrimitive<T>, T: 'static + Copy,

Available on crate feature num-traits02 only.
source§

fn as_(self) -> T

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

impl<const MIN: i64, const MAX: i64> AsRef<i64> for Bounded<MIN, MAX>

source§

fn as_ref(&self) -> &i64

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

impl<const MIN: i64, const MAX: i64> Binary for Bounded<MIN, MAX>

source§

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

Formats the value using the given formatter.
source§

impl<const MIN: i64, const MAX: i64> BitAnd<&Bounded<MIN, MAX>> for &i64

§

type Output = i64

The resulting type after applying the & operator.
source§

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

Performs the & operation. Read more
source§

impl<const MIN: i64, const MAX: i64> BitAnd<&Bounded<MIN, MAX>> for i64

§

type Output = i64

The resulting type after applying the & operator.
source§

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

Performs the & operation. Read more
source§

impl<const L_MIN: i64, const L_MAX: i64, const R_MIN: i64, const R_MAX: i64> BitAnd<&Bounded<R_MIN, R_MAX>> for &Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

The resulting type after applying the & operator.
source§

fn bitand(self, rhs: &Bounded<R_MIN, R_MAX>) -> Self::Output

Performs the & operation. Read more
source§

impl<const L_MIN: i64, const L_MAX: i64, const R_MIN: i64, const R_MAX: i64> BitAnd<&Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

The resulting type after applying the & operator.
source§

fn bitand(self, rhs: &Bounded<R_MIN, R_MAX>) -> Self::Output

Performs the & operation. Read more
source§

impl<const MIN: i64, const MAX: i64> BitAnd<&i64> for &Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

The resulting type after applying the & operator.
source§

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

Performs the & operation. Read more
source§

impl<const MIN: i64, const MAX: i64> BitAnd<&i64> for Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

The resulting type after applying the & operator.
source§

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

Performs the & operation. Read more
source§

impl<const MIN: i64, const MAX: i64> BitAnd<Bounded<MIN, MAX>> for &i64

§

type Output = i64

The resulting type after applying the & operator.
source§

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

Performs the & operation. Read more
source§

impl<const MIN: i64, const MAX: i64> BitAnd<Bounded<MIN, MAX>> for i64

§

type Output = i64

The resulting type after applying the & operator.
source§

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

Performs the & operation. Read more
source§

impl<const L_MIN: i64, const L_MAX: i64, const R_MIN: i64, const R_MAX: i64> BitAnd<Bounded<R_MIN, R_MAX>> for &Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

The resulting type after applying the & operator.
source§

fn bitand(self, rhs: Bounded<R_MIN, R_MAX>) -> Self::Output

Performs the & operation. Read more
source§

impl<const L_MIN: i64, const L_MAX: i64, const R_MIN: i64, const R_MAX: i64> BitAnd<Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

The resulting type after applying the & operator.
source§

fn bitand(self, rhs: Bounded<R_MIN, R_MAX>) -> Self::Output

Performs the & operation. Read more
source§

impl<const MIN: i64, const MAX: i64> BitAnd<i64> for &Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

The resulting type after applying the & operator.
source§

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

Performs the & operation. Read more
source§

impl<const MIN: i64, const MAX: i64> BitAnd<i64> for Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

The resulting type after applying the & operator.
source§

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

Performs the & operation. Read more
source§

impl<const MIN: i64, const MAX: i64> BitAndAssign<&Bounded<MIN, MAX>> for i64

source§

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

Performs the &= operation. Read more
source§

impl<const L_MIN: i64, const L_MAX: i64, const R_MIN: i64, const R_MAX: i64> BitAndAssign<&Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

source§

fn bitand_assign(&mut self, rhs: &Bounded<R_MIN, R_MAX>)

Performs the &= operation. Read more
source§

impl<const MIN: i64, const MAX: i64> BitAndAssign<&i64> for Bounded<MIN, MAX>

source§

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

Performs the &= operation. Read more
source§

impl<const MIN: i64, const MAX: i64> BitAndAssign<Bounded<MIN, MAX>> for i64

source§

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

Performs the &= operation. Read more
source§

impl<const L_MIN: i64, const L_MAX: i64, const R_MIN: i64, const R_MAX: i64> BitAndAssign<Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

source§

fn bitand_assign(&mut self, rhs: Bounded<R_MIN, R_MAX>)

Performs the &= operation. Read more
source§

impl<const MIN: i64, const MAX: i64> BitAndAssign<i64> for Bounded<MIN, MAX>

source§

fn bitand_assign(&mut self, rhs: i64)

Performs the &= operation. Read more
source§

impl<const MIN: i64, const MAX: i64> BitOr<&Bounded<MIN, MAX>> for &i64

§

type Output = i64

The resulting type after applying the | operator.
source§

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

Performs the | operation. Read more
source§

impl<const MIN: i64, const MAX: i64> BitOr<&Bounded<MIN, MAX>> for i64

§

type Output = i64

The resulting type after applying the | operator.
source§

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

Performs the | operation. Read more
source§

impl<const L_MIN: i64, const L_MAX: i64, const R_MIN: i64, const R_MAX: i64> BitOr<&Bounded<R_MIN, R_MAX>> for &Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

The resulting type after applying the | operator.
source§

fn bitor(self, rhs: &Bounded<R_MIN, R_MAX>) -> Self::Output

Performs the | operation. Read more
source§

impl<const L_MIN: i64, const L_MAX: i64, const R_MIN: i64, const R_MAX: i64> BitOr<&Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

The resulting type after applying the | operator.
source§

fn bitor(self, rhs: &Bounded<R_MIN, R_MAX>) -> Self::Output

Performs the | operation. Read more
source§

impl<const MIN: i64, const MAX: i64> BitOr<&i64> for &Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

The resulting type after applying the | operator.
source§

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

Performs the | operation. Read more
source§

impl<const MIN: i64, const MAX: i64> BitOr<&i64> for Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

The resulting type after applying the | operator.
source§

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

Performs the | operation. Read more
source§

impl<const MIN: i64, const MAX: i64> BitOr<Bounded<MIN, MAX>> for &i64

§

type Output = i64

The resulting type after applying the | operator.
source§

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

Performs the | operation. Read more
source§

impl<const MIN: i64, const MAX: i64> BitOr<Bounded<MIN, MAX>> for i64

§

type Output = i64

The resulting type after applying the | operator.
source§

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

Performs the | operation. Read more
source§

impl<const L_MIN: i64, const L_MAX: i64, const R_MIN: i64, const R_MAX: i64> BitOr<Bounded<R_MIN, R_MAX>> for &Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

The resulting type after applying the | operator.
source§

fn bitor(self, rhs: Bounded<R_MIN, R_MAX>) -> Self::Output

Performs the | operation. Read more
source§

impl<const L_MIN: i64, const L_MAX: i64, const R_MIN: i64, const R_MAX: i64> BitOr<Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

The resulting type after applying the | operator.
source§

fn bitor(self, rhs: Bounded<R_MIN, R_MAX>) -> Self::Output

Performs the | operation. Read more
source§

impl<const MIN: i64, const MAX: i64> BitOr<i64> for &Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

The resulting type after applying the | operator.
source§

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

Performs the | operation. Read more
source§

impl<const MIN: i64, const MAX: i64> BitOr<i64> for Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

The resulting type after applying the | operator.
source§

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

Performs the | operation. Read more
source§

impl<const MIN: i64, const MAX: i64> BitOrAssign<&Bounded<MIN, MAX>> for i64

source§

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

Performs the |= operation. Read more
source§

impl<const L_MIN: i64, const L_MAX: i64, const R_MIN: i64, const R_MAX: i64> BitOrAssign<&Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

source§

fn bitor_assign(&mut self, rhs: &Bounded<R_MIN, R_MAX>)

Performs the |= operation. Read more
source§

impl<const MIN: i64, const MAX: i64> BitOrAssign<&i64> for Bounded<MIN, MAX>

source§

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

Performs the |= operation. Read more
source§

impl<const MIN: i64, const MAX: i64> BitOrAssign<Bounded<MIN, MAX>> for i64

source§

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

Performs the |= operation. Read more
source§

impl<const L_MIN: i64, const L_MAX: i64, const R_MIN: i64, const R_MAX: i64> BitOrAssign<Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

source§

fn bitor_assign(&mut self, rhs: Bounded<R_MIN, R_MAX>)

Performs the |= operation. Read more
source§

impl<const MIN: i64, const MAX: i64> BitOrAssign<i64> for Bounded<MIN, MAX>

source§

fn bitor_assign(&mut self, rhs: i64)

Performs the |= operation. Read more
source§

impl<const MIN: i64, const MAX: i64> BitXor<&Bounded<MIN, MAX>> for &i64

§

type Output = i64

The resulting type after applying the ^ operator.
source§

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

Performs the ^ operation. Read more
source§

impl<const MIN: i64, const MAX: i64> BitXor<&Bounded<MIN, MAX>> for i64

§

type Output = i64

The resulting type after applying the ^ operator.
source§

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

Performs the ^ operation. Read more
source§

impl<const L_MIN: i64, const L_MAX: i64, const R_MIN: i64, const R_MAX: i64> BitXor<&Bounded<R_MIN, R_MAX>> for &Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

The resulting type after applying the ^ operator.
source§

fn bitxor(self, rhs: &Bounded<R_MIN, R_MAX>) -> Self::Output

Performs the ^ operation. Read more
source§

impl<const L_MIN: i64, const L_MAX: i64, const R_MIN: i64, const R_MAX: i64> BitXor<&Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

The resulting type after applying the ^ operator.
source§

fn bitxor(self, rhs: &Bounded<R_MIN, R_MAX>) -> Self::Output

Performs the ^ operation. Read more
source§

impl<const MIN: i64, const MAX: i64> BitXor<&i64> for &Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

The resulting type after applying the ^ operator.
source§

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

Performs the ^ operation. Read more
source§

impl<const MIN: i64, const MAX: i64> BitXor<&i64> for Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

The resulting type after applying the ^ operator.
source§

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

Performs the ^ operation. Read more
source§

impl<const MIN: i64, const MAX: i64> BitXor<Bounded<MIN, MAX>> for &i64

§

type Output = i64

The resulting type after applying the ^ operator.
source§

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

Performs the ^ operation. Read more
source§

impl<const MIN: i64, const MAX: i64> BitXor<Bounded<MIN, MAX>> for i64

§

type Output = i64

The resulting type after applying the ^ operator.
source§

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

Performs the ^ operation. Read more
source§

impl<const L_MIN: i64, const L_MAX: i64, const R_MIN: i64, const R_MAX: i64> BitXor<Bounded<R_MIN, R_MAX>> for &Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

The resulting type after applying the ^ operator.
source§

fn bitxor(self, rhs: Bounded<R_MIN, R_MAX>) -> Self::Output

Performs the ^ operation. Read more
source§

impl<const L_MIN: i64, const L_MAX: i64, const R_MIN: i64, const R_MAX: i64> BitXor<Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

The resulting type after applying the ^ operator.
source§

fn bitxor(self, rhs: Bounded<R_MIN, R_MAX>) -> Self::Output

Performs the ^ operation. Read more
source§

impl<const MIN: i64, const MAX: i64> BitXor<i64> for &Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

The resulting type after applying the ^ operator.
source§

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

Performs the ^ operation. Read more
source§

impl<const MIN: i64, const MAX: i64> BitXor<i64> for Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

The resulting type after applying the ^ operator.
source§

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

Performs the ^ operation. Read more
source§

impl<const MIN: i64, const MAX: i64> BitXorAssign<&Bounded<MIN, MAX>> for i64

source§

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

Performs the ^= operation. Read more
source§

impl<const L_MIN: i64, const L_MAX: i64, const R_MIN: i64, const R_MAX: i64> BitXorAssign<&Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

source§

fn bitxor_assign(&mut self, rhs: &Bounded<R_MIN, R_MAX>)

Performs the ^= operation. Read more
source§

impl<const MIN: i64, const MAX: i64> BitXorAssign<&i64> for Bounded<MIN, MAX>

source§

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

Performs the ^= operation. Read more
source§

impl<const MIN: i64, const MAX: i64> BitXorAssign<Bounded<MIN, MAX>> for i64

source§

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

Performs the ^= operation. Read more
source§

impl<const L_MIN: i64, const L_MAX: i64, const R_MIN: i64, const R_MAX: i64> BitXorAssign<Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

source§

fn bitxor_assign(&mut self, rhs: Bounded<R_MIN, R_MAX>)

Performs the ^= operation. Read more
source§

impl<const MIN: i64, const MAX: i64> BitXorAssign<i64> for Bounded<MIN, MAX>

source§

fn bitxor_assign(&mut self, rhs: i64)

Performs the ^= operation. Read more
source§

impl<const MIN: i64, const MAX: i64> Borrow<i64> for Bounded<MIN, MAX>

source§

fn borrow(&self) -> &i64

Immutably borrows from an owned value. Read more
source§

impl<const MIN: i64, const MAX: i64> Bounded for Bounded<MIN, MAX>

Available on crate feature num-traits02 only.
source§

fn min_value() -> Self

Returns the smallest finite number this type can represent
source§

fn max_value() -> Self

Returns the largest finite number this type can represent
source§

impl<const MIN: i64, const MAX: i64> CheckedAdd for Bounded<MIN, MAX>

Available on crate feature num-traits02 only.
source§

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

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

impl<const MIN: i64, const MAX: i64> CheckedDiv for Bounded<MIN, MAX>

Available on crate feature num-traits02 only.
source§

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

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

impl<const MIN: i64, const MAX: i64> CheckedMul for Bounded<MIN, MAX>

Available on crate feature num-traits02 only.
source§

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

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

impl<const MIN: i64, const MAX: i64> CheckedNeg for Bounded<MIN, MAX>

Available on crate feature num-traits02 only.
source§

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

Negates a number, returning None for results that can’t be represented, like signed MIN values that can’t be positive, or non-zero unsigned values that can’t be negative. Read more
source§

impl<const MIN: i64, const MAX: i64> CheckedRem for Bounded<MIN, MAX>

Available on crate feature num-traits02 only.
source§

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

Finds the remainder of dividing two numbers, checking for underflow, overflow and division by zero. If any of that happens, None is returned. Read more
source§

impl<const MIN: i64, const MAX: i64> CheckedShl for Bounded<MIN, MAX>

Available on crate feature num-traits02 only.
source§

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

Checked shift left. Computes self << rhs, returning None if rhs is larger than or equal to the number of bits in self. Read more
source§

impl<const MIN: i64, const MAX: i64> CheckedShr for Bounded<MIN, MAX>

Available on crate feature num-traits02 only.
source§

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

Checked shift right. Computes self >> rhs, returning None if rhs is larger than or equal to the number of bits in self. Read more
source§

impl<const MIN: i64, const MAX: i64> CheckedSub for Bounded<MIN, MAX>

Available on crate feature num-traits02 only.
source§

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

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

impl<const MIN: i64, const MAX: i64> Clone for Bounded<MIN, MAX>

source§

fn clone(&self) -> Bounded<MIN, MAX>

Returns a copy of the value. Read more
1.0.0 · source§

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

Performs copy-assignment from source. Read more
source§

impl<const MIN: i64, const MAX: i64> Contiguous for Bounded<MIN, MAX>

Available on crate feature bytemuck1 only.
§

type Int = i64

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

const MAX_VALUE: i64 = MAX

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

const MIN_VALUE: i64 = MIN

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

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

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

fn into_integer(self) -> Self::Int

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

impl<const MIN: i64, const MAX: i64> Debug for Bounded<MIN, MAX>

source§

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

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

impl<'de, const MIN: i64, const MAX: i64> Deserialize<'de> for Bounded<MIN, MAX>

Available on crate feature serde1 only.
source§

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

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

impl<const MIN: i64, const MAX: i64> Display for Bounded<MIN, MAX>

source§

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

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

impl<const MIN: i64, const MAX: i64> Div<&Bounded<MIN, MAX>> for &i64

§

type Output = i64

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl<const MIN: i64, const MAX: i64> Div<&Bounded<MIN, MAX>> for i64

§

type Output = i64

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl<const L_MIN: i64, const L_MAX: i64, const R_MIN: i64, const R_MAX: i64> Div<&Bounded<R_MIN, R_MAX>> for &Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &Bounded<R_MIN, R_MAX>) -> Self::Output

Performs the / operation. Read more
source§

impl<const L_MIN: i64, const L_MAX: i64, const R_MIN: i64, const R_MAX: i64> Div<&Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &Bounded<R_MIN, R_MAX>) -> Self::Output

Performs the / operation. Read more
source§

impl<const MIN: i64, const MAX: i64> Div<&i64> for &Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl<const MIN: i64, const MAX: i64> Div<&i64> for Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl<const MIN: i64, const MAX: i64> Div<Bounded<MIN, MAX>> for &i64

§

type Output = i64

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl<const MIN: i64, const MAX: i64> Div<Bounded<MIN, MAX>> for i64

§

type Output = i64

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl<const L_MIN: i64, const L_MAX: i64, const R_MIN: i64, const R_MAX: i64> Div<Bounded<R_MIN, R_MAX>> for &Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

The resulting type after applying the / operator.
source§

fn div(self, rhs: Bounded<R_MIN, R_MAX>) -> Self::Output

Performs the / operation. Read more
source§

impl<const L_MIN: i64, const L_MAX: i64, const R_MIN: i64, const R_MAX: i64> Div<Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

The resulting type after applying the / operator.
source§

fn div(self, rhs: Bounded<R_MIN, R_MAX>) -> Self::Output

Performs the / operation. Read more
source§

impl<const MIN: i64, const MAX: i64> Div<i64> for &Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl<const MIN: i64, const MAX: i64> Div<i64> for Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl<const MIN: i64, const MAX: i64> DivAssign<&Bounded<MIN, MAX>> for i64

source§

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

Performs the /= operation. Read more
source§

impl<const L_MIN: i64, const L_MAX: i64, const R_MIN: i64, const R_MAX: i64> DivAssign<&Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

source§

fn div_assign(&mut self, rhs: &Bounded<R_MIN, R_MAX>)

Performs the /= operation. Read more
source§

impl<const MIN: i64, const MAX: i64> DivAssign<&i64> for Bounded<MIN, MAX>

source§

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

Performs the /= operation. Read more
source§

impl<const MIN: i64, const MAX: i64> DivAssign<Bounded<MIN, MAX>> for i64

source§

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

Performs the /= operation. Read more
source§

impl<const L_MIN: i64, const L_MAX: i64, const R_MIN: i64, const R_MAX: i64> DivAssign<Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

source§

fn div_assign(&mut self, rhs: Bounded<R_MIN, R_MAX>)

Performs the /= operation. Read more
source§

impl<const MIN: i64, const MAX: i64> DivAssign<i64> for Bounded<MIN, MAX>

source§

fn div_assign(&mut self, rhs: i64)

Performs the /= operation. Read more
source§

impl<const MIN: i64, const MAX: i64> From<Bounded<MIN, MAX>> for i128

source§

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

Converts to this type from the input type.
source§

impl<const MIN: i64, const MAX: i64> From<Bounded<MIN, MAX>> for i64

source§

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

Converts to this type from the input type.
source§

impl<const MIN: i64, const MAX: i64> FromPrimitive for Bounded<MIN, MAX>where i64: FromPrimitive,

Available on crate feature num-traits02 only.
source§

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

Converts an i64 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_u64(n: u64) -> Option<Self>

Converts an u64 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_isize(n: isize) -> Option<Self>

Converts an isize to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_i8(n: i8) -> Option<Self>

Converts an i8 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_i16(n: i16) -> Option<Self>

Converts an i16 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_i32(n: i32) -> Option<Self>

Converts an i32 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_i128(n: i128) -> Option<Self>

Converts an i128 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more
source§

fn from_usize(n: usize) -> Option<Self>

Converts a usize to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_u8(n: u8) -> Option<Self>

Converts an u8 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_u16(n: u16) -> Option<Self>

Converts an u16 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_u32(n: u32) -> Option<Self>

Converts an u32 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_u128(n: u128) -> Option<Self>

Converts an u128 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more
source§

fn from_f32(n: f32) -> Option<Self>

Converts a f32 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_f64(n: f64) -> Option<Self>

Converts a f64 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more
source§

impl<const MIN: i64, const MAX: i64> FromStr for Bounded<MIN, MAX>

§

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: i64, const MAX: i64> Hash for Bounded<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: i64, const MAX: i64> LowerExp for Bounded<MIN, MAX>

source§

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

Formats the value using the given formatter.
source§

impl<const MIN: i64, const MAX: i64> LowerHex for Bounded<MIN, MAX>

source§

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

Formats the value using the given formatter.
source§

impl<const MIN: i64, const MAX: i64> Mul<&Bounded<MIN, MAX>> for &i64

§

type Output = i64

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl<const MIN: i64, const MAX: i64> Mul<&Bounded<MIN, MAX>> for i64

§

type Output = i64

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl<const L_MIN: i64, const L_MAX: i64, const R_MIN: i64, const R_MAX: i64> Mul<&Bounded<R_MIN, R_MAX>> for &Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Bounded<R_MIN, R_MAX>) -> Self::Output

Performs the * operation. Read more
source§

impl<const L_MIN: i64, const L_MAX: i64, const R_MIN: i64, const R_MAX: i64> Mul<&Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Bounded<R_MIN, R_MAX>) -> Self::Output

Performs the * operation. Read more
source§

impl<const MIN: i64, const MAX: i64> Mul<&i64> for &Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl<const MIN: i64, const MAX: i64> Mul<&i64> for Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl<const MIN: i64, const MAX: i64> Mul<Bounded<MIN, MAX>> for &i64

§

type Output = i64

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl<const MIN: i64, const MAX: i64> Mul<Bounded<MIN, MAX>> for i64

§

type Output = i64

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl<const L_MIN: i64, const L_MAX: i64, const R_MIN: i64, const R_MAX: i64> Mul<Bounded<R_MIN, R_MAX>> for &Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Bounded<R_MIN, R_MAX>) -> Self::Output

Performs the * operation. Read more
source§

impl<const L_MIN: i64, const L_MAX: i64, const R_MIN: i64, const R_MAX: i64> Mul<Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Bounded<R_MIN, R_MAX>) -> Self::Output

Performs the * operation. Read more
source§

impl<const MIN: i64, const MAX: i64> Mul<i64> for &Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl<const MIN: i64, const MAX: i64> Mul<i64> for Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl<A, B, const MIN: i64, const MAX: i64> MulAdd<A, B> for Bounded<MIN, MAX>where i64: MulAdd<A, B, Output = i64>,

Available on crate feature num-traits02 only.
§

type Output = i64

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

fn mul_add(self, a: A, b: B) -> Self::Output

Performs the fused multiply-add operation.
source§

impl<const MIN: i64, const MAX: i64> MulAssign<&Bounded<MIN, MAX>> for i64

source§

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

Performs the *= operation. Read more
source§

impl<const L_MIN: i64, const L_MAX: i64, const R_MIN: i64, const R_MAX: i64> MulAssign<&Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

source§

fn mul_assign(&mut self, rhs: &Bounded<R_MIN, R_MAX>)

Performs the *= operation. Read more
source§

impl<const MIN: i64, const MAX: i64> MulAssign<&i64> for Bounded<MIN, MAX>

source§

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

Performs the *= operation. Read more
source§

impl<const MIN: i64, const MAX: i64> MulAssign<Bounded<MIN, MAX>> for i64

source§

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

Performs the *= operation. Read more
source§

impl<const L_MIN: i64, const L_MAX: i64, const R_MIN: i64, const R_MAX: i64> MulAssign<Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

source§

fn mul_assign(&mut self, rhs: Bounded<R_MIN, R_MAX>)

Performs the *= operation. Read more
source§

impl<const MIN: i64, const MAX: i64> MulAssign<i64> for Bounded<MIN, MAX>

source§

fn mul_assign(&mut self, rhs: i64)

Performs the *= operation. Read more
source§

impl<const MIN: i64, const MAX: i64> Neg for &Bounded<MIN, MAX>

§

type Output = Bounded<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: i64, const MAX: i64> Neg for Bounded<MIN, MAX>

§

type Output = Bounded<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: i64, const MAX: i64> Not for &Bounded<MIN, MAX>

§

type Output = Bounded<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: i64, const MAX: i64> Not for Bounded<MIN, MAX>

§

type Output = Bounded<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: i64, const MAX: i64> NumCast for Bounded<MIN, MAX>where i64: NumCast,

Available on crate feature num-traits02 only.
source§

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

Creates a number from another value that can be converted into a primitive via the ToPrimitive trait. If the source value cannot be represented by the target type, then None is returned. Read more
source§

impl<const MIN: i64, const MAX: i64> Octal for Bounded<MIN, MAX>

source§

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

Formats the value using the given formatter.
source§

impl<const MIN: i64, const MAX: i64> Ord for Bounded<MIN, MAX>

source§

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

This method returns an Ordering between self and other. Read more
1.21.0 · source§

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

Compares and returns the maximum of two values. Read more
1.21.0 · source§

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

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>,

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

impl<const A_MIN: i64, const A_MAX: i64, const B_MIN: i64, const B_MAX: i64> PartialEq<Bounded<B_MIN, B_MAX>> for Bounded<A_MIN, A_MAX>

source§

fn eq(&self, other: &Bounded<B_MIN, B_MAX>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<const MIN: i64, const MAX: i64> PartialEq<Bounded<MIN, MAX>> for i64

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<const MIN: i64, const MAX: i64> PartialEq<i64> for Bounded<MIN, MAX>

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<const A_MIN: i64, const A_MAX: i64, const B_MIN: i64, const B_MAX: i64> PartialOrd<Bounded<B_MIN, B_MAX>> for Bounded<A_MIN, A_MAX>

source§

fn partial_cmp(&self, other: &Bounded<B_MIN, B_MAX>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

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

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

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

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

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

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl<const MIN: i64, const MAX: i64> PartialOrd<Bounded<MIN, MAX>> for i64

source§

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

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

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

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

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

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

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

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl<const MIN: i64, const MAX: i64> PartialOrd<i64> for Bounded<MIN, MAX>

source§

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

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

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

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

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

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

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

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl<'a, const MIN: i64, const MAX: i64> Product<&'a Bounded<MIN, MAX>> for Bounded<MIN, MAX>

source§

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

Method which takes an iterator and generates Self from the elements by multiplying the items.
source§

impl<'a, const MIN: i64, const MAX: i64> Product<&'a Bounded<MIN, MAX>> for i64

source§

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

Method which takes an iterator and generates Self from the elements by multiplying the items.
source§

impl<const MIN: i64, const MAX: i64> Product<Bounded<MIN, MAX>> for Bounded<MIN, MAX>

source§

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

Method which takes an iterator and generates Self from the elements by multiplying the items.
source§

impl<const MIN: i64, const MAX: i64> Product<Bounded<MIN, MAX>> for i64

source§

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

Method which takes an iterator and generates Self from the elements by multiplying the items.
source§

impl<const MIN: i64, const MAX: i64> Rem<&Bounded<MIN, MAX>> for &i64

§

type Output = i64

The resulting type after applying the % operator.
source§

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

Performs the % operation. Read more
source§

impl<const MIN: i64, const MAX: i64> Rem<&Bounded<MIN, MAX>> for i64

§

type Output = i64

The resulting type after applying the % operator.
source§

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

Performs the % operation. Read more
source§

impl<const L_MIN: i64, const L_MAX: i64, const R_MIN: i64, const R_MAX: i64> Rem<&Bounded<R_MIN, R_MAX>> for &Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &Bounded<R_MIN, R_MAX>) -> Self::Output

Performs the % operation. Read more
source§

impl<const L_MIN: i64, const L_MAX: i64, const R_MIN: i64, const R_MAX: i64> Rem<&Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &Bounded<R_MIN, R_MAX>) -> Self::Output

Performs the % operation. Read more
source§

impl<const MIN: i64, const MAX: i64> Rem<&i64> for &Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

The resulting type after applying the % operator.
source§

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

Performs the % operation. Read more
source§

impl<const MIN: i64, const MAX: i64> Rem<&i64> for Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

The resulting type after applying the % operator.
source§

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

Performs the % operation. Read more
source§

impl<const MIN: i64, const MAX: i64> Rem<Bounded<MIN, MAX>> for &i64

§

type Output = i64

The resulting type after applying the % operator.
source§

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

Performs the % operation. Read more
source§

impl<const MIN: i64, const MAX: i64> Rem<Bounded<MIN, MAX>> for i64

§

type Output = i64

The resulting type after applying the % operator.
source§

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

Performs the % operation. Read more
source§

impl<const L_MIN: i64, const L_MAX: i64, const R_MIN: i64, const R_MAX: i64> Rem<Bounded<R_MIN, R_MAX>> for &Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: Bounded<R_MIN, R_MAX>) -> Self::Output

Performs the % operation. Read more
source§

impl<const L_MIN: i64, const L_MAX: i64, const R_MIN: i64, const R_MAX: i64> Rem<Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: Bounded<R_MIN, R_MAX>) -> Self::Output

Performs the % operation. Read more
source§

impl<const MIN: i64, const MAX: i64> Rem<i64> for &Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

The resulting type after applying the % operator.
source§

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

Performs the % operation. Read more
source§

impl<const MIN: i64, const MAX: i64> Rem<i64> for Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

The resulting type after applying the % operator.
source§

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

Performs the % operation. Read more
source§

impl<const MIN: i64, const MAX: i64> RemAssign<&Bounded<MIN, MAX>> for i64

source§

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

Performs the %= operation. Read more
source§

impl<const L_MIN: i64, const L_MAX: i64, const R_MIN: i64, const R_MAX: i64> RemAssign<&Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

source§

fn rem_assign(&mut self, rhs: &Bounded<R_MIN, R_MAX>)

Performs the %= operation. Read more
source§

impl<const MIN: i64, const MAX: i64> RemAssign<&i64> for Bounded<MIN, MAX>

source§

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

Performs the %= operation. Read more
source§

impl<const MIN: i64, const MAX: i64> RemAssign<Bounded<MIN, MAX>> for i64

source§

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

Performs the %= operation. Read more
source§

impl<const L_MIN: i64, const L_MAX: i64, const R_MIN: i64, const R_MAX: i64> RemAssign<Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

source§

fn rem_assign(&mut self, rhs: Bounded<R_MIN, R_MAX>)

Performs the %= operation. Read more
source§

impl<const MIN: i64, const MAX: i64> RemAssign<i64> for Bounded<MIN, MAX>

source§

fn rem_assign(&mut self, rhs: i64)

Performs the %= operation. Read more
source§

impl<const MIN: i64, const MAX: i64> SaturatingAdd for Bounded<MIN, MAX>

Available on crate feature num-traits02 only.
source§

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

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

impl<const MIN: i64, const MAX: i64> SaturatingMul for Bounded<MIN, MAX>

Available on crate feature num-traits02 only.
source§

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

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

impl<const MIN: i64, const MAX: i64> SaturatingSub for Bounded<MIN, MAX>

Available on crate feature num-traits02 only.
source§

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

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

impl<const MIN: i64, const MAX: i64> Serialize for Bounded<MIN, MAX>

Available on crate feature serde1 only.
source§

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

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

impl<const MIN: i64, const MAX: i64> Shl<&Bounded<MIN, MAX>> for &i64

§

type Output = i64

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

fn shl(self, rhs: &Bounded<MIN, MAX>) -> Self::Output

Performs the << operation. Read more
source§

impl<const MIN: i64, const MAX: i64> Shl<&Bounded<MIN, MAX>> for i64

§

type Output = i64

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

fn shl(self, rhs: &Bounded<MIN, MAX>) -> Self::Output

Performs the << operation. Read more
source§

impl<const L_MIN: i64, const L_MAX: i64, const R_MIN: i64, const R_MAX: i64> Shl<&Bounded<R_MIN, R_MAX>> for &Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

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

fn shl(self, rhs: &Bounded<R_MIN, R_MAX>) -> Self::Output

Performs the << operation. Read more
source§

impl<const L_MIN: i64, const L_MAX: i64, const R_MIN: i64, const R_MAX: i64> Shl<&Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

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

fn shl(self, rhs: &Bounded<R_MIN, R_MAX>) -> Self::Output

Performs the << operation. Read more
source§

impl<const MIN: i64, const MAX: i64> Shl<&i64> for &Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

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

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

Performs the << operation. Read more
source§

impl<const MIN: i64, const MAX: i64> Shl<&i64> for Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

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

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

Performs the << operation. Read more
source§

impl<const MIN: i64, const MAX: i64> Shl<&u32> for &Bounded<MIN, MAX>

§

type Output = Bounded<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: i64, const MAX: i64> Shl<&u32> for Bounded<MIN, MAX>

§

type Output = Bounded<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: i64, const MAX: i64> Shl<Bounded<MIN, MAX>> for &i64

§

type Output = i64

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

fn shl(self, rhs: Bounded<MIN, MAX>) -> Self::Output

Performs the << operation. Read more
source§

impl<const MIN: i64, const MAX: i64> Shl<Bounded<MIN, MAX>> for i64

§

type Output = i64

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

fn shl(self, rhs: Bounded<MIN, MAX>) -> Self::Output

Performs the << operation. Read more
source§

impl<const L_MIN: i64, const L_MAX: i64, const R_MIN: i64, const R_MAX: i64> Shl<Bounded<R_MIN, R_MAX>> for &Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

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

fn shl(self, rhs: Bounded<R_MIN, R_MAX>) -> Self::Output

Performs the << operation. Read more
source§

impl<const L_MIN: i64, const L_MAX: i64, const R_MIN: i64, const R_MAX: i64> Shl<Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

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

fn shl(self, rhs: Bounded<R_MIN, R_MAX>) -> Self::Output

Performs the << operation. Read more
source§

impl<const MIN: i64, const MAX: i64> Shl<i64> for &Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

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

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

Performs the << operation. Read more
source§

impl<const MIN: i64, const MAX: i64> Shl<i64> for Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

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

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

Performs the << operation. Read more
source§

impl<const MIN: i64, const MAX: i64> Shl<u32> for &Bounded<MIN, MAX>

§

type Output = Bounded<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: i64, const MAX: i64> Shl<u32> for Bounded<MIN, MAX>

§

type Output = Bounded<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: i64, const MAX: i64> ShlAssign<&Bounded<MIN, MAX>> for i64

source§

fn shl_assign(&mut self, rhs: &Bounded<MIN, MAX>)

Performs the <<= operation. Read more
source§

impl<const L_MIN: i64, const L_MAX: i64, const R_MIN: i64, const R_MAX: i64> ShlAssign<&Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

source§

fn shl_assign(&mut self, rhs: &Bounded<R_MIN, R_MAX>)

Performs the <<= operation. Read more
source§

impl<const MIN: i64, const MAX: i64> ShlAssign<&i64> for Bounded<MIN, MAX>

source§

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

Performs the <<= operation. Read more
source§

impl<const MIN: i64, const MAX: i64> ShlAssign<&u32> for Bounded<MIN, MAX>

source§

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

Performs the <<= operation. Read more
source§

impl<const MIN: i64, const MAX: i64> ShlAssign<Bounded<MIN, MAX>> for i64

source§

fn shl_assign(&mut self, rhs: Bounded<MIN, MAX>)

Performs the <<= operation. Read more
source§

impl<const L_MIN: i64, const L_MAX: i64, const R_MIN: i64, const R_MAX: i64> ShlAssign<Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

source§

fn shl_assign(&mut self, rhs: Bounded<R_MIN, R_MAX>)

Performs the <<= operation. Read more
source§

impl<const MIN: i64, const MAX: i64> ShlAssign<i64> for Bounded<MIN, MAX>

source§

fn shl_assign(&mut self, rhs: i64)

Performs the <<= operation. Read more
source§

impl<const MIN: i64, const MAX: i64> ShlAssign<u32> for Bounded<MIN, MAX>

source§

fn shl_assign(&mut self, rhs: u32)

Performs the <<= operation. Read more
source§

impl<const MIN: i64, const MAX: i64> Shr<&Bounded<MIN, MAX>> for &i64

§

type Output = i64

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

fn shr(self, rhs: &Bounded<MIN, MAX>) -> Self::Output

Performs the >> operation. Read more
source§

impl<const MIN: i64, const MAX: i64> Shr<&Bounded<MIN, MAX>> for i64

§

type Output = i64

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

fn shr(self, rhs: &Bounded<MIN, MAX>) -> Self::Output

Performs the >> operation. Read more
source§

impl<const L_MIN: i64, const L_MAX: i64, const R_MIN: i64, const R_MAX: i64> Shr<&Bounded<R_MIN, R_MAX>> for &Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

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

fn shr(self, rhs: &Bounded<R_MIN, R_MAX>) -> Self::Output

Performs the >> operation. Read more
source§

impl<const L_MIN: i64, const L_MAX: i64, const R_MIN: i64, const R_MAX: i64> Shr<&Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

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

fn shr(self, rhs: &Bounded<R_MIN, R_MAX>) -> Self::Output

Performs the >> operation. Read more
source§

impl<const MIN: i64, const MAX: i64> Shr<&i64> for &Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

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

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

Performs the >> operation. Read more
source§

impl<const MIN: i64, const MAX: i64> Shr<&i64> for Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

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

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

Performs the >> operation. Read more
source§

impl<const MIN: i64, const MAX: i64> Shr<&u32> for &Bounded<MIN, MAX>

§

type Output = Bounded<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: i64, const MAX: i64> Shr<&u32> for Bounded<MIN, MAX>

§

type Output = Bounded<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: i64, const MAX: i64> Shr<Bounded<MIN, MAX>> for &i64

§

type Output = i64

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

fn shr(self, rhs: Bounded<MIN, MAX>) -> Self::Output

Performs the >> operation. Read more
source§

impl<const MIN: i64, const MAX: i64> Shr<Bounded<MIN, MAX>> for i64

§

type Output = i64

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

fn shr(self, rhs: Bounded<MIN, MAX>) -> Self::Output

Performs the >> operation. Read more
source§

impl<const L_MIN: i64, const L_MAX: i64, const R_MIN: i64, const R_MAX: i64> Shr<Bounded<R_MIN, R_MAX>> for &Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

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

fn shr(self, rhs: Bounded<R_MIN, R_MAX>) -> Self::Output

Performs the >> operation. Read more
source§

impl<const L_MIN: i64, const L_MAX: i64, const R_MIN: i64, const R_MAX: i64> Shr<Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

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

fn shr(self, rhs: Bounded<R_MIN, R_MAX>) -> Self::Output

Performs the >> operation. Read more
source§

impl<const MIN: i64, const MAX: i64> Shr<i64> for &Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

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

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

Performs the >> operation. Read more
source§

impl<const MIN: i64, const MAX: i64> Shr<i64> for Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

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

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

Performs the >> operation. Read more
source§

impl<const MIN: i64, const MAX: i64> Shr<u32> for &Bounded<MIN, MAX>

§

type Output = Bounded<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: i64, const MAX: i64> Shr<u32> for Bounded<MIN, MAX>

§

type Output = Bounded<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: i64, const MAX: i64> ShrAssign<&Bounded<MIN, MAX>> for i64

source§

fn shr_assign(&mut self, rhs: &Bounded<MIN, MAX>)

Performs the >>= operation. Read more
source§

impl<const L_MIN: i64, const L_MAX: i64, const R_MIN: i64, const R_MAX: i64> ShrAssign<&Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

source§

fn shr_assign(&mut self, rhs: &Bounded<R_MIN, R_MAX>)

Performs the >>= operation. Read more
source§

impl<const MIN: i64, const MAX: i64> ShrAssign<&i64> for Bounded<MIN, MAX>

source§

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

Performs the >>= operation. Read more
source§

impl<const MIN: i64, const MAX: i64> ShrAssign<&u32> for Bounded<MIN, MAX>

source§

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

Performs the >>= operation. Read more
source§

impl<const MIN: i64, const MAX: i64> ShrAssign<Bounded<MIN, MAX>> for i64

source§

fn shr_assign(&mut self, rhs: Bounded<MIN, MAX>)

Performs the >>= operation. Read more
source§

impl<const L_MIN: i64, const L_MAX: i64, const R_MIN: i64, const R_MAX: i64> ShrAssign<Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

source§

fn shr_assign(&mut self, rhs: Bounded<R_MIN, R_MAX>)

Performs the >>= operation. Read more
source§

impl<const MIN: i64, const MAX: i64> ShrAssign<i64> for Bounded<MIN, MAX>

source§

fn shr_assign(&mut self, rhs: i64)

Performs the >>= operation. Read more
source§

impl<const MIN: i64, const MAX: i64> ShrAssign<u32> for Bounded<MIN, MAX>

source§

fn shr_assign(&mut self, rhs: u32)

Performs the >>= operation. Read more
source§

impl<const MIN: i64, const MAX: i64> Step for Bounded<MIN, MAX>

Available on crate feature step_trait only.
source§

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

🔬This is a nightly-only experimental API. (step_trait)
Returns the number of successor steps required to get from start to end. Read more
source§

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

🔬This is a nightly-only experimental API. (step_trait)
Returns the value that would be obtained by taking the successor of self count times. Read more
source§

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

🔬This is a nightly-only experimental API. (step_trait)
Returns the value that would be obtained by taking the predecessor of self count times. Read more
source§

fn forward(start: Self, count: usize) -> Self

🔬This is a nightly-only experimental API. (step_trait)
Returns the value that would be obtained by taking the successor of self count times. Read more
source§

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

🔬This is a nightly-only experimental API. (step_trait)
Returns the value that would be obtained by taking the successor of self count times. Read more
source§

fn backward(start: Self, count: usize) -> Self

🔬This is a nightly-only experimental API. (step_trait)
Returns the value that would be obtained by taking the predecessor of self count times. Read more
source§

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

🔬This is a nightly-only experimental API. (step_trait)
Returns the value that would be obtained by taking the predecessor of self count times. Read more
source§

impl<const MIN: i64, const MAX: i64> Sub<&Bounded<MIN, MAX>> for &i64

§

type Output = i64

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl<const MIN: i64, const MAX: i64> Sub<&Bounded<MIN, MAX>> for i64

§

type Output = i64

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl<const L_MIN: i64, const L_MAX: i64, const R_MIN: i64, const R_MAX: i64> Sub<&Bounded<R_MIN, R_MAX>> for &Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &Bounded<R_MIN, R_MAX>) -> Self::Output

Performs the - operation. Read more
source§

impl<const L_MIN: i64, const L_MAX: i64, const R_MIN: i64, const R_MAX: i64> Sub<&Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &Bounded<R_MIN, R_MAX>) -> Self::Output

Performs the - operation. Read more
source§

impl<const MIN: i64, const MAX: i64> Sub<&i64> for &Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl<const MIN: i64, const MAX: i64> Sub<&i64> for Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl<const MIN: i64, const MAX: i64> Sub<Bounded<MIN, MAX>> for &i64

§

type Output = i64

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl<const MIN: i64, const MAX: i64> Sub<Bounded<MIN, MAX>> for i64

§

type Output = i64

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl<const L_MIN: i64, const L_MAX: i64, const R_MIN: i64, const R_MAX: i64> Sub<Bounded<R_MIN, R_MAX>> for &Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: Bounded<R_MIN, R_MAX>) -> Self::Output

Performs the - operation. Read more
source§

impl<const L_MIN: i64, const L_MAX: i64, const R_MIN: i64, const R_MAX: i64> Sub<Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

§

type Output = Bounded<L_MIN, L_MAX>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: Bounded<R_MIN, R_MAX>) -> Self::Output

Performs the - operation. Read more
source§

impl<const MIN: i64, const MAX: i64> Sub<i64> for &Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl<const MIN: i64, const MAX: i64> Sub<i64> for Bounded<MIN, MAX>

§

type Output = Bounded<MIN, MAX>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl<const MIN: i64, const MAX: i64> SubAssign<&Bounded<MIN, MAX>> for i64

source§

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

Performs the -= operation. Read more
source§

impl<const L_MIN: i64, const L_MAX: i64, const R_MIN: i64, const R_MAX: i64> SubAssign<&Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

source§

fn sub_assign(&mut self, rhs: &Bounded<R_MIN, R_MAX>)

Performs the -= operation. Read more
source§

impl<const MIN: i64, const MAX: i64> SubAssign<&i64> for Bounded<MIN, MAX>

source§

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

Performs the -= operation. Read more
source§

impl<const MIN: i64, const MAX: i64> SubAssign<Bounded<MIN, MAX>> for i64

source§

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

Performs the -= operation. Read more
source§

impl<const L_MIN: i64, const L_MAX: i64, const R_MIN: i64, const R_MAX: i64> SubAssign<Bounded<R_MIN, R_MAX>> for Bounded<L_MIN, L_MAX>

source§

fn sub_assign(&mut self, rhs: Bounded<R_MIN, R_MAX>)

Performs the -= operation. Read more
source§

impl<const MIN: i64, const MAX: i64> SubAssign<i64> for Bounded<MIN, MAX>

source§

fn sub_assign(&mut self, rhs: i64)

Performs the -= operation. Read more
source§

impl<'a, const MIN: i64, const MAX: i64> Sum<&'a Bounded<MIN, MAX>> for Bounded<MIN, MAX>

source§

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

Method which takes an iterator and generates Self from the elements by “summing up” the items.
source§

impl<'a, const MIN: i64, const MAX: i64> Sum<&'a Bounded<MIN, MAX>> for i64

source§

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

Method which takes an iterator and generates Self from the elements by “summing up” the items.
source§

impl<const MIN: i64, const MAX: i64> Sum<Bounded<MIN, MAX>> for Bounded<MIN, MAX>

source§

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

Method which takes an iterator and generates Self from the elements by “summing up” the items.
source§

impl<const MIN: i64, const MAX: i64> Sum<Bounded<MIN, MAX>> for i64

source§

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

Method which takes an iterator and generates Self from the elements by “summing up” the items.
source§

impl<const MIN: i64, const MAX: i64> ToPrimitive for Bounded<MIN, MAX>where i64: ToPrimitive,

Available on crate feature num-traits02 only.
source§

fn to_i64(&self) -> Option<i64>

Converts the value of self to an i64. If the value cannot be represented by an i64, then None is returned.
source§

fn to_u64(&self) -> Option<u64>

Converts the value of self to a u64. If the value cannot be represented by a u64, then None is returned.
source§

fn to_isize(&self) -> Option<isize>

Converts the value of self to an isize. If the value cannot be represented by an isize, then None is returned.
source§

fn to_i8(&self) -> Option<i8>

Converts the value of self to an i8. If the value cannot be represented by an i8, then None is returned.
source§

fn to_i16(&self) -> Option<i16>

Converts the value of self to an i16. If the value cannot be represented by an i16, then None is returned.
source§

fn to_i32(&self) -> Option<i32>

Converts the value of self to an i32. If the value cannot be represented by an i32, then None is returned.
source§

fn to_i128(&self) -> Option<i128>

Converts the value of self to an i128. If the value cannot be represented by an i128 (i64 under the default implementation), then None is returned. Read more
source§

fn to_usize(&self) -> Option<usize>

Converts the value of self to a usize. If the value cannot be represented by a usize, then None is returned.
source§

fn to_u8(&self) -> Option<u8>

Converts the value of self to a u8. If the value cannot be represented by a u8, then None is returned.
source§

fn to_u16(&self) -> Option<u16>

Converts the value of self to a u16. If the value cannot be represented by a u16, then None is returned.
source§

fn to_u32(&self) -> Option<u32>

Converts the value of self to a u32. If the value cannot be represented by a u32, then None is returned.
source§

fn to_u128(&self) -> Option<u128>

Converts the value of self to a u128. If the value cannot be represented by a u128 (u64 under the default implementation), then None is returned. Read more
source§

fn to_f32(&self) -> Option<f32>

Converts the value of self to an f32. Overflows may map to positive or negative inifinity, otherwise None is returned if the value cannot be represented by an f32.
source§

fn to_f64(&self) -> Option<f64>

Converts the value of self to an f64. Overflows may map to positive or negative inifinity, otherwise None is returned if the value cannot be represented by an f64. Read more
source§

impl<const MIN: i64, const MAX: i64> UpperExp for Bounded<MIN, MAX>

source§

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

Formats the value using the given formatter.
source§

impl<const MIN: i64, const MAX: i64> UpperHex for Bounded<MIN, MAX>

source§

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

Formats the value using the given formatter.
source§

impl<const MIN: i64, const MAX: i64> Copy for Bounded<MIN, MAX>

source§

impl<const MIN: i64, const MAX: i64> Eq for Bounded<MIN, MAX>

source§

impl<const MIN: i64, const MAX: i64> StructuralEq for Bounded<MIN, MAX>

Auto Trait Implementations§

§

impl<const MIN: i64, const MAX: i64> RefUnwindSafe for Bounded<MIN, MAX>

§

impl<const MIN: i64, const MAX: i64> Send for Bounded<MIN, MAX>

§

impl<const MIN: i64, const MAX: i64> Sync for Bounded<MIN, MAX>

§

impl<const MIN: i64, const MAX: i64> Unpin for Bounded<MIN, MAX>

§

impl<const MIN: i64, const MAX: i64> UnwindSafe for Bounded<MIN, MAX>

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. 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 Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T> LowerBounded for Twhere T: Bounded,

source§

fn min_value() -> T

Returns the smallest finite number this type can represent
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for Twhere T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

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

§

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 Twhere U: TryFrom<T>,

§

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

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

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

Performs the conversion.
source§

impl<T> UpperBounded for Twhere T: Bounded,

source§

fn max_value() -> T

Returns the largest finite number this type can represent
source§

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

source§

impl<T, Rhs> NumAssignOps<Rhs> for Twhere T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>,

source§

impl<T, Rhs, Output> NumOps<Rhs, Output> for Twhere T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,

source§

impl<T, Base> RefNum<Base> for Twhere T: NumOps<Base, Base> + for<'r> NumOps<&'r Base, Base>,