Struct ranged_type::RangedI32[][src]

pub struct RangedI32<const START: i32, const END: i32> { /* fields omitted */ }

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]

#[must_use]pub fn overflowing_add(self, rhs: i32) -> (Self, bool)[src]

impl<const START: i32, const END: i32> RangedI32<START, END>[src]

#[must_use]pub fn overflowing_sub(self, rhs: i32) -> (Self, bool)[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]

#[must_use]pub const fn new(value: i32) -> Option<Self>[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]

type Output = RangedI32<{ START + START_RHS }, { END + END_RHS - 1 }>

The resulting type after applying the + operator.

impl<const START: i32, const END: i32> Add<i32> for RangedI32<START, END>[src]

type Output = Self

The resulting type after applying the + operator.

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]

impl<const START: i32, const END: i32> AddAssign<i32> for RangedI32<START, END>[src]

impl<const START: i32, const END: i32> Check<i32> for RangedI32<START, END>[src]

type Output = Option<Self>

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)

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]

type Output = RangedI32<{ START - END_RHS + 1 }, { END - START_RHS - 1 }>

The resulting type after applying the - operator.

impl<const START: i32, const END: i32> Sub<i32> for RangedI32<START, END>[src]

type Output = Self

The resulting type after applying the - operator.

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]

impl<const START: i32, const END: i32> SubAssign<i32> for RangedI32<START, END>[src]

impl<const START: i32, const END: i32> Wrap<i32> for RangedI32<START, END>[src]

type Output = Self

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.