pub struct FF<const p: i32>(/* private fields */);Expand description
An element of ๐ฝ_p, stored as a representative in 0 .. p.
Implementationsยง
Trait Implementationsยง
Sourceยงimpl<const p: i32> AddAssign for FF<p>
impl<const p: i32> AddAssign for FF<p>
Sourceยงfn add_assign(&mut self, rhs: FF<p>)
fn add_assign(&mut self, rhs: FF<p>)
Performs the
+= operation. Read moreSourceยงimpl<const p: i32> AddAssign<&FF<p>> for FF<p>
impl<const p: i32> AddAssign<&FF<p>> for FF<p>
Sourceยงfn add_assign(&mut self, rhs: &FF<p>)
fn add_assign(&mut self, rhs: &FF<p>)
Performs the
+= operation. Read moreimpl<const p: i32> AddGrp for FF<p>
impl<const p: i32> AddGrpOps for FF<p>
impl<const p: i32> AddGrpOps<FF<p>> for &FF<p>
impl<const p: i32> AddMonOps for FF<p>
impl<const p: i32> AddMonOps<FF<p>> for &FF<p>
impl<const p: i32> Copy for FF<p>
Sourceยงimpl<const p: i32> DivAssign for FF<p>
impl<const p: i32> DivAssign for FF<p>
Sourceยงfn div_assign(&mut self, rhs: FF<p>)
fn div_assign(&mut self, rhs: FF<p>)
Performs the
/= operation. Read moreSourceยงimpl<const p: i32> DivAssign<&FF<p>> for FF<p>
impl<const p: i32> DivAssign<&FF<p>> for FF<p>
Sourceยงfn div_assign(&mut self, rhs: &FF<p>)
fn div_assign(&mut self, rhs: &FF<p>)
Performs the
/= operation. Read moreimpl<const p: i32> Eq for FF<p>
Sourceยงimpl<const p: i32> EucRing for FF<p>
impl<const p: i32> EucRing for FF<p>
impl<const p: i32> EucRingOps for FF<p>
impl<const p: i32> EucRingOps<FF<p>> for &FF<p>
impl<const p: i32> Field for FF<p>
impl<const p: i32> FieldOps for FF<p>
impl<const p: i32> FieldOps<FF<p>> for &FF<p>
impl<const p: i32> MonOps for FF<p>
impl<const p: i32> MonOps<FF<p>> for &FF<p>
Sourceยงimpl<const p: i32> MulAssign for FF<p>
impl<const p: i32> MulAssign for FF<p>
Sourceยงfn mul_assign(&mut self, rhs: FF<p>)
fn mul_assign(&mut self, rhs: FF<p>)
Performs the
*= operation. Read moreSourceยงimpl<const p: i32> MulAssign<&FF<p>> for FF<p>
impl<const p: i32> MulAssign<&FF<p>> for FF<p>
Sourceยงfn mul_assign(&mut self, rhs: &FF<p>)
fn mul_assign(&mut self, rhs: &FF<p>)
Performs the
*= operation. Read moreSourceยงimpl<const p: i32> RemAssign for FF<p>
impl<const p: i32> RemAssign for FF<p>
Sourceยงfn rem_assign(&mut self, rhs: FF<p>)
fn rem_assign(&mut self, rhs: FF<p>)
Performs the
%= operation. Read moreSourceยงimpl<const p: i32> RemAssign<&FF<p>> for FF<p>
impl<const p: i32> RemAssign<&FF<p>> for FF<p>
Sourceยงfn rem_assign(&mut self, rhs: &FF<p>)
fn rem_assign(&mut self, rhs: &FF<p>)
Performs the
%= operation. Read moreSourceยงimpl<const p: i32> Ring for FF<p>
impl<const p: i32> Ring for FF<p>
Sourceยงfn inv(&self) -> Option<Self>
fn inv(&self) -> Option<Self>
Multiplicative inverse, if this element is a unit; otherwise
None.Sourceยงfn is_unit(&self) -> bool
fn is_unit(&self) -> bool
true iff this element is a unit (has a multiplicative inverse). Read moreSourceยงfn normalizing_unit(&self) -> Self
fn normalizing_unit(&self) -> Self
Sourceยงfn normalized(&self) -> Self
fn normalized(&self) -> Self
The canonical associate of
self (i.e. self * self.normalizing_unit()).Sourceยงfn into_normalized(self) -> Self
fn into_normalized(self) -> Self
Like
normalized, but consuming.impl<const p: i32> RingOps for FF<p>
impl<const p: i32> RingOps<FF<p>> for &FF<p>
impl<const p: i32> StructuralPartialEq for FF<p>
Sourceยงimpl<const p: i32> SubAssign for FF<p>
impl<const p: i32> SubAssign for FF<p>
Sourceยงfn sub_assign(&mut self, rhs: FF<p>)
fn sub_assign(&mut self, rhs: FF<p>)
Performs the
-= operation. Read moreSourceยงimpl<const p: i32> SubAssign<&FF<p>> for FF<p>
impl<const p: i32> SubAssign<&FF<p>> for FF<p>
Sourceยงfn sub_assign(&mut self, rhs: &FF<p>)
fn sub_assign(&mut self, rhs: &FF<p>)
Performs the
-= operation. Read moreAuto Trait Implementationsยง
impl<const p: i32> Freeze for FF<p>
impl<const p: i32> RefUnwindSafe for FF<p>
impl<const p: i32> Send for FF<p>
impl<const p: i32> Sync for FF<p>
impl<const p: i32> Unpin for FF<p>
impl<const p: i32> UnsafeUnpin for FF<p>
impl<const p: i32> UnwindSafe for FF<p>
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
Sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Sourceยงimpl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Sourceยงimpl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Sourceยงfn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Sourceยงimpl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Sourceยงimpl<T> IntoEither for T
impl<T> IntoEither for T
Sourceยงfn into_either(self, into_left: bool) -> Either<Self, Self> โ
fn into_either(self, into_left: bool) -> Either<Self, Self> โ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSourceยงfn into_either_with<F>(self, into_left: F) -> Either<Self, Self> โ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> โ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more