Struct ranged_type::RangedI32 [−][src]
Implementations
impl<const START: i32, const END: i32> RangedI32<START, END>
[src]
#[must_use]pub fn checked_abs(self) -> Option<Self>
[src]
#[must_use]pub fn checked_add(self, rhs: i32) -> Option<Self>
[src]
#[must_use]pub fn checked_div(self, rhs: i32) -> Option<Self>
[src]
#[must_use]pub fn checked_div_euclid(self, rhs: i32) -> Option<Self>
[src]
#[must_use]pub fn checked_mul(self, rhs: i32) -> Option<Self>
[src]
#[must_use]pub fn checked_neg(self) -> Option<Self>
[src]
#[must_use]pub fn checked_pow(self, rhs: u32) -> Option<Self>
[src]
#[must_use]pub fn checked_rem(self, rhs: i32) -> Option<Self>
[src]
#[must_use]pub fn checked_rem_euclid(self, rhs: i32) -> Option<Self>
[src]
#[must_use]pub fn checked_shl(self, rhs: u32) -> Option<Self>
[src]
#[must_use]pub fn checked_shr(self, rhs: u32) -> Option<Self>
[src]
#[must_use]pub fn checked_sub(self, rhs: i32) -> Option<Self>
[src]
impl<const START: i32, const END: i32> RangedI32<START, END>
[src]
impl<const START: i32, const END: i32> RangedI32<START, END>
[src]
impl<const START: i32, const END: i32> RangedI32<START, END>
[src]
#[must_use]pub fn wrapping_abs(self) -> Self
[src]
#[must_use]pub fn wrapping_add(self, rhs: i32) -> Self
[src]
#[must_use]pub fn wrapping_div(self, rhs: i32) -> Self
[src]
#[must_use]pub fn wrapping_div_euclid(self, rhs: i32) -> Self
[src]
#[must_use]pub fn wrapping_mul(self, rhs: i32) -> Self
[src]
#[must_use]pub fn wrapping_neg(self) -> Self
[src]
#[must_use]pub fn wrapping_pow(self, rhs: u32) -> Self
[src]
#[must_use]pub fn wrapping_rem(self, rhs: i32) -> Self
[src]
#[must_use]pub fn wrapping_rem_euclid(self, rhs: i32) -> Self
[src]
#[must_use]pub fn wrapping_shl(self, rhs: u32) -> Self
[src]
#[must_use]pub fn wrapping_shr(self, rhs: u32) -> Self
[src]
#[must_use]pub fn wrapping_sub(self, rhs: i32) -> Self
[src]
impl<const START: i32, const END: i32> RangedI32<START, END>
[src]
Trait Implementations
impl<const START: i32, const END: i32, const START_RHS: i32, const END_RHS: i32> Add<RangedI32<START_RHS, END_RHS>> for RangedI32<START, END> where
RangedI32<{ START + START_RHS }, { END + END_RHS - 1 }>: ,
[src]
RangedI32<{ START + START_RHS }, { END + END_RHS - 1 }>: ,
type Output = RangedI32<{ START + START_RHS }, { END + END_RHS - 1 }>
The resulting type after applying the +
operator.
fn add(self, rhs: RangedI32<START_RHS, END_RHS>) -> Self::Output
[src]
impl<const START: i32, const END: i32> Add<i32> for RangedI32<START, END>
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: i32) -> Self::Output
[src]
impl<const START: i32, const END: i32, const START_RHS: i32, const END_RHS: i32> AddAssign<RangedI32<START_RHS, END_RHS>> for RangedI32<START, END>
[src]
fn add_assign(&mut self, rhs: RangedI32<START_RHS, END_RHS>)
[src]
impl<const START: i32, const END: i32> AddAssign<i32> for RangedI32<START, END>
[src]
fn add_assign(&mut self, rhs: i32)
[src]
impl<const START: i32, const END: i32> Check<i32> for RangedI32<START, END>
[src]
type Output = Option<Self>
fn checked_abs(self) -> Self::Output
[src]
fn checked_add(self, rhs: i32) -> Self::Output
[src]
fn checked_div(self, rhs: i32) -> Self::Output
[src]
fn checked_div_euclid(self, rhs: i32) -> Self::Output
[src]
fn checked_mul(self, rhs: i32) -> Self::Output
[src]
fn checked_neg(self) -> Self::Output
[src]
fn checked_pow(self, rhs: u32) -> Self::Output
[src]
fn checked_rem(self, rhs: i32) -> Self::Output
[src]
fn checked_rem_euclid(self, rhs: i32) -> Self::Output
[src]
fn checked_shl(self, rhs: u32) -> Self::Output
[src]
fn checked_shr(self, rhs: u32) -> Self::Output
[src]
fn checked_sub(self, rhs: i32) -> Self::Output
[src]
impl<const START: i32, const END: i32> Debug for RangedI32<START, END>
[src]
impl<const START: i32, const END: i32> Eq for RangedI32<START, END>
[src]
impl<const START: i32, const END: i32> Overflow<i32> for RangedI32<START, END>
[src]
type Output = (Self, bool)
fn overflowing_abs(self) -> Self::Output
[src]
#[must_use]fn overflowing_add(self, rhs: i32) -> Self::Output
[src]
fn overflowing_div(self, rhs: i32) -> Self::Output
[src]
fn overflowing_div_euclid(self, rhs: i32) -> Self::Output
[src]
fn overflowing_mul(self, rhs: i32) -> Self::Output
[src]
fn overflowing_neg(self) -> Self::Output
[src]
fn overflowing_pow(self, rhs: u32) -> Self::Output
[src]
fn overflowing_rem(self, rhs: i32) -> Self::Output
[src]
fn overflowing_rem_euclid(self, rhs: i32) -> Self::Output
[src]
fn overflowing_shl(self, rhs: u32) -> Self::Output
[src]
fn overflowing_shr(self, rhs: u32) -> Self::Output
[src]
fn overflowing_sub(self, rhs: i32) -> Self::Output
[src]
impl<const START: i32, const END: i32> PartialEq<RangedI32<START, END>> for RangedI32<START, END>
[src]
impl<const START: i32, const END: i32, const START_RHS: i32, const END_RHS: i32> Sub<RangedI32<START_RHS, END_RHS>> for RangedI32<START, END> where
RangedI32<{ START - END_RHS + 1 }, { END - START_RHS - 1 }>: ,
[src]
RangedI32<{ START - END_RHS + 1 }, { END - START_RHS - 1 }>: ,
type Output = RangedI32<{ START - END_RHS + 1 }, { END - START_RHS - 1 }>
The resulting type after applying the -
operator.
fn sub(self, rhs: RangedI32<START_RHS, END_RHS>) -> Self::Output
[src]
impl<const START: i32, const END: i32> Sub<i32> for RangedI32<START, END>
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, rhs: i32) -> Self::Output
[src]
impl<const START: i32, const END: i32, const START_RHS: i32, const END_RHS: i32> SubAssign<RangedI32<START_RHS, END_RHS>> for RangedI32<START, END>
[src]
fn sub_assign(&mut self, rhs: RangedI32<START_RHS, END_RHS>)
[src]
impl<const START: i32, const END: i32> SubAssign<i32> for RangedI32<START, END>
[src]
fn sub_assign(&mut self, rhs: i32)
[src]
impl<const START: i32, const END: i32> Wrap<i32> for RangedI32<START, END>
[src]
type Output = Self
fn wrapping_abs(self) -> Self::Output
[src]
fn wrapping_add(self, rhs: i32) -> Self::Output
[src]
fn wrapping_div(self, rhs: i32) -> Self::Output
[src]
fn wrapping_div_euclid(self, rhs: i32) -> Self::Output
[src]
fn wrapping_mul(self, rhs: i32) -> Self::Output
[src]
fn wrapping_neg(self) -> Self::Output
[src]
fn wrapping_pow(self, rhs: u32) -> Self::Output
[src]
fn wrapping_rem(self, rhs: i32) -> Self::Output
[src]
fn wrapping_rem_euclid(self, rhs: i32) -> Self::Output
[src]
fn wrapping_shl(self, rhs: u32) -> Self::Output
[src]
fn wrapping_shr(self, rhs: u32) -> Self::Output
[src]
fn wrapping_sub(self, rhs: i32) -> Self::Output
[src]
Auto Trait Implementations
impl<const START: i32, const END: i32> RefUnwindSafe for RangedI32<START, END>
[src]
impl<const START: i32, const END: i32> Send for RangedI32<START, END>
[src]
impl<const START: i32, const END: i32> Sync for RangedI32<START, END>
[src]
impl<const START: i32, const END: i32> Unpin for RangedI32<START, END>
[src]
impl<const START: i32, const END: i32> UnwindSafe for RangedI32<START, END>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,