jiff::util::rangeint

Struct ri16

Source
pub(crate) struct ri16<const MIN: i128, const MAX: i128> {
    pub(crate) val: i16,
    pub(crate) min: i16,
    pub(crate) max: i16,
}

Fields§

§val: i16

The actual value of the integer.

Callers should not access this directly. There are some very rare cases where algorithms are too difficult to express on ranged integers, and it’s useful to be able to reach inside and access the raw value directly. (For example, the conversions between Unix epoch day and Gregorian date.)

§min: i16

The minimum possible value computed so far.

This value is only present when debug_assertions are enabled. In that case, it is used to ensure the minimum possible value when the integer is actually observed (or converted) is still within the legal range.

Callers should not access this directly. There are some very rare cases where algorithms are too difficult to express on ranged integers, and it’s useful to be able to reach inside and access the raw value directly. (For example, the conversions between Unix epoch day and Gregorian date.)

§max: i16

The maximum possible value computed so far.

This value is only present when debug_assertions are enabled. In that case, it is used to ensure the maximum possible value when the integer is actually observed (or converted) is still within the legal range.

Callers should not access this directly. There are some very rare cases where algorithms are too difficult to express on ranged integers, and it’s useful to be able to reach inside and access the raw value directly. (For example, the conversions between Unix epoch day and Gregorian date.)

Implementations§

Source§

impl<const MIN: i128, const MAX: i128> ri16<MIN, MAX>

Source

const PRIMITIVE_MIN: i128 = -32_768i128

These are the absolute min/max values for the integer type being used.

Source

const PRIMITIVE_MAX: i128 = 32_767i128

Source

const IS_PRIMITIVE: bool

When true, this range integer has bounds precisely equivalent to its underlying primitive representation.

Source

pub(crate) const MIN: i128 = MIN

The min/max values as given by our type parameters.

Source

pub(crate) const MAX: i128 = MAX

Source

pub(crate) const LEN: i128

The number of distinct elements in this type’s range.

Source

pub(crate) const MIN_REPR: i16

The min/max values of this type, represented in their primitive form for easy comparisons with incoming values.

Source

pub(crate) const MAX_REPR: i16

Source

pub(crate) const MIN_SELF: Self

The min/max values of this type as a ranged type.

Source

pub(crate) const MAX_SELF: Self

Source

pub(crate) const MIN_CONST: Constant

The min/max values of this type as a constant.

Source

pub(crate) const MAX_CONST: Constant

Source

