pub struct FieldElementConst(/* private fields */);Implementations§
Source§impl FieldElementConst
impl FieldElementConst
pub const ZERO: Self
pub const ONE: Self
pub const fn from_bytes_unchecked(bytes: &[u8; 32]) -> Self
pub const fn mul(&self, rhs: &Self) -> Self
pub const fn mul_int(&self, rhs: u32) -> Self
pub const fn square(&self) -> Self
pub const fn add(&self, rhs: &Self) -> Self
pub const fn invert(&self) -> Self
pub const fn negate(&self, magnitude: u32) -> Self
pub const fn normalize(&self) -> Self
pub const fn normalizes_to_zero(&self) -> bool
Trait Implementations§
Source§impl Clone for FieldElementConst
impl Clone for FieldElementConst
Source§fn clone(&self) -> FieldElementConst
fn clone(&self) -> FieldElementConst
Returns a duplicate 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 Debug for FieldElementConst
impl Debug for FieldElementConst
impl Copy for FieldElementConst
Auto Trait Implementations§
impl Freeze for FieldElementConst
impl RefUnwindSafe for FieldElementConst
impl Send for FieldElementConst
impl Sync for FieldElementConst
impl Unpin for FieldElementConst
impl UnwindSafe for FieldElementConst
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<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