Struct nekolib::math::StaticModInt
source · pub struct StaticModInt<M> { /* private fields */ }
Trait Implementations§
source§impl<'a, M: NttFriendly> Add<&'a StaticModInt<M>> for &'a Polynomial<M>
impl<'a, M: NttFriendly> Add<&'a StaticModInt<M>> for &'a Polynomial<M>
§type Output = Polynomial<M>
type Output = Polynomial<M>
The resulting type after applying the
+
operator.source§fn add(self, other: &'a StaticModInt<M>) -> Polynomial<M>
fn add(self, other: &'a StaticModInt<M>) -> Polynomial<M>
Performs the
+
operation. Read moresource§impl<'a, M: NttFriendly> Add<&'a StaticModInt<M>> for Polynomial<M>
impl<'a, M: NttFriendly> Add<&'a StaticModInt<M>> for Polynomial<M>
§type Output = Polynomial<M>
type Output = Polynomial<M>
The resulting type after applying the
+
operator.source§fn add(self, other: &'a StaticModInt<M>) -> Polynomial<M>
fn add(self, other: &'a StaticModInt<M>) -> Polynomial<M>
Performs the
+
operation. Read moresource§impl<M: Modulus> Add<&StaticModInt<M>> for &StaticModInt<M>
impl<M: Modulus> Add<&StaticModInt<M>> for &StaticModInt<M>
§type Output = StaticModInt<M>
type Output = StaticModInt<M>
The resulting type after applying the
+
operator.source§fn add(self, rhs: &StaticModInt<M>) -> StaticModInt<M>
fn add(self, rhs: &StaticModInt<M>) -> StaticModInt<M>
Performs the
+
operation. Read moresource§impl<M: Modulus> Add<&StaticModInt<M>> for StaticModInt<M>
impl<M: Modulus> Add<&StaticModInt<M>> for StaticModInt<M>
§type Output = StaticModInt<M>
type Output = StaticModInt<M>
The resulting type after applying the
+
operator.source§fn add(self, rhs: &StaticModInt<M>) -> StaticModInt<M>
fn add(self, rhs: &StaticModInt<M>) -> StaticModInt<M>
Performs the
+
operation. Read moresource§impl<'a, M: NttFriendly> Add<StaticModInt<M>> for &'a Polynomial<M>
impl<'a, M: NttFriendly> Add<StaticModInt<M>> for &'a Polynomial<M>
§type Output = Polynomial<M>
type Output = Polynomial<M>
The resulting type after applying the
+
operator.source§fn add(self, other: StaticModInt<M>) -> Polynomial<M>
fn add(self, other: StaticModInt<M>) -> Polynomial<M>
Performs the
+
operation. Read moresource§impl<M: Modulus> Add<StaticModInt<M>> for &StaticModInt<M>
impl<M: Modulus> Add<StaticModInt<M>> for &StaticModInt<M>
§type Output = StaticModInt<M>
type Output = StaticModInt<M>
The resulting type after applying the
+
operator.source§fn add(self, rhs: StaticModInt<M>) -> StaticModInt<M>
fn add(self, rhs: StaticModInt<M>) -> StaticModInt<M>
Performs the
+
operation. Read moresource§impl<M: NttFriendly> Add<StaticModInt<M>> for Polynomial<M>
impl<M: NttFriendly> Add<StaticModInt<M>> for Polynomial<M>
§type Output = Polynomial<M>
type Output = Polynomial<M>
The resulting type after applying the
+
operator.source§fn add(self, other: StaticModInt<M>) -> Polynomial<M>
fn add(self, other: StaticModInt<M>) -> Polynomial<M>
Performs the
+
operation. Read moresource§impl<M: Modulus> Add<StaticModInt<M>> for StaticModInt<M>
impl<M: Modulus> Add<StaticModInt<M>> for StaticModInt<M>
§type Output = StaticModInt<M>
type Output = StaticModInt<M>
The resulting type after applying the
+
operator.source§fn add(self, rhs: StaticModInt<M>) -> StaticModInt<M>
fn add(self, rhs: StaticModInt<M>) -> StaticModInt<M>
Performs the
+
operation. Read moresource§impl<'a, M: NttFriendly> AddAssign<&'a StaticModInt<M>> for Polynomial<M>
impl<'a, M: NttFriendly> AddAssign<&'a StaticModInt<M>> for Polynomial<M>
source§fn add_assign(&mut self, other: &'a StaticModInt<M>)
fn add_assign(&mut self, other: &'a StaticModInt<M>)
Performs the
+=
operation. Read moresource§impl<M: Modulus> AddAssign<&StaticModInt<M>> for StaticModInt<M>
impl<M: Modulus> AddAssign<&StaticModInt<M>> for StaticModInt<M>
source§fn add_assign(&mut self, rhs: &StaticModInt<M>)
fn add_assign(&mut self, rhs: &StaticModInt<M>)
Performs the
+=
operation. Read moresource§impl<M: NttFriendly> AddAssign<StaticModInt<M>> for Polynomial<M>
impl<M: NttFriendly> AddAssign<StaticModInt<M>> for Polynomial<M>
source§fn add_assign(&mut self, other: StaticModInt<M>)
fn add_assign(&mut self, other: StaticModInt<M>)
Performs the
+=
operation. Read moresource§impl<M: Modulus> AddAssign<StaticModInt<M>> for StaticModInt<M>
impl<M: Modulus> AddAssign<StaticModInt<M>> for StaticModInt<M>
source§fn add_assign(&mut self, rhs: StaticModInt<M>)
fn add_assign(&mut self, rhs: StaticModInt<M>)
Performs the
+=
operation. Read moresource§impl<'a, M: NttFriendly> BitAnd<&'a StaticModInt<M>> for &'a Polynomial<M>
impl<'a, M: NttFriendly> BitAnd<&'a StaticModInt<M>> for &'a Polynomial<M>
§type Output = Polynomial<M>
type Output = Polynomial<M>
The resulting type after applying the
&
operator.source§fn bitand(self, other: &'a StaticModInt<M>) -> Polynomial<M>
fn bitand(self, other: &'a StaticModInt<M>) -> Polynomial<M>
Performs the
&
operation. Read moresource§impl<'a, M: NttFriendly> BitAnd<&'a StaticModInt<M>> for Polynomial<M>
impl<'a, M: NttFriendly> BitAnd<&'a StaticModInt<M>> for Polynomial<M>
§type Output = Polynomial<M>
type Output = Polynomial<M>
The resulting type after applying the
&
operator.source§fn bitand(self, other: &'a StaticModInt<M>) -> Polynomial<M>
fn bitand(self, other: &'a StaticModInt<M>) -> Polynomial<M>
Performs the
&
operation. Read moresource§impl<'a, M: NttFriendly> BitAnd<StaticModInt<M>> for &'a Polynomial<M>
impl<'a, M: NttFriendly> BitAnd<StaticModInt<M>> for &'a Polynomial<M>
§type Output = Polynomial<M>
type Output = Polynomial<M>
The resulting type after applying the
&
operator.source§fn bitand(self, other: StaticModInt<M>) -> Polynomial<M>
fn bitand(self, other: StaticModInt<M>) -> Polynomial<M>
Performs the
&
operation. Read moresource§impl<M: NttFriendly> BitAnd<StaticModInt<M>> for Polynomial<M>
impl<M: NttFriendly> BitAnd<StaticModInt<M>> for Polynomial<M>
§type Output = Polynomial<M>
type Output = Polynomial<M>
The resulting type after applying the
&
operator.source§fn bitand(self, other: StaticModInt<M>) -> Polynomial<M>
fn bitand(self, other: StaticModInt<M>) -> Polynomial<M>
Performs the
&
operation. Read moresource§impl<'a, M: NttFriendly> BitAndAssign<&'a StaticModInt<M>> for Polynomial<M>
impl<'a, M: NttFriendly> BitAndAssign<&'a StaticModInt<M>> for Polynomial<M>
source§fn bitand_assign(&mut self, other: &'a StaticModInt<M>)
fn bitand_assign(&mut self, other: &'a StaticModInt<M>)
Performs the
&=
operation. Read moresource§impl<M: NttFriendly> BitAndAssign<StaticModInt<M>> for Polynomial<M>
impl<M: NttFriendly> BitAndAssign<StaticModInt<M>> for Polynomial<M>
source§fn bitand_assign(&mut self, other: StaticModInt<M>)
fn bitand_assign(&mut self, other: StaticModInt<M>)
Performs the
&=
operation. Read moresource§impl<M: Clone> Clone for StaticModInt<M>
impl<M: Clone> Clone for StaticModInt<M>
source§fn clone(&self) -> StaticModInt<M>
fn clone(&self) -> StaticModInt<M>
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<M: Modulus> Debug for StaticModInt<M>
impl<M: Modulus> Debug for StaticModInt<M>
source§impl<M: Modulus> Default for StaticModInt<M>
impl<M: Modulus> Default for StaticModInt<M>
source§impl<M: Modulus> Display for StaticModInt<M>
impl<M: Modulus> Display for StaticModInt<M>
source§impl<'a, M: NttFriendly> Div<&'a StaticModInt<M>> for &'a Polynomial<M>
impl<'a, M: NttFriendly> Div<&'a StaticModInt<M>> for &'a Polynomial<M>
§type Output = Polynomial<M>
type Output = Polynomial<M>
The resulting type after applying the
/
operator.source§fn div(self, other: &'a StaticModInt<M>) -> Polynomial<M>
fn div(self, other: &'a StaticModInt<M>) -> Polynomial<M>
Performs the
/
operation. Read moresource§impl<'a, M: NttFriendly> Div<&'a StaticModInt<M>> for Polynomial<M>
impl<'a, M: NttFriendly> Div<&'a StaticModInt<M>> for Polynomial<M>
§type Output = Polynomial<M>
type Output = Polynomial<M>
The resulting type after applying the
/
operator.source§fn div(self, other: &'a StaticModInt<M>) -> Polynomial<M>
fn div(self, other: &'a StaticModInt<M>) -> Polynomial<M>
Performs the
/
operation. Read moresource§impl<M: Modulus> Div<&StaticModInt<M>> for &StaticModInt<M>
impl<M: Modulus> Div<&StaticModInt<M>> for &StaticModInt<M>
§type Output = StaticModInt<M>
type Output = StaticModInt<M>
The resulting type after applying the
/
operator.source§fn div(self, rhs: &StaticModInt<M>) -> StaticModInt<M>
fn div(self, rhs: &StaticModInt<M>) -> StaticModInt<M>
Performs the
/
operation. Read moresource§impl<M: Modulus> Div<&StaticModInt<M>> for StaticModInt<M>
impl<M: Modulus> Div<&StaticModInt<M>> for StaticModInt<M>
§type Output = StaticModInt<M>
type Output = StaticModInt<M>
The resulting type after applying the
/
operator.source§fn div(self, rhs: &StaticModInt<M>) -> StaticModInt<M>
fn div(self, rhs: &StaticModInt<M>) -> StaticModInt<M>
Performs the
/
operation. Read moresource§impl<'a, M: NttFriendly> Div<StaticModInt<M>> for &'a Polynomial<M>
impl<'a, M: NttFriendly> Div<StaticModInt<M>> for &'a Polynomial<M>
§type Output = Polynomial<M>
type Output = Polynomial<M>
The resulting type after applying the
/
operator.source§fn div(self, other: StaticModInt<M>) -> Polynomial<M>
fn div(self, other: StaticModInt<M>) -> Polynomial<M>
Performs the
/
operation. Read moresource§impl<M: Modulus> Div<StaticModInt<M>> for &StaticModInt<M>
impl<M: Modulus> Div<StaticModInt<M>> for &StaticModInt<M>
§type Output = StaticModInt<M>
type Output = StaticModInt<M>
The resulting type after applying the
/
operator.source§fn div(self, rhs: StaticModInt<M>) -> StaticModInt<M>
fn div(self, rhs: StaticModInt<M>) -> StaticModInt<M>
Performs the
/
operation. Read moresource§impl<M: NttFriendly> Div<StaticModInt<M>> for Polynomial<M>
impl<M: NttFriendly> Div<StaticModInt<M>> for Polynomial<M>
§type Output = Polynomial<M>
type Output = Polynomial<M>
The resulting type after applying the
/
operator.source§fn div(self, other: StaticModInt<M>) -> Polynomial<M>
fn div(self, other: StaticModInt<M>) -> Polynomial<M>
Performs the
/
operation. Read moresource§impl<M: Modulus> Div<StaticModInt<M>> for StaticModInt<M>
impl<M: Modulus> Div<StaticModInt<M>> for StaticModInt<M>
§type Output = StaticModInt<M>
type Output = StaticModInt<M>
The resulting type after applying the
/
operator.source§fn div(self, rhs: StaticModInt<M>) -> StaticModInt<M>
fn div(self, rhs: StaticModInt<M>) -> StaticModInt<M>
Performs the
/
operation. Read moresource§impl<'a, M: NttFriendly> DivAssign<&'a StaticModInt<M>> for Polynomial<M>
impl<'a, M: NttFriendly> DivAssign<&'a StaticModInt<M>> for Polynomial<M>
source§fn div_assign(&mut self, other: &'a StaticModInt<M>)
fn div_assign(&mut self, other: &'a StaticModInt<M>)
Performs the
/=
operation. Read moresource§impl<M: Modulus> DivAssign<&StaticModInt<M>> for StaticModInt<M>
impl<M: Modulus> DivAssign<&StaticModInt<M>> for StaticModInt<M>
source§fn div_assign(&mut self, rhs: &StaticModInt<M>)
fn div_assign(&mut self, rhs: &StaticModInt<M>)
Performs the
/=
operation. Read moresource§impl<M: NttFriendly> DivAssign<StaticModInt<M>> for Polynomial<M>
impl<M: NttFriendly> DivAssign<StaticModInt<M>> for Polynomial<M>
source§fn div_assign(&mut self, other: StaticModInt<M>)
fn div_assign(&mut self, other: StaticModInt<M>)
Performs the
/=
operation. Read moresource§impl<M: Modulus> DivAssign<StaticModInt<M>> for StaticModInt<M>
impl<M: Modulus> DivAssign<StaticModInt<M>> for StaticModInt<M>
source§fn div_assign(&mut self, rhs: StaticModInt<M>)
fn div_assign(&mut self, rhs: StaticModInt<M>)
Performs the
/=
operation. Read moresource§impl<I: RemEuclidU32, M: Modulus> From<I> for StaticModInt<M>
impl<I: RemEuclidU32, M: Modulus> From<I> for StaticModInt<M>
source§impl<M: Modulus> Hash for StaticModInt<M>
impl<M: Modulus> Hash for StaticModInt<M>
source§impl<M: Modulus> ModIntBase for StaticModInt<M>
impl<M: Modulus> ModIntBase for StaticModInt<M>
source§impl<'a, M: NttFriendly> Mul<&'a StaticModInt<M>> for &'a Polynomial<M>
impl<'a, M: NttFriendly> Mul<&'a StaticModInt<M>> for &'a Polynomial<M>
§type Output = Polynomial<M>
type Output = Polynomial<M>
The resulting type after applying the
*
operator.source§fn mul(self, other: &'a StaticModInt<M>) -> Polynomial<M>
fn mul(self, other: &'a StaticModInt<M>) -> Polynomial<M>
Performs the
*
operation. Read moresource§impl<'a, M: NttFriendly> Mul<&'a StaticModInt<M>> for Polynomial<M>
impl<'a, M: NttFriendly> Mul<&'a StaticModInt<M>> for Polynomial<M>
§type Output = Polynomial<M>
type Output = Polynomial<M>
The resulting type after applying the
*
operator.source§fn mul(self, other: &'a StaticModInt<M>) -> Polynomial<M>
fn mul(self, other: &'a StaticModInt<M>) -> Polynomial<M>
Performs the
*
operation. Read moresource§impl<M: Modulus> Mul<&StaticModInt<M>> for &StaticModInt<M>
impl<M: Modulus> Mul<&StaticModInt<M>> for &StaticModInt<M>
§type Output = StaticModInt<M>
type Output = StaticModInt<M>
The resulting type after applying the
*
operator.source§fn mul(self, rhs: &StaticModInt<M>) -> StaticModInt<M>
fn mul(self, rhs: &StaticModInt<M>) -> StaticModInt<M>
Performs the
*
operation. Read moresource§impl<M: Modulus> Mul<&StaticModInt<M>> for StaticModInt<M>
impl<M: Modulus> Mul<&StaticModInt<M>> for StaticModInt<M>
§type Output = StaticModInt<M>
type Output = StaticModInt<M>
The resulting type after applying the
*
operator.source§fn mul(self, rhs: &StaticModInt<M>) -> StaticModInt<M>
fn mul(self, rhs: &StaticModInt<M>) -> StaticModInt<M>
Performs the
*
operation. Read moresource§impl<'a, M: NttFriendly> Mul<StaticModInt<M>> for &'a Polynomial<M>
impl<'a, M: NttFriendly> Mul<StaticModInt<M>> for &'a Polynomial<M>
§type Output = Polynomial<M>
type Output = Polynomial<M>
The resulting type after applying the
*
operator.source§fn mul(self, other: StaticModInt<M>) -> Polynomial<M>
fn mul(self, other: StaticModInt<M>) -> Polynomial<M>
Performs the
*
operation. Read moresource§impl<M: Modulus> Mul<StaticModInt<M>> for &StaticModInt<M>
impl<M: Modulus> Mul<StaticModInt<M>> for &StaticModInt<M>
§type Output = StaticModInt<M>
type Output = StaticModInt<M>
The resulting type after applying the
*
operator.source§fn mul(self, rhs: StaticModInt<M>) -> StaticModInt<M>
fn mul(self, rhs: StaticModInt<M>) -> StaticModInt<M>
Performs the
*
operation. Read moresource§impl<M: NttFriendly> Mul<StaticModInt<M>> for Polynomial<M>
impl<M: NttFriendly> Mul<StaticModInt<M>> for Polynomial<M>
§type Output = Polynomial<M>
type Output = Polynomial<M>
The resulting type after applying the
*
operator.source§fn mul(self, other: StaticModInt<M>) -> Polynomial<M>
fn mul(self, other: StaticModInt<M>) -> Polynomial<M>
Performs the
*
operation. Read moresource§impl<M: Modulus> Mul<StaticModInt<M>> for StaticModInt<M>
impl<M: Modulus> Mul<StaticModInt<M>> for StaticModInt<M>
§type Output = StaticModInt<M>
type Output = StaticModInt<M>
The resulting type after applying the
*
operator.source§fn mul(self, rhs: StaticModInt<M>) -> StaticModInt<M>
fn mul(self, rhs: StaticModInt<M>) -> StaticModInt<M>
Performs the
*
operation. Read moresource§impl<'a, M: NttFriendly> MulAssign<&'a StaticModInt<M>> for Polynomial<M>
impl<'a, M: NttFriendly> MulAssign<&'a StaticModInt<M>> for Polynomial<M>
source§fn mul_assign(&mut self, other: &'a StaticModInt<M>)
fn mul_assign(&mut self, other: &'a StaticModInt<M>)
Performs the
*=
operation. Read moresource§impl<M: Modulus> MulAssign<&StaticModInt<M>> for StaticModInt<M>
impl<M: Modulus> MulAssign<&StaticModInt<M>> for StaticModInt<M>
source§fn mul_assign(&mut self, rhs: &StaticModInt<M>)
fn mul_assign(&mut self, rhs: &StaticModInt<M>)
Performs the
*=
operation. Read moresource§impl<M: NttFriendly> MulAssign<StaticModInt<M>> for Polynomial<M>
impl<M: NttFriendly> MulAssign<StaticModInt<M>> for Polynomial<M>
source§fn mul_assign(&mut self, other: StaticModInt<M>)
fn mul_assign(&mut self, other: StaticModInt<M>)
Performs the
*=
operation. Read moresource§impl<M: Modulus> MulAssign<StaticModInt<M>> for StaticModInt<M>
impl<M: Modulus> MulAssign<StaticModInt<M>> for StaticModInt<M>
source§fn mul_assign(&mut self, rhs: StaticModInt<M>)
fn mul_assign(&mut self, rhs: StaticModInt<M>)
Performs the
*=
operation. Read moresource§impl<M: Modulus> Neg for StaticModInt<M>
impl<M: Modulus> Neg for StaticModInt<M>
source§impl<M: PartialEq> PartialEq<StaticModInt<M>> for StaticModInt<M>
impl<M: PartialEq> PartialEq<StaticModInt<M>> for StaticModInt<M>
source§fn eq(&self, other: &StaticModInt<M>) -> bool
fn eq(&self, other: &StaticModInt<M>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a, M: Modulus> Product<&'a StaticModInt<M>> for StaticModInt<M>
impl<'a, M: Modulus> Product<&'a StaticModInt<M>> for StaticModInt<M>
source§impl<M: Modulus> Product<StaticModInt<M>> for StaticModInt<M>
impl<M: Modulus> Product<StaticModInt<M>> for StaticModInt<M>
source§impl<'a, M: NttFriendly> Rem<&'a StaticModInt<M>> for &'a Polynomial<M>
impl<'a, M: NttFriendly> Rem<&'a StaticModInt<M>> for &'a Polynomial<M>
§type Output = Polynomial<M>
type Output = Polynomial<M>
The resulting type after applying the
%
operator.source§fn rem(self, other: &'a StaticModInt<M>) -> Polynomial<M>
fn rem(self, other: &'a StaticModInt<M>) -> Polynomial<M>
Performs the
%
operation. Read moresource§impl<'a, M: NttFriendly> Rem<&'a StaticModInt<M>> for Polynomial<M>
impl<'a, M: NttFriendly> Rem<&'a StaticModInt<M>> for Polynomial<M>
§type Output = Polynomial<M>
type Output = Polynomial<M>
The resulting type after applying the
%
operator.source§fn rem(self, other: &'a StaticModInt<M>) -> Polynomial<M>
fn rem(self, other: &'a StaticModInt<M>) -> Polynomial<M>
Performs the
%
operation. Read moresource§impl<'a, M: NttFriendly> Rem<StaticModInt<M>> for &'a Polynomial<M>
impl<'a, M: NttFriendly> Rem<StaticModInt<M>> for &'a Polynomial<M>
§type Output = Polynomial<M>
type Output = Polynomial<M>
The resulting type after applying the
%
operator.source§fn rem(self, other: StaticModInt<M>) -> Polynomial<M>
fn rem(self, other: StaticModInt<M>) -> Polynomial<M>
Performs the
%
operation. Read moresource§impl<M: NttFriendly> Rem<StaticModInt<M>> for Polynomial<M>
impl<M: NttFriendly> Rem<StaticModInt<M>> for Polynomial<M>
§type Output = Polynomial<M>
type Output = Polynomial<M>
The resulting type after applying the
%
operator.source§fn rem(self, other: StaticModInt<M>) -> Polynomial<M>
fn rem(self, other: StaticModInt<M>) -> Polynomial<M>
Performs the
%
operation. Read moresource§impl<'a, M: NttFriendly> RemAssign<&'a StaticModInt<M>> for Polynomial<M>
impl<'a, M: NttFriendly> RemAssign<&'a StaticModInt<M>> for Polynomial<M>
source§fn rem_assign(&mut self, other: &'a StaticModInt<M>)
fn rem_assign(&mut self, other: &'a StaticModInt<M>)
Performs the
%=
operation. Read moresource§impl<M: NttFriendly> RemAssign<StaticModInt<M>> for Polynomial<M>
impl<M: NttFriendly> RemAssign<StaticModInt<M>> for Polynomial<M>
source§fn rem_assign(&mut self, other: StaticModInt<M>)
fn rem_assign(&mut self, other: StaticModInt<M>)
Performs the
%=
operation. Read moresource§impl<'a, M: NttFriendly> Sub<&'a StaticModInt<M>> for &'a Polynomial<M>
impl<'a, M: NttFriendly> Sub<&'a StaticModInt<M>> for &'a Polynomial<M>
§type Output = Polynomial<M>
type Output = Polynomial<M>
The resulting type after applying the
-
operator.source§fn sub(self, other: &'a StaticModInt<M>) -> Polynomial<M>
fn sub(self, other: &'a StaticModInt<M>) -> Polynomial<M>
Performs the
-
operation. Read moresource§impl<'a, M: NttFriendly> Sub<&'a StaticModInt<M>> for Polynomial<M>
impl<'a, M: NttFriendly> Sub<&'a StaticModInt<M>> for Polynomial<M>
§type Output = Polynomial<M>
type Output = Polynomial<M>
The resulting type after applying the
-
operator.source§fn sub(self, other: &'a StaticModInt<M>) -> Polynomial<M>
fn sub(self, other: &'a StaticModInt<M>) -> Polynomial<M>
Performs the
-
operation. Read moresource§impl<M: Modulus> Sub<&StaticModInt<M>> for &StaticModInt<M>
impl<M: Modulus> Sub<&StaticModInt<M>> for &StaticModInt<M>
§type Output = StaticModInt<M>
type Output = StaticModInt<M>
The resulting type after applying the
-
operator.source§fn sub(self, rhs: &StaticModInt<M>) -> StaticModInt<M>
fn sub(self, rhs: &StaticModInt<M>) -> StaticModInt<M>
Performs the
-
operation. Read moresource§impl<M: Modulus> Sub<&StaticModInt<M>> for StaticModInt<M>
impl<M: Modulus> Sub<&StaticModInt<M>> for StaticModInt<M>
§type Output = StaticModInt<M>
type Output = StaticModInt<M>
The resulting type after applying the
-
operator.source§fn sub(self, rhs: &StaticModInt<M>) -> StaticModInt<M>
fn sub(self, rhs: &StaticModInt<M>) -> StaticModInt<M>
Performs the
-
operation. Read moresource§impl<'a, M: NttFriendly> Sub<StaticModInt<M>> for &'a Polynomial<M>
impl<'a, M: NttFriendly> Sub<StaticModInt<M>> for &'a Polynomial<M>
§type Output = Polynomial<M>
type Output = Polynomial<M>
The resulting type after applying the
-
operator.source§fn sub(self, other: StaticModInt<M>) -> Polynomial<M>
fn sub(self, other: StaticModInt<M>) -> Polynomial<M>
Performs the
-
operation. Read moresource§impl<M: Modulus> Sub<StaticModInt<M>> for &StaticModInt<M>
impl<M: Modulus> Sub<StaticModInt<M>> for &StaticModInt<M>
§type Output = StaticModInt<M>
type Output = StaticModInt<M>
The resulting type after applying the
-
operator.source§fn sub(self, rhs: StaticModInt<M>) -> StaticModInt<M>
fn sub(self, rhs: StaticModInt<M>) -> StaticModInt<M>
Performs the
-
operation. Read moresource§impl<M: NttFriendly> Sub<StaticModInt<M>> for Polynomial<M>
impl<M: NttFriendly> Sub<StaticModInt<M>> for Polynomial<M>
§type Output = Polynomial<M>
type Output = Polynomial<M>
The resulting type after applying the
-
operator.source§fn sub(self, other: StaticModInt<M>) -> Polynomial<M>
fn sub(self, other: StaticModInt<M>) -> Polynomial<M>
Performs the
-
operation. Read moresource§impl<M: Modulus> Sub<StaticModInt<M>> for StaticModInt<M>
impl<M: Modulus> Sub<StaticModInt<M>> for StaticModInt<M>
§type Output = StaticModInt<M>
type Output = StaticModInt<M>
The resulting type after applying the
-
operator.source§fn sub(self, rhs: StaticModInt<M>) -> StaticModInt<M>
fn sub(self, rhs: StaticModInt<M>) -> StaticModInt<M>
Performs the
-
operation. Read moresource§impl<'a, M: NttFriendly> SubAssign<&'a StaticModInt<M>> for Polynomial<M>
impl<'a, M: NttFriendly> SubAssign<&'a StaticModInt<M>> for Polynomial<M>
source§fn sub_assign(&mut self, other: &'a StaticModInt<M>)
fn sub_assign(&mut self, other: &'a StaticModInt<M>)
Performs the
-=
operation. Read moresource§impl<M: Modulus> SubAssign<&StaticModInt<M>> for StaticModInt<M>
impl<M: Modulus> SubAssign<&StaticModInt<M>> for StaticModInt<M>
source§fn sub_assign(&mut self, rhs: &StaticModInt<M>)
fn sub_assign(&mut self, rhs: &StaticModInt<M>)
Performs the
-=
operation. Read moresource§impl<M: NttFriendly> SubAssign<StaticModInt<M>> for Polynomial<M>
impl<M: NttFriendly> SubAssign<StaticModInt<M>> for Polynomial<M>
source§fn sub_assign(&mut self, other: StaticModInt<M>)
fn sub_assign(&mut self, other: StaticModInt<M>)
Performs the
-=
operation. Read moresource§impl<M: Modulus> SubAssign<StaticModInt<M>> for StaticModInt<M>
impl<M: Modulus> SubAssign<StaticModInt<M>> for StaticModInt<M>
source§fn sub_assign(&mut self, rhs: StaticModInt<M>)
fn sub_assign(&mut self, rhs: StaticModInt<M>)
Performs the
-=
operation. Read moresource§impl<'a, M: Modulus> Sum<&'a StaticModInt<M>> for StaticModInt<M>
impl<'a, M: Modulus> Sum<&'a StaticModInt<M>> for StaticModInt<M>
source§impl<M: Modulus> Sum<StaticModInt<M>> for StaticModInt<M>
impl<M: Modulus> Sum<StaticModInt<M>> for StaticModInt<M>
impl<M: Copy> Copy for StaticModInt<M>
impl<M: Eq> Eq for StaticModInt<M>
impl<M> StructuralEq for StaticModInt<M>
impl<M> StructuralPartialEq for StaticModInt<M>
Auto Trait Implementations§
impl<M> RefUnwindSafe for StaticModInt<M>
impl<M> Send for StaticModInt<M>
impl<M> Sync for StaticModInt<M>
impl<M> Unpin for StaticModInt<M>
impl<M> UnwindSafe for StaticModInt<M>
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