pub(crate) fn error(what: &'static str, given: i16) -> Error

Source

pub(crate) fn new(val: impl TryInto<i16>) -> Option<Self>

Source

pub(crate) const fn new_const(val: i16) -> Option<Self>

Like new, but monomorphic and works in a const context.

Source

pub(crate) fn try_new( what: &'static str, val: impl Into<i64>, ) -> Result<Self, Error>

Source

pub(crate) fn try_new128( what: &'static str, val: impl Into<i128>, ) -> Result<Self, Error>

Source

pub(crate) fn constrain(val: impl Into<i16>) -> Self

Source

pub(crate) const fn new_unchecked(val: i16) -> Self

Source

pub(crate) const fn N<const VAL: i16>() -> Self

Source

pub(crate) const fn N128<const VAL: i128>() -> Self

Source

pub(crate) const fn V<const VAL: i16, const START: i16, const END: i16>() -> Self

Source

pub(crate) const fn contains(val: i16) -> bool

Source

pub(crate) fn vary<const N: usize, const MIN2: i128, const MAX2: i128>( numbers: [Self; N], with: impl Fn([Self; N]) -> ri16<MIN2, MAX2>, ) -> ri16<MIN2, MAX2>

Source

pub(crate) fn vary_many<const N: usize, const M: usize, const MIN2: i128, const MAX2: i128>( numbers: [Self; N], with: impl Fn([Self; N]) -> [ri16<MIN2, MAX2>; M], ) -> [ri16<MIN2, MAX2>; M]

Source

pub(crate) fn get(self) -> i16

Source

pub(crate) const fn get_unchecked(self) -> i16

Returns the underlying value without checking whether it’s in bounds or not.

This should generally be avoided as it circumvents the protections of this type. It is sometimes useful in cases where the bounds are known not to matter. For example, in producing an error message for checked arithmetic. It’s also good to use this in Debug impls for higher level types, otherwise printing the debug representation of a type will fail if a ranged integer is out of bounds. (And this is annoying.)

Source

pub(crate) fn to_error_with_bounds( self, what: &'static str, min: impl Into<i128>, max: impl Into<i128>, ) -> Error

Turns this integer into an error.

This is useful because it will use the integer’s value even if it falls outside of the bounds of this type.

Callers can also use this routine to set custom context dependent bounds. For example, when the day of the month is out of bounds. The maximum value can vary based on the month (and year).

Source

pub(crate) fn abs(self) -> Self

Source

pub(crate) fn signum(self) -> ri16<-1, 1>

Source

pub(crate) fn min(self, other: impl RInto<Self>) -> Self

Source

pub(crate) fn max(self, other: impl RInto<Self>) -> Self

Source

pub(crate) fn clamp(self, min: impl RInto<Self>, max: impl RInto<Self>) -> Self

Source

pub(crate) fn div_ceil(self, rhs: impl RInto<Self>) -> Self

Source

pub(crate) fn div_floor(self, rhs: impl RInto<Self>) -> Self

Source

pub(crate) fn rem_ceil(self, rhs: impl RInto<Self>) -> Self

Source

pub(crate) fn rem_floor(self, rhs: impl RInto<Self>) -> Self

Source

pub(crate) fn try_checked_add( self, what: &'static str, rhs: impl RInto<Self>, ) -> Result<Self, Error>

Source

pub(crate) fn try_checked_sub( self, what: &'static str, rhs: impl RInto<Self>, ) -> Result<Self, Error>

Source

pub(crate) fn try_checked_mul( self, what: &'static str, rhs: impl RInto<Self>, ) -> Result<Self, Error>

Source

pub(crate) fn checked_add(self, rhs: impl RInto<Self>) -> Option<Self>

Source

pub(crate) fn checked_sub(self, rhs: impl RInto<Self>) -> Option<Self>

Source

pub(crate) fn checked_mul(self, rhs: impl RInto<Self>) -> Option<Self>

Source

pub(crate) fn wrapping_add(self, rhs: impl RInto<Self>) -> Self

Source

pub(crate) fn wrapping_sub(self, rhs: impl RInto<Self>) -> Self

Source

pub(crate) fn wrapping_mul(self, rhs: impl RInto<Self>) -> Self

Source

pub(crate) fn saturating_add(self, rhs: impl RInto<Self>) -> Self

Source

pub(crate) fn saturating_sub(self, rhs: impl RInto<Self>) -> Self

Source

pub(crate) fn saturating_mul(self, rhs: impl RInto<Self>) -> Self

Source

pub(crate) fn debug(self) -> RangedDebug<MIN, MAX>

Source§

impl<const MIN: i128, const MAX: i128> ri16<MIN, MAX>

Source

pub(crate) fn without_bounds(self) -> ri64<{ _ }, { _ }>

Trait Implementations§

Source§

impl<const MIN: i128, const MAX: i128> Add<Constant> for ri16<MIN, MAX>

Source§

type Output = ri16<MIN, MAX>

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> Add<ri128<MIN1, MAX1>> for ri16<MIN2, MAX2>

Source§

type Output = ri16<MIN2, MAX2>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: ri128<MIN1, MAX1>) -> Self::Output

Performs the + operation. Read more
Source§

impl<const MIN: i128, const MAX: i128> Add<ri16<MIN, MAX>> for Constant

Source§

type Output = ri16<MIN, MAX>

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> Add<ri16<MIN1, MAX1>> for ri128<MIN2, MAX2>

Source§

type Output = ri128<MIN2, MAX2>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: ri16<MIN1, MAX1>) -> Self::Output

Performs the + operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> Add<ri16<MIN1, MAX1>> for ri32<MIN2, MAX2>

Source§

type Output = ri32<MIN2, MAX2>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: ri16<MIN1, MAX1>) -> Self::Output

Performs the + operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> Add<ri16<MIN1, MAX1>> for ri64<MIN2, MAX2>

Source§

type Output = ri64<MIN2, MAX2>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: ri16<MIN1, MAX1>) -> Self::Output

Performs the + operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> Add<ri16<MIN1, MAX1>> for ri8<MIN2, MAX2>

Source§

type Output = ri8<MIN2, MAX2>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: ri16<MIN1, MAX1>) -> Self::Output

Performs the + operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> Add<ri16<MIN2, MAX2>> for ri16<MIN1, MAX1>

Source§

type Output = ri16<MIN1, MAX1>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: ri16<MIN2, MAX2>) -> Self::Output

Performs the + operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> Add<ri32<MIN1, MAX1>> for ri16<MIN2, MAX2>

Source§

type Output = ri16<MIN2, MAX2>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: ri32<MIN1, MAX1>) -> Self::Output

Performs the + operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> Add<ri64<MIN1, MAX1>> for ri16<MIN2, MAX2>

Source§

type Output = ri16<MIN2, MAX2>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: ri64<MIN1, MAX1>) -> Self::Output

Performs the + operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> Add<ri8<MIN1, MAX1>> for ri16<MIN2, MAX2>

Source§

type Output = ri16<MIN2, MAX2>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: ri8<MIN1, MAX1>) -> Self::Output

Performs the + operation. Read more
Source§

impl<const MIN: i128, const MAX: i128> AddAssign<Constant> for ri16<MIN, MAX>

Source§

fn add_assign(&mut self, rhs: Constant)

Performs the += operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> AddAssign<ri128<MIN1, MAX1>> for ri16<MIN2, MAX2>

Source§

fn add_assign(&mut self, rhs: ri128<MIN1, MAX1>)

Performs the += operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> AddAssign<ri16<MIN1, MAX1>> for ri128<MIN2, MAX2>

Source§

fn add_assign(&mut self, rhs: ri16<MIN1, MAX1>)

Performs the += operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> AddAssign<ri16<MIN1, MAX1>> for ri32<MIN2, MAX2>

Source§

