pub struct LooseFieldElement(pub(super) fiat_p521_loose_field_element);Expand description
“Loose” field element: unreduced and intended to be followed by an additional operation which will perform a reduction.
Tuple Fields§
§0: fiat_p521_loose_field_elementImplementations§
Source§impl LooseFieldElement
impl LooseFieldElement
const LIMBS: usize = 9
Sourcepub const fn carry(&self) -> FieldElement
pub const fn carry(&self) -> FieldElement
Reduce field element.
Sourcepub const fn multiply(&self, rhs: &Self) -> FieldElement
pub const fn multiply(&self, rhs: &Self) -> FieldElement
Multiplies two field elements and reduces the result.
Sourcepub const fn square(&self) -> FieldElement
pub 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 UnsafeUnpin 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