pub(crate) struct LooseFieldElement(pub(super) [u64; 9]);Expand description
“Loose” field element.
Tuple Fields§
§0: [u64; 9]Implementations§
Source§impl LooseFieldElement
impl LooseFieldElement
Sourcepub(crate) const fn carry(&self) -> FieldElement
pub(crate) const fn carry(&self) -> FieldElement
Reduce field element.
Sourcepub(crate) const fn mul(&self, rhs: &Self) -> FieldElement
pub(crate) const fn mul(&self, rhs: &Self) -> FieldElement
Multiplies two field elements and reduces the result.
Sourcepub(crate) const fn square(&self) -> FieldElement
pub(crate) const fn square(&self) -> FieldElement
Squares a field element and reduces the result.
Trait Implementations§
Source§impl From<&FieldElement> for LooseFieldElement
impl From<&FieldElement> for LooseFieldElement
Source§fn from(tight: &FieldElement) -> LooseFieldElement
fn from(tight: &FieldElement) -> LooseFieldElement
Converts to this type from the input type.
Source§impl From<&LooseFieldElement> for FieldElement
impl From<&LooseFieldElement> for FieldElement
Source§fn from(loose: &LooseFieldElement) -> FieldElement
fn from(loose: &LooseFieldElement) -> FieldElement
Converts to this type from the input type.
Source§impl From<FieldElement> for LooseFieldElement
impl From<FieldElement> for LooseFieldElement
Source§fn from(tight: FieldElement) -> LooseFieldElement
fn from(tight: FieldElement) -> LooseFieldElement
Converts to this type from the input type.
Source§impl From<LooseFieldElement> for FieldElement
impl From<LooseFieldElement> for FieldElement
Source§fn from(loose: LooseFieldElement) -> FieldElement
fn from(loose: LooseFieldElement) -> FieldElement
Converts to this type from the input type.
Source§impl Mul<&LooseFieldElement> for &LooseFieldElement
impl Mul<&LooseFieldElement> for &LooseFieldElement
Source§type Output = FieldElement
type Output = FieldElement
The resulting type after applying the
* operator.Source§fn mul(self, rhs: &LooseFieldElement) -> FieldElement
fn mul(self, rhs: &LooseFieldElement) -> FieldElement
Performs the
* operation. Read moreSource§impl Mul<&LooseFieldElement> for LooseFieldElement
impl Mul<&LooseFieldElement> for LooseFieldElement
Source§type Output = FieldElement
type Output = FieldElement
The resulting type after applying the
* operator.Source§fn mul(self, rhs: &LooseFieldElement) -> FieldElement
fn mul(self, rhs: &LooseFieldElement) -> FieldElement
Performs the
* operation. Read moreSource§impl Mul for LooseFieldElement
impl Mul for LooseFieldElement
Source§type Output = FieldElement
type Output = FieldElement
The resulting type after applying the
* operator.Source§fn mul(self, rhs: LooseFieldElement) -> FieldElement
fn mul(self, rhs: LooseFieldElement) -> FieldElement
Performs the
* operation. Read moreAuto Trait Implementations§
impl Freeze for LooseFieldElement
impl RefUnwindSafe for LooseFieldElement
impl Send for LooseFieldElement
impl Sync for LooseFieldElement
impl Unpin for LooseFieldElement
impl UnwindSafe for LooseFieldElement
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