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
sourceimpl<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>
sourceimpl<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.
sourcefn add(self, rhs: &ReducedInt<T, R>) -> Self::Output
fn add(self, rhs: &ReducedInt<T, R>) -> Self::Output
Performs the +
operation. Read more
sourceimpl<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>
sourceimpl<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.
sourcefn add(self, rhs: ReducedInt<T, R>) -> Self::Output
fn add(self, rhs: ReducedInt<T, R>) -> Self::Output
Performs the +
operation. Read more
sourceimpl<T: PartialEq, R: Reducer<T>> Add<T> for ReducedInt<T, R>
impl<T: PartialEq, R: Reducer<T>> Add<T> for ReducedInt<T, R>
sourceimpl<T: Clone, R: Clone + Reducer<T>> Clone for ReducedInt<T, R>
impl<T: Clone, R: Clone + Reducer<T>> Clone for ReducedInt<T, R>
sourcefn clone(&self) -> ReducedInt<T, R>
fn clone(&self) -> ReducedInt<T, R>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<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>
sourceimpl<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.
sourcefn div(self, rhs: &ReducedInt<T, R>) -> Self::Output
fn div(self, rhs: &ReducedInt<T, R>) -> Self::Output
Performs the /
operation. Read more
sourceimpl<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>
sourceimpl<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.
sourcefn div(self, rhs: ReducedInt<T, R>) -> Self::Output
fn div(self, rhs: ReducedInt<T, R>) -> Self::Output
Performs the /
operation. Read more
sourceimpl<T: PartialEq, R: Reducer<T>> Inv for ReducedInt<T, R>
impl<T: PartialEq, R: Reducer<T>> Inv for ReducedInt<T, R>
sourceimpl<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>
type Base = T
type Base = T
The underlying representation type of the integer
sourceimpl<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>
sourceimpl<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.
sourcefn mul(self, rhs: &ReducedInt<T, R>) -> Self::Output
fn mul(self, rhs: &ReducedInt<T, R>) -> Self::Output
Performs the *
operation. Read more
sourceimpl<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>
sourceimpl<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.
sourcefn mul(self, rhs: ReducedInt<T, R>) -> Self::Output
fn mul(self, rhs: ReducedInt<T, R>) -> Self::Output
Performs the *
operation. Read more
sourceimpl<T: PartialEq, R: Reducer<T>> Mul<T> for ReducedInt<T, R>
impl<T: PartialEq, R: Reducer<T>> Mul<T> for ReducedInt<T, R>
sourceimpl<T: PartialEq, R: Reducer<T>> Neg for ReducedInt<T, R>
impl<T: PartialEq, R: Reducer<T>> Neg for ReducedInt<T, R>
sourceimpl<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>
sourceimpl<T: PartialEq, R: Reducer<T>> Pow<T> for ReducedInt<T, R>
impl<T: PartialEq, R: Reducer<T>> Pow<T> for ReducedInt<T, R>
sourceimpl<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>
sourceimpl<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.
sourcefn sub(self, rhs: &ReducedInt<T, R>) -> Self::Output
fn sub(self, rhs: &ReducedInt<T, R>) -> Self::Output
Performs the -
operation. Read more
sourceimpl<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>
sourceimpl<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.
sourcefn sub(self, rhs: ReducedInt<T, R>) -> Self::Output
fn sub(self, rhs: ReducedInt<T, R>) -> Self::Output
Performs the -
operation. Read more
sourceimpl<T: PartialEq, R: Reducer<T>> Sub<T> for ReducedInt<T, R>
impl<T: PartialEq, R: Reducer<T>> Sub<T> 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more