pub struct ReducedInt<T, R: Reducer<T>> { /* private fields */ }Expand description
An integer in a modulo ring
Implementations§
Trait Implementations§
Source§impl<T: PartialEq + Clone, R: Reducer<T>> Add<&ReducedInt<T, R>> for ReducedInt<T, R>
impl<T: PartialEq + Clone, R: Reducer<T>> Add<&ReducedInt<T, R>> for ReducedInt<T, R>
Source§impl<T: PartialEq + Clone, R: Reducer<T> + Clone> Add<&ReducedInt<T, R>> for &ReducedInt<T, R>
impl<T: PartialEq + Clone, R: Reducer<T> + Clone> Add<&ReducedInt<T, R>> for &ReducedInt<T, R>
Source§type Output = ReducedInt<T, R>
type Output = ReducedInt<T, R>
The resulting type after applying the
+ operator.Source§impl<T: PartialEq + Clone, R: Reducer<T>> Add<ReducedInt<T, R>> for &ReducedInt<T, R>
impl<T: PartialEq + Clone, R: Reducer<T>> Add<ReducedInt<T, R>> for &ReducedInt<T, R>
Source§type Output = ReducedInt<T, R>
type Output = ReducedInt<T, R>
The resulting type after applying the
+ operator.Source§impl<T, R: Reducer<T>> Add<T> for ReducedInt<T, R>
impl<T, R: Reducer<T>> Add<T> for ReducedInt<T, R>
Source§impl<T: PartialEq, R: Reducer<T>> AddAssign for ReducedInt<T, R>
impl<T: PartialEq, R: Reducer<T>> AddAssign for ReducedInt<T, R>
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+= operation. Read moreSource§impl<T: PartialEq, R: Reducer<T>> AddAssign<&ReducedInt<T, R>> for ReducedInt<T, R>
impl<T: PartialEq, R: Reducer<T>> AddAssign<&ReducedInt<T, R>> for ReducedInt<T, R>
Source§fn add_assign(&mut self, rhs: &Self)
fn add_assign(&mut self, rhs: &Self)
Performs the
+= operation. Read moreSource§impl<T: PartialEq + Clone, R: Reducer<T>> AddAssign<&T> for ReducedInt<T, R>
impl<T: PartialEq + Clone, R: Reducer<T>> AddAssign<&T> for ReducedInt<T, R>
Source§fn add_assign(&mut self, rhs: &T)
fn add_assign(&mut self, rhs: &T)
Performs the
+= operation. Read moreSource§impl<T, R: Reducer<T>> AddAssign<T> for ReducedInt<T, R>
impl<T, R: Reducer<T>> AddAssign<T> for ReducedInt<T, R>
Source§fn add_assign(&mut self, rhs: T)
fn add_assign(&mut self, rhs: T)
Performs the
+= operation. Read moreSource§impl<T: Clone, R: Clone + Reducer<T>> Clone for ReducedInt<T, R>
impl<T: Clone, R: Clone + Reducer<T>> Clone for ReducedInt<T, R>
Source§fn clone(&self) -> ReducedInt<T, R>
fn clone(&self) -> ReducedInt<T, R>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<T: Copy, R: Copy + Reducer<T>> Copy for ReducedInt<T, R>
Source§impl<T: PartialEq + Clone, R: Reducer<T>> Div<&ReducedInt<T, R>> for ReducedInt<T, R>
impl<T: PartialEq + Clone, R: Reducer<T>> Div<&ReducedInt<T, R>> for ReducedInt<T, R>
Source§impl<T: PartialEq + Clone, R: Reducer<T> + Clone> Div<&ReducedInt<T, R>> for &ReducedInt<T, R>
impl<T: PartialEq + Clone, R: Reducer<T> + Clone> Div<&ReducedInt<T, R>> for &ReducedInt<T, R>
Source§type Output = ReducedInt<T, R>
type Output = ReducedInt<T, R>
The resulting type after applying the
/ operator.Source§impl<T: PartialEq + Clone, R: Reducer<T>> Div<ReducedInt<T, R>> for &ReducedInt<T, R>
impl<T: PartialEq + Clone, R: Reducer<T>> Div<ReducedInt<T, R>> for &ReducedInt<T, R>
Source§type Output = ReducedInt<T, R>
type Output = ReducedInt<T, R>
The resulting type after applying the
/ operator.Source§impl<T: PartialEq, R: Reducer<T>> Inv for ReducedInt<T, R>
Available on crate feature num-traits only.
impl<T: PartialEq, R: Reducer<T>> Inv for ReducedInt<T, R>
Available on crate feature
num-traits only.Source§impl<T: PartialEq + Clone, R: Reducer<T> + Clone> Inv for &ReducedInt<T, R>
Available on crate feature num-traits only.
impl<T: PartialEq + Clone, R: Reducer<T> + Clone> Inv for &ReducedInt<T, R>
Available on crate feature
num-traits only.Source§impl<T: PartialEq + Clone, R: Reducer<T> + Clone> ModularInteger for ReducedInt<T, R>
impl<T: PartialEq + Clone, R: Reducer<T> + Clone> ModularInteger for ReducedInt<T, R>
Source§impl<T: PartialEq + Clone, R: Reducer<T>> Mul<&ReducedInt<T, R>> for ReducedInt<T, R>
impl<T: PartialEq + Clone, R: Reducer<T>> Mul<&ReducedInt<T, R>> for ReducedInt<T, R>
Source§impl<T: PartialEq + Clone, R: Reducer<T> + Clone> Mul<&ReducedInt<T, R>> for &ReducedInt<T, R>
impl<T: PartialEq + Clone, R: Reducer<T> + Clone> Mul<&ReducedInt<T, R>> for &ReducedInt<T, R>
Source§type Output = ReducedInt<T, R>
type Output = ReducedInt<T, R>
The resulting type after applying the
* operator.Source§impl<T: PartialEq + Clone, R: Reducer<T>> Mul<ReducedInt<T, R>> for &ReducedInt<T, R>
impl<T: PartialEq + Clone, R: Reducer<T>> Mul<ReducedInt<T, R>> for &ReducedInt<T, R>
Source§type Output = ReducedInt<T, R>
type Output = ReducedInt<T, R>
The resulting type after applying the
* operator.Source§impl<T, R: Reducer<T>> Mul<T> for ReducedInt<T, R>
impl<T, R: Reducer<T>> Mul<T> for ReducedInt<T, R>
Source§impl<T: PartialEq, R: Reducer<T>> MulAssign for ReducedInt<T, R>
impl<T: PartialEq, R: Reducer<T>> MulAssign for ReducedInt<T, R>
Source§fn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
Performs the
*= operation. Read moreSource§impl<T: PartialEq, R: Reducer<T>> MulAssign<&ReducedInt<T, R>> for ReducedInt<T, R>
impl<T: PartialEq, R: Reducer<T>> MulAssign<&ReducedInt<T, R>> for ReducedInt<T, R>
Source§fn mul_assign(&mut self, rhs: &Self)
fn mul_assign(&mut self, rhs: &Self)
Performs the
*= operation. Read moreSource§impl<T: PartialEq + Clone, R: Reducer<T>> MulAssign<&T> for ReducedInt<T, R>
impl<T: PartialEq + Clone, R: Reducer<T>> MulAssign<&T> for ReducedInt<T, R>
Source§fn mul_assign(&mut self, rhs: &T)
fn mul_assign(&mut self, rhs: &T)
Performs the
*= operation. Read moreSource§impl<T, R: Reducer<T>> MulAssign<T> for ReducedInt<T, R>
impl<T, R: Reducer<T>> MulAssign<T> for ReducedInt<T, R>
Source§fn mul_assign(&mut self, rhs: T)
fn mul_assign(&mut self, rhs: T)
Performs the
*= operation. Read moreSource§impl<T: PartialEq, R: Reducer<T>> Pow<T> for ReducedInt<T, R>
Available on crate feature num-traits only.
impl<T: PartialEq, R: Reducer<T>> Pow<T> for ReducedInt<T, R>
Available on crate feature
num-traits only.Source§impl<T: PartialEq + Clone, R: Reducer<T> + Clone> Pow<T> for &ReducedInt<T, R>
Available on crate feature num-traits only.
impl<T: PartialEq + Clone, R: Reducer<T> + Clone> Pow<T> for &ReducedInt<T, R>
Available on crate feature
num-traits only.Source§impl<T: PartialEq + Clone, R: Reducer<T>> Sub<&ReducedInt<T, R>> for ReducedInt<T, R>
impl<T: PartialEq + Clone, R: Reducer<T>> Sub<&ReducedInt<T, R>> for ReducedInt<T, R>
Source§impl<T: PartialEq + Clone, R: Reducer<T> + Clone> Sub<&ReducedInt<T, R>> for &ReducedInt<T, R>
impl<T: PartialEq + Clone, R: Reducer<T> + Clone> Sub<&ReducedInt<T, R>> for &ReducedInt<T, R>
Source§type Output = ReducedInt<T, R>
type Output = ReducedInt<T, R>
The resulting type after applying the
- operator.Source§impl<T: PartialEq + Clone, R: Reducer<T>> Sub<ReducedInt<T, R>> for &ReducedInt<T, R>
impl<T: PartialEq + Clone, R: Reducer<T>> Sub<ReducedInt<T, R>> for &ReducedInt<T, R>
Source§type Output = ReducedInt<T, R>
type Output = ReducedInt<T, R>
The resulting type after applying the
- operator.Source§impl<T, R: Reducer<T>> Sub<T> for ReducedInt<T, R>
impl<T, R: Reducer<T>> Sub<T> for ReducedInt<T, R>
Source§impl<T: PartialEq, R: Reducer<T>> SubAssign for ReducedInt<T, R>
impl<T: PartialEq, R: Reducer<T>> SubAssign for ReducedInt<T, R>
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-= operation. Read moreSource§impl<T: PartialEq, R: Reducer<T>> SubAssign<&ReducedInt<T, R>> for ReducedInt<T, R>
impl<T: PartialEq, R: Reducer<T>> SubAssign<&ReducedInt<T, R>> for ReducedInt<T, R>
Source§fn sub_assign(&mut self, rhs: &Self)
fn sub_assign(&mut self, rhs: &Self)
Performs the
-= operation. Read moreSource§impl<T: PartialEq + Clone, R: Reducer<T>> SubAssign<&T> for ReducedInt<T, R>
impl<T: PartialEq + Clone, R: Reducer<T>> SubAssign<&T> for ReducedInt<T, R>
Source§fn sub_assign(&mut self, rhs: &T)
fn sub_assign(&mut self, rhs: &T)
Performs the
-= operation. Read moreSource§impl<T, R: Reducer<T>> SubAssign<T> for ReducedInt<T, R>
impl<T, R: Reducer<T>> SubAssign<T> for ReducedInt<T, R>
Source§fn sub_assign(&mut self, rhs: T)
fn sub_assign(&mut self, rhs: T)
Performs the
-= operation. Read moreAuto Trait Implementations§
impl<T, R> Freeze for ReducedInt<T, R>
impl<T, R> RefUnwindSafe for ReducedInt<T, R>where
T: RefUnwindSafe,
R: RefUnwindSafe,
impl<T, R> Send for ReducedInt<T, R>
impl<T, R> Sync for ReducedInt<T, R>
impl<T, R> Unpin for ReducedInt<T, R>
impl<T, R> UnsafeUnpin for ReducedInt<T, R>where
T: UnsafeUnpin,
R: UnsafeUnpin,
impl<T, R> UnwindSafe for ReducedInt<T, R>where
T: UnwindSafe,
R: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more