Struct num_modular::ReducedInt
source · 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> + 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>
§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§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>
§type Output = ReducedInt<T, R>
type Output = ReducedInt<T, R>
The resulting type after applying the
+
operator.source§impl<T: PartialEq, R: Reducer<T>> Add<ReducedInt<T, R>> for ReducedInt<T, R>
impl<T: PartialEq, R: Reducer<T>> Add<ReducedInt<T, R>> for ReducedInt<T, R>
source§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 copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§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>
§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§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>
§type Output = ReducedInt<T, R>
type Output = ReducedInt<T, R>
The resulting type after applying the
/
operator.source§impl<T: PartialEq, R: Reducer<T>> Div<ReducedInt<T, R>> for ReducedInt<T, R>
impl<T: PartialEq, R: Reducer<T>> Div<ReducedInt<T, R>> for ReducedInt<T, R>
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> + 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>
§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§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>
§type Output = ReducedInt<T, R>
type Output = ReducedInt<T, R>
The resulting type after applying the
*
operator.source§impl<T: PartialEq, R: Reducer<T>> Mul<ReducedInt<T, R>> for ReducedInt<T, R>
impl<T: PartialEq, R: Reducer<T>> Mul<ReducedInt<T, R>> for ReducedInt<T, R>
source§impl<T: PartialEq, R: Reducer<T>> PartialEq<ReducedInt<T, R>> for ReducedInt<T, R>
impl<T: PartialEq, R: Reducer<T>> PartialEq<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>
§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§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>
§type Output = ReducedInt<T, R>
type Output = ReducedInt<T, R>
The resulting type after applying the
-
operator.source§impl<T: PartialEq, R: Reducer<T>> Sub<ReducedInt<T, R>> for ReducedInt<T, R>
impl<T: PartialEq, R: Reducer<T>> Sub<ReducedInt<T, R>> for ReducedInt<T, R>
impl<T: Copy, R: Copy + Reducer<T>> Copy for ReducedInt<T, R>
Auto Trait Implementations§
impl<T, R> RefUnwindSafe for ReducedInt<T, R>where R: RefUnwindSafe, T: RefUnwindSafe,
impl<T, R> Send for ReducedInt<T, R>where R: Send, T: Send,
impl<T, R> Sync for ReducedInt<T, R>where R: Sync, T: Sync,
impl<T, R> Unpin for ReducedInt<T, R>where R: Unpin, T: Unpin,
impl<T, R> UnwindSafe for ReducedInt<T, R>where R: UnwindSafe, T: 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