fn add_assign(&mut self, rhs: ri16<MIN1, MAX1>)

Performs the += operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> AddAssign<ri16<MIN1, MAX1>> for ri64<MIN2, MAX2>

Source§

fn add_assign(&mut self, rhs: ri16<MIN1, MAX1>)

Performs the += operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> AddAssign<ri16<MIN1, MAX1>> for ri8<MIN2, MAX2>

Source§

fn add_assign(&mut self, rhs: ri16<MIN1, MAX1>)

Performs the += operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> AddAssign<ri16<MIN2, MAX2>> for ri16<MIN1, MAX1>

Source§

fn add_assign(&mut self, rhs: ri16<MIN2, MAX2>)

Performs the += operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> AddAssign<ri32<MIN1, MAX1>> for ri16<MIN2, MAX2>

Source§

fn add_assign(&mut self, rhs: ri32<MIN1, MAX1>)

Performs the += operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> AddAssign<ri64<MIN1, MAX1>> for ri16<MIN2, MAX2>

Source§

fn add_assign(&mut self, rhs: ri64<MIN1, MAX1>)

Performs the += operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> AddAssign<ri8<MIN1, MAX1>> for ri16<MIN2, MAX2>

Source§

fn add_assign(&mut self, rhs: ri8<MIN1, MAX1>)

Performs the += operation. Read more
Source§

impl<const MIN: i128, const MAX: i128> Clone for ri16<MIN, MAX>

Source§

fn clone(&self) -> ri16<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: i128, const MAX: i128> Debug for ri16<MIN, MAX>

Source§

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

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

impl<const MIN: i128, const MAX: i128> Display for ri16<MIN, MAX>

Source§

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

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

impl<const MIN: i128, const MAX: i128> Div<Constant> for ri16<MIN, MAX>

Source§

type Output = ri16<MIN, MAX>

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> Div<ri128<MIN1, MAX1>> for ri16<MIN2, MAX2>

Source§

type Output = ri16<MIN2, MAX2>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: ri128<MIN1, MAX1>) -> Self::Output

Performs the / operation. Read more
Source§

impl<const MIN: i128, const MAX: i128> Div<ri16<MIN, MAX>> for Constant

Source§

type Output = ri16<MIN, MAX>

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> Div<ri16<MIN1, MAX1>> for ri128<MIN2, MAX2>

Source§

type Output = ri128<MIN2, MAX2>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: ri16<MIN1, MAX1>) -> Self::Output

Performs the / operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> Div<ri16<MIN1, MAX1>> for ri32<MIN2, MAX2>

Source§

type Output = ri32<MIN2, MAX2>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: ri16<MIN1, MAX1>) -> Self::Output

Performs the / operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> Div<ri16<MIN1, MAX1>> for ri64<MIN2, MAX2>

Source§

type Output = ri64<MIN2, MAX2>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: ri16<MIN1, MAX1>) -> Self::Output

Performs the / operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> Div<ri16<MIN1, MAX1>> for ri8<MIN2, MAX2>

Source§

type Output = ri8<MIN2, MAX2>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: ri16<MIN1, MAX1>) -> Self::Output

Performs the / operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> Div<ri16<MIN2, MAX2>> for ri16<MIN1, MAX1>

Source§

type Output = ri16<MIN1, MAX1>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: ri16<MIN2, MAX2>) -> Self::Output

Performs the / operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> Div<ri32<MIN1, MAX1>> for ri16<MIN2, MAX2>

Source§

type Output = ri16<MIN2, MAX2>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: ri32<MIN1, MAX1>) -> Self::Output

Performs the / operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> Div<ri64<MIN1, MAX1>> for ri16<MIN2, MAX2>

Source§

type Output = ri16<MIN2, MAX2>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: ri64<MIN1, MAX1>) -> Self::Output

Performs the / operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> Div<ri8<MIN1, MAX1>> for ri16<MIN2, MAX2>

Source§

type Output = ri16<MIN2, MAX2>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: ri8<MIN1, MAX1>) -> Self::Output

Performs the / operation. Read more
Source§

impl<const MIN: i128, const MAX: i128> DivAssign<Constant> for ri16<MIN, MAX>

Source§

fn div_assign(&mut self, rhs: Constant)

Performs the /= operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> DivAssign<ri128<MIN1, MAX1>> for ri16<MIN2, MAX2>

Source§

fn div_assign(&mut self, rhs: ri128<MIN1, MAX1>)

Performs the /= operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> DivAssign<ri16<MIN1, MAX1>> for ri128<MIN2, MAX2>

Source§

fn div_assign(&mut self, rhs: ri16<MIN1, MAX1>)

Performs the /= operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> DivAssign<ri16<MIN1, MAX1>> for ri32<MIN2, MAX2>

Source§

fn div_assign(&mut self, rhs: ri16<MIN1, MAX1>)

Performs the /= operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> DivAssign<ri16<MIN1, MAX1>> for ri64<MIN2, MAX2>

Source§

fn div_assign(&mut self, rhs: ri16<MIN1, MAX1>)

Performs the /= operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> DivAssign<ri16<MIN1, MAX1>> for ri8<MIN2, MAX2>

Source§

fn div_assign(&mut self, rhs: ri16<MIN1, MAX1>)

Performs the /= operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> DivAssign<ri16<MIN2, MAX2>> for ri16<MIN1, MAX1>

Source§

fn div_assign(&mut self, rhs: ri16<MIN2, MAX2>)

Performs the /= operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> DivAssign<ri32<MIN1, MAX1>> for ri16<MIN2, MAX2>

Source§

fn div_assign(&mut self, rhs: ri32<MIN1, MAX1>)

Performs the /= operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> DivAssign<ri64<MIN1, MAX1>> for ri16<MIN2, MAX2>

Source§

fn div_assign(&mut self, rhs: ri64<MIN1, MAX1>)

Performs the /= operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> DivAssign<ri8<MIN1, MAX1>> for ri16<MIN2, MAX2>

Source§

fn div_assign(&mut self, rhs: ri8<MIN1, MAX1>)

Performs the /= operation. Read more
Source§

impl<const MIN: i128, const MAX: i128> From<ri16<MIN, MAX>> for i128

Source§

fn from(r: ri16<MIN, MAX>) -> i128

Converts to this type from the input type.
Source§

impl<const MIN: i128, const MAX: i128> From<ri16<MIN, MAX>> for i16

Source§

fn from(r: ri16<MIN, MAX>) -> i16

Converts to this type from the input type.
Source§

impl<const MIN: i128, const MAX: i128> From<ri16<MIN, MAX>> for i32

Source§

fn from(r: ri16<MIN, MAX>) -> i32

Converts to this type from the input type.
Source§

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

Source§

fn from(r: ri16<MIN, MAX>) -> i64

Converts to this type from the input type.
Source§

impl<const MIN: i128, const MAX: i128> From<ri16<MIN, MAX>> for i8

Source§

fn from(r: ri16<MIN, MAX>) -> i8

Converts to this type from the input type.
Source§

impl<const MIN: i128, const MAX: i128> Hash for ri16<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: i128, const MAX: i128> Mul<Constant> for ri16<MIN, MAX>

Source§

type Output = ri16<MIN, MAX>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> Mul<ri128<MIN1, MAX1>> for ri16<MIN2, MAX2>

Source§

type Output = ri16<MIN2, MAX2>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: ri128<MIN1, MAX1>) -> Self::Output

Performs the * operation. Read more
Source§

impl<const MIN: i128, const MAX: i128> Mul<ri16<MIN, MAX>> for Constant

Source§

type Output = ri16<MIN, MAX>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> Mul<ri16<MIN1, MAX1>> for ri128<MIN2, MAX2>

Source§

type Output = ri128<MIN2, MAX2>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: ri16<MIN1, MAX1>) -> Self::Output

Performs the * operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> Mul<ri16<MIN1, MAX1>> for ri32<MIN2, MAX2>

Source§

type Output = ri32<MIN2, MAX2>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: ri16<MIN1, MAX1>) -> Self::Output

Performs the * operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> Mul<ri16<MIN1, MAX1>> for ri64<MIN2, MAX2>

Source§

type Output = ri64<MIN2, MAX2>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: ri16<MIN1, MAX1>) -> Self::Output

Performs the * operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> Mul<ri16<MIN1, MAX1>> for ri8<MIN2, MAX2>

Source§

type Output = ri8<MIN2, MAX2>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: ri16<MIN1, MAX1>) -> Self::Output

Performs the * operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> Mul<ri16<MIN2, MAX2>> for ri16<MIN1, MAX1>

Source§

type Output = ri16<MIN1, MAX1>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: ri16<MIN2, MAX2>) -> Self::Output

Performs the * operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> Mul<ri32<MIN1, MAX1>> for ri16<MIN2, MAX2>

Source§

type Output = ri16<MIN2, MAX2>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: ri32<MIN1, MAX1>) -> Self::Output

Performs the * operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> Mul<ri64<MIN1, MAX1>> for ri16<MIN2, MAX2>

Source§

type Output = ri16<MIN2, MAX2>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: ri64<MIN1, MAX1>) -> Self::Output

Performs the * operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> Mul<ri8<MIN1, MAX1>> for ri16<MIN2, MAX2>

Source§

type Output = ri16<MIN2, MAX2>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: ri8<MIN1, MAX1>) -> Self::Output

Performs the * operation. Read more
Source§

impl<const MIN: i128, const MAX: i128> MulAssign<Constant> for ri16<MIN, MAX>

Source§

fn mul_assign(&mut self, rhs: Constant)

Performs the *= operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> MulAssign<ri128<MIN1, MAX1>> for ri16<MIN2, MAX2>

Source§

fn mul_assign(&mut self, rhs: ri128<MIN1, MAX1>)

Performs the *= operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> MulAssign<ri16<MIN1, MAX1>> for ri128<MIN2, MAX2>

Source§

fn mul_assign(&mut self, rhs: ri16<MIN1, MAX1>)

Performs the *= operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> MulAssign<ri16<MIN1, MAX1>> for ri32<MIN2, MAX2>

Source§

fn mul_assign(&mut self, rhs: ri16<MIN1, MAX1>)

Performs the *= operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> MulAssign<ri16<MIN1, MAX1>> for ri64<MIN2, MAX2>

Source§

fn mul_assign(&mut self, rhs: ri16<MIN1, MAX1>)

Performs the *= operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> MulAssign<ri16<MIN1, MAX1>> for ri8<MIN2, MAX2>

Source§

fn mul_assign(&mut self, rhs: ri16<MIN1, MAX1>)

Performs the *= operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> MulAssign<ri16<MIN2, MAX2>> for ri16<MIN1, MAX1>

Source§

fn mul_assign(&mut self, rhs: ri16<MIN2, MAX2>)

Performs the *= operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> MulAssign<ri32<MIN1, MAX1>> for ri16<MIN2, MAX2>

Source§

fn mul_assign(&mut self, rhs: ri32<MIN1, MAX1>)

Performs the *= operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> MulAssign<ri64<MIN1, MAX1>> for ri16<MIN2, MAX2>

Source§

fn mul_assign(&mut self, rhs: ri64<MIN1, MAX1>)

Performs the *= operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> MulAssign<ri8<MIN1, MAX1>> for ri16<MIN2, MAX2>

Source§

fn mul_assign(&mut self, rhs: ri8<MIN1, MAX1>)

Performs the *= operation. Read more
Source§

impl<const MIN: i128, const MAX: i128> Neg for ri16<MIN, MAX>

Source§

type Output = ri16<MIN, MAX>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self

Performs the unary - operation. Read more
Source§

impl<const MIN: i128, const MAX: i128> Ord for ri16<MIN, MAX>

Source§

fn cmp(&self, other: &Self) -> Ordering

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

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

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

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

Compares and returns the minimum of two values. Read more
1.50.0 · 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: i128, const MAX: i128> PartialEq<Constant> for ri16<MIN, MAX>

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> PartialEq<ri128<MIN1, MAX1>> for ri16<MIN2, MAX2>

Source§

fn eq(&self, other: &ri128<MIN1, MAX1>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<const MIN: i128, const MAX: i128> PartialEq<ri16<MIN, MAX>> for Constant

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> PartialEq<ri16<MIN1, MAX1>> for ri128<MIN2, MAX2>

Source§

fn eq(&self, other: &ri16<MIN1, MAX1>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> PartialEq<ri16<MIN1, MAX1>> for ri32<MIN2, MAX2>

Source§

fn eq(&self, other: &ri16<MIN1, MAX1>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> PartialEq<ri16<MIN1, MAX1>> for ri64<MIN2, MAX2>

Source§

fn eq(&self, other: &ri16<MIN1, MAX1>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> PartialEq<ri16<MIN1, MAX1>> for ri8<MIN2, MAX2>

Source§

fn eq(&self, other: &ri16<MIN1, MAX1>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> PartialEq<ri16<MIN2, MAX2>> for ri16<MIN1, MAX1>

Source§

fn eq(&self, other: &ri16<MIN2, MAX2>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> PartialEq<ri32<MIN1, MAX1>> for ri16<MIN2, MAX2>

Source§

fn eq(&self, other: &ri32<MIN1, MAX1>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> PartialEq<ri64<MIN1, MAX1>> for ri16<MIN2, MAX2>

Source§

fn eq(&self, other: &ri64<MIN1, MAX1>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> PartialEq<ri8<MIN1, MAX1>> for ri16<MIN2, MAX2>

Source§

fn eq(&self, other: &ri8<MIN1, MAX1>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<const MIN: i128, const MAX: i128> PartialOrd<Constant> for ri16<MIN, MAX>

Source§

fn partial_cmp(&self, other: &Constant) -> 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

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

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

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

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

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> PartialOrd<ri128<MIN1, MAX1>> for ri16<MIN2, MAX2>

Source§

fn partial_cmp(&self, other: &ri128<MIN1, MAX1>) -> 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

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

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

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

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

impl<const MIN: i128, const MAX: i128> PartialOrd<ri16<MIN, MAX>> for Constant

Source§

fn partial_cmp(&self, other: &ri16<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

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

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

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

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

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> PartialOrd<ri16<MIN1, MAX1>> for ri128<MIN2, MAX2>

Source§

fn partial_cmp(&self, other: &ri16<MIN1, MAX1>) -> 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

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

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

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

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

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> PartialOrd<ri16<MIN1, MAX1>> for ri32<MIN2, MAX2>

Source§

fn partial_cmp(&self, other: &ri16<MIN1, MAX1>) -> 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

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

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

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

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

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> PartialOrd<ri16<MIN1, MAX1>> for ri64<MIN2, MAX2>

Source§

fn partial_cmp(&self, other: &ri16<MIN1, MAX1>) -> 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

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

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

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

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

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> PartialOrd<ri16<MIN1, MAX1>> for ri8<MIN2, MAX2>

Source§

fn partial_cmp(&self, other: &ri16<MIN1, MAX1>) -> 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

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

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

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

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

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> PartialOrd<ri16<MIN2, MAX2>> for ri16<MIN1, MAX1>

Source§

fn partial_cmp(&self, other: &ri16<MIN2, MAX2>) -> 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

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

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

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

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

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> PartialOrd<ri32<MIN1, MAX1>> for ri16<MIN2, MAX2>

Source§

fn partial_cmp(&self, other: &ri32<MIN1, MAX1>) -> 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

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

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

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

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

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> PartialOrd<ri64<MIN1, MAX1>> for ri16<MIN2, MAX2>

Source§

fn partial_cmp(&self, other: &ri64<MIN1, MAX1>) -> 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

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

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

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

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

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> PartialOrd<ri8<MIN1, MAX1>> for ri16<MIN2, MAX2>

Source§

fn partial_cmp(&self, other: &ri8<MIN1, MAX1>) -> 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

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

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

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

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

impl<const MIN: i128, const MAX: i128> RFrom<Constant> for ri16<MIN, MAX>

Source§

fn rfrom(c: Constant) -> Self

Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> RFrom<ri128<MIN1, MAX1>> for ri16<MIN2, MAX2>

Source§

fn rfrom(r: ri128<MIN1, MAX1>) -> Self

Source§

impl<const MIN: i128, const MAX: i128> RFrom<ri16<MIN, MAX>> for i128

Source§

fn rfrom(r: ri16<MIN, MAX>) -> i128

Source§

impl<const MIN: i128, const MAX: i128> RFrom<ri16<MIN, MAX>> for i16

Source§

fn rfrom(r: ri16<MIN, MAX>) -> i16

Source§

impl<const MIN: i128, const MAX: i128> RFrom<ri16<MIN, MAX>> for i32

Source§

fn rfrom(r: ri16<MIN, MAX>) -> i32

Source§

impl<const MIN: i128, const MAX: i128> RFrom<ri16<MIN, MAX>> for i64

Source§

fn rfrom(r: ri16<MIN, MAX>) -> i64

Source§

impl<const MIN: i128, const MAX: i128> RFrom<ri16<MIN, MAX>> for i8

Source§

fn rfrom(r: ri16<MIN, MAX>) -> i8

Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> RFrom<ri16<MIN1, MAX1>> for ri128<MIN2, MAX2>

Source§

fn rfrom(r: ri16<MIN1, MAX1>) -> Self

Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> RFrom<ri16<MIN1, MAX1>> for ri16<MIN2, MAX2>

Source§

fn rfrom(r: ri16<MIN1, MAX1>) -> Self

Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> RFrom<ri16<MIN1, MAX1>> for ri32<MIN2, MAX2>

Source§

fn rfrom(r: ri16<MIN1, MAX1>) -> Self

Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> RFrom<ri16<MIN1, MAX1>> for ri64<MIN2, MAX2>

Source§

fn rfrom(r: ri16<MIN1, MAX1>) -> Self

Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> RFrom<ri16<MIN1, MAX1>> for ri8<MIN2, MAX2>

Source§

fn rfrom(r: ri16<MIN1, MAX1>) -> Self

Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> RFrom<ri32<MIN1, MAX1>> for ri16<MIN2, MAX2>

Source§

fn rfrom(r: ri32<MIN1, MAX1>) -> Self

Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> RFrom<ri64<MIN1, MAX1>> for ri16<MIN2, MAX2>

Source§

fn rfrom(r: ri64<MIN1, MAX1>) -> Self

Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> RFrom<ri8<MIN1, MAX1>> for ri16<MIN2, MAX2>

Source§

fn rfrom(r: ri8<MIN1, MAX1>) -> Self

Source§

impl<const MIN: i128, const MAX: i128> Rem<Constant> for ri16<MIN, MAX>

Source§

type Output = ri16<MIN, MAX>

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> Rem<ri128<MIN1, MAX1>> for ri16<MIN2, MAX2>

Source§

type Output = ri16<MIN2, MAX2>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: ri128<MIN1, MAX1>) -> Self::Output

Performs the % operation. Read more
Source§

impl<const MIN: i128, const MAX: i128> Rem<ri16<MIN, MAX>> for Constant

Source§

type Output = ri16<MIN, MAX>

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> Rem<ri16<MIN1, MAX1>> for ri128<MIN2, MAX2>

Source§

type Output = ri128<MIN2, MAX2>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: ri16<MIN1, MAX1>) -> Self::Output

Performs the % operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> Rem<ri16<MIN1, MAX1>> for ri32<MIN2, MAX2>

Source§

type Output = ri32<MIN2, MAX2>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: ri16<MIN1, MAX1>) -> Self::Output

Performs the % operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> Rem<ri16<MIN1, MAX1>> for ri64<MIN2, MAX2>

Source§

type Output = ri64<MIN2, MAX2>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: ri16<MIN1, MAX1>) -> Self::Output

Performs the % operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> Rem<ri16<MIN1, MAX1>> for ri8<MIN2, MAX2>

Source§

type Output = ri8<MIN2, MAX2>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: ri16<MIN1, MAX1>) -> Self::Output

Performs the % operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> Rem<ri16<MIN2, MAX2>> for ri16<MIN1, MAX1>

Source§

type Output = ri16<MIN1, MAX1>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: ri16<MIN2, MAX2>) -> Self::Output

Performs the % operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> Rem<ri32<MIN1, MAX1>> for ri16<MIN2, MAX2>

Source§

type Output = ri16<MIN2, MAX2>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: ri32<MIN1, MAX1>) -> Self::Output

Performs the % operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> Rem<ri64<MIN1, MAX1>> for ri16<MIN2, MAX2>

Source§

type Output = ri16<MIN2, MAX2>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: ri64<MIN1, MAX1>) -> Self::Output

Performs the % operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> Rem<ri8<MIN1, MAX1>> for ri16<MIN2, MAX2>

Source§

type Output = ri16<MIN2, MAX2>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: ri8<MIN1, MAX1>) -> Self::Output

Performs the % operation. Read more
Source§

impl<const MIN: i128, const MAX: i128> RemAssign<Constant> for ri16<MIN, MAX>

Source§

fn rem_assign(&mut self, rhs: Constant)

Performs the %= operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> RemAssign<ri128<MIN1, MAX1>> for ri16<MIN2, MAX2>

Source§

fn rem_assign(&mut self, rhs: ri128<MIN1, MAX1>)

Performs the %= operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> RemAssign<ri16<MIN1, MAX1>> for ri128<MIN2, MAX2>

Source§

fn rem_assign(&mut self, rhs: ri16<MIN1, MAX1>)

Performs the %= operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> RemAssign<ri16<MIN1, MAX1>> for ri32<MIN2, MAX2>

Source§

fn rem_assign(&mut self, rhs: ri16<MIN1, MAX1>)

Performs the %= operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> RemAssign<ri16<MIN1, MAX1>> for ri64<MIN2, MAX2>

Source§

fn rem_assign(&mut self, rhs: ri16<MIN1, MAX1>)

Performs the %= operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> RemAssign<ri16<MIN1, MAX1>> for ri8<MIN2, MAX2>

Source§

fn rem_assign(&mut self, rhs: ri16<MIN1, MAX1>)

Performs the %= operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> RemAssign<ri16<MIN2, MAX2>> for ri16<MIN1, MAX1>

Source§

fn rem_assign(&mut self, rhs: ri16<MIN2, MAX2>)

Performs the %= operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> RemAssign<ri32<MIN1, MAX1>> for ri16<MIN2, MAX2>

Source§

fn rem_assign(&mut self, rhs: ri32<MIN1, MAX1>)

Performs the %= operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> RemAssign<ri64<MIN1, MAX1>> for ri16<MIN2, MAX2>

Source§

fn rem_assign(&mut self, rhs: ri64<MIN1, MAX1>)

Performs the %= operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> RemAssign<ri8<MIN1, MAX1>> for ri16<MIN2, MAX2>

Source§

fn rem_assign(&mut self, rhs: ri8<MIN1, MAX1>)

Performs the %= operation. Read more
Source§

impl<const MIN: i128, const MAX: i128> Sub<Constant> for ri16<MIN, MAX>

Source§

type Output = ri16<MIN, MAX>

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> Sub<ri128<MIN1, MAX1>> for ri16<MIN2, MAX2>

Source§

type Output = ri16<MIN2, MAX2>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: ri128<MIN1, MAX1>) -> Self::Output

Performs the - operation. Read more
Source§

impl<const MIN: i128, const MAX: i128> Sub<ri16<MIN, MAX>> for Constant

Source§

type Output = ri16<MIN, MAX>

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> Sub<ri16<MIN1, MAX1>> for ri128<MIN2, MAX2>

Source§

type Output = ri128<MIN2, MAX2>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: ri16<MIN1, MAX1>) -> Self::Output

Performs the - operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> Sub<ri16<MIN1, MAX1>> for ri32<MIN2, MAX2>

Source§

type Output = ri32<MIN2, MAX2>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: ri16<MIN1, MAX1>) -> Self::Output

Performs the - operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> Sub<ri16<MIN1, MAX1>> for ri64<MIN2, MAX2>

Source§

type Output = ri64<MIN2, MAX2>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: ri16<MIN1, MAX1>) -> Self::Output

Performs the - operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> Sub<ri16<MIN1, MAX1>> for ri8<MIN2, MAX2>

Source§

type Output = ri8<MIN2, MAX2>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: ri16<MIN1, MAX1>) -> Self::Output

Performs the - operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> Sub<ri16<MIN2, MAX2>> for ri16<MIN1, MAX1>

Source§

type Output = ri16<MIN1, MAX1>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: ri16<MIN2, MAX2>) -> Self::Output

Performs the - operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> Sub<ri32<MIN1, MAX1>> for ri16<MIN2, MAX2>

Source§

type Output = ri16<MIN2, MAX2>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: ri32<MIN1, MAX1>) -> Self::Output

Performs the - operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> Sub<ri64<MIN1, MAX1>> for ri16<MIN2, MAX2>

Source§

type Output = ri16<MIN2, MAX2>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: ri64<MIN1, MAX1>) -> Self::Output

Performs the - operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> Sub<ri8<MIN1, MAX1>> for ri16<MIN2, MAX2>

Source§

type Output = ri16<MIN2, MAX2>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: ri8<MIN1, MAX1>) -> Self::Output

Performs the - operation. Read more
Source§

impl<const MIN: i128, const MAX: i128> SubAssign<Constant> for ri16<MIN, MAX>

Source§

fn sub_assign(&mut self, rhs: Constant)

Performs the -= operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> SubAssign<ri128<MIN1, MAX1>> for ri16<MIN2, MAX2>

Source§

fn sub_assign(&mut self, rhs: ri128<MIN1, MAX1>)

Performs the -= operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> SubAssign<ri16<MIN1, MAX1>> for ri128<MIN2, MAX2>

Source§

fn sub_assign(&mut self, rhs: ri16<MIN1, MAX1>)

Performs the -= operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> SubAssign<ri16<MIN1, MAX1>> for ri32<MIN2, MAX2>

Source§

fn sub_assign(&mut self, rhs: ri16<MIN1, MAX1>)

Performs the -= operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> SubAssign<ri16<MIN1, MAX1>> for ri64<MIN2, MAX2>

Source§

fn sub_assign(&mut self, rhs: ri16<MIN1, MAX1>)

Performs the -= operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> SubAssign<ri16<MIN1, MAX1>> for ri8<MIN2, MAX2>

Source§

fn sub_assign(&mut self, rhs: ri16<MIN1, MAX1>)

Performs the -= operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> SubAssign<ri16<MIN2, MAX2>> for ri16<MIN1, MAX1>

Source§

fn sub_assign(&mut self, rhs: ri16<MIN2, MAX2>)

Performs the -= operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> SubAssign<ri32<MIN1, MAX1>> for ri16<MIN2, MAX2>

Source§

fn sub_assign(&mut self, rhs: ri32<MIN1, MAX1>)

Performs the -= operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> SubAssign<ri64<MIN1, MAX1>> for ri16<MIN2, MAX2>

Source§

fn sub_assign(&mut self, rhs: ri64<MIN1, MAX1>)

Performs the -= operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> SubAssign<ri8<MIN1, MAX1>> for ri16<MIN2, MAX2>

Source§

fn sub_assign(&mut self, rhs: ri8<MIN1, MAX1>)

Performs the -= operation. Read more
Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> TryRFrom<ri128<MIN1, MAX1>> for ri16<MIN2, MAX2>

Source§

fn try_rfrom(what: &'static str, r: ri128<MIN1, MAX1>) -> Result<Self, Error>

Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> TryRFrom<ri16<MIN1, MAX1>> for ri128<MIN2, MAX2>

Source§

fn try_rfrom(what: &'static str, r: ri16<MIN1, MAX1>) -> Result<Self, Error>

Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> TryRFrom<ri16<MIN1, MAX1>> for ri16<MIN2, MAX2>

Source§

fn try_rfrom(what: &'static str, r: ri16<MIN1, MAX1>) -> Result<Self, Error>

Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> TryRFrom<ri16<MIN1, MAX1>> for ri32<MIN2, MAX2>

Source§

fn try_rfrom(what: &'static str, r: ri16<MIN1, MAX1>) -> Result<Self, Error>

Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> TryRFrom<ri16<MIN1, MAX1>> for ri64<MIN2, MAX2>

Source§

fn try_rfrom(what: &'static str, r: ri16<MIN1, MAX1>) -> Result<Self, Error>

Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> TryRFrom<ri16<MIN1, MAX1>> for ri8<MIN2, MAX2>

Source§

fn try_rfrom(what: &'static str, r: ri16<MIN1, MAX1>) -> Result<Self, Error>

Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> TryRFrom<ri32<MIN1, MAX1>> for ri16<MIN2, MAX2>

Source§

fn try_rfrom(what: &'static str, r: ri32<MIN1, MAX1>) -> Result<Self, Error>

Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> TryRFrom<ri64<MIN1, MAX1>> for ri16<MIN2, MAX2>

Source§

fn try_rfrom(what: &'static str, r: ri64<MIN1, MAX1>) -> Result<Self, Error>

Source§

impl<const MIN1: i128, const MAX1: i128, const MIN2: i128, const MAX2: i128> TryRFrom<ri8<MIN1, MAX1>> for ri16<MIN2, MAX2>

Source§

fn try_rfrom(what: &'static str, r: ri8<MIN1, MAX1>) -> Result<Self, Error>

Source§

impl<const MIN: i128, const MAX: i128> Copy for ri16<MIN, MAX>

Source§

impl<const MIN: i128, const MAX: i128> Eq for ri16<MIN, MAX>

Auto Trait Implementations§

§

impl<const MIN: i128, const MAX: i128> Freeze for ri16<MIN, MAX>

§

impl<const MIN: i128, const MAX: i128> RefUnwindSafe for ri16<MIN, MAX>

§

impl<const MIN: i128, const MAX: i128> Send for ri16<MIN, MAX>

§

impl<const MIN: i128, const MAX: i128> Sync for ri16<MIN, MAX>

§

impl<const MIN: i128, const MAX: i128> Unpin for ri16<MIN, MAX>

§

impl<const MIN: i128, const MAX: i128> UnwindSafe for ri16<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, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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> ToOwned for T
where T: Clone,

Source§

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 T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
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.