Struct pairing_ce::bls12_381::FrRepr
source · Tuple Fields
0: [u64; 4]
Trait Implementations
sourceimpl<'de> Deserialize<'de> for FrRepr
impl<'de> Deserialize<'de> for FrRepr
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Ord for FrRepr
impl Ord for FrRepr
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialOrd<FrRepr> for FrRepr
impl PartialOrd<FrRepr> for FrRepr
sourcefn partial_cmp(&self, other: &FrRepr) -> Option<Ordering>
fn partial_cmp(&self, other: &FrRepr) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresourceimpl PrimeFieldRepr for FrRepr
impl PrimeFieldRepr for FrRepr
sourcefn div2(&mut self)
fn div2(&mut self)
Performs a rightwise bitshift of this number, effectively dividing
it by 2. Read more
sourcefn mul2(&mut self)
fn mul2(&mut self)
Performs a leftwise bitshift of this number, effectively multiplying
it by 2. Overflow is ignored. Read more
sourcefn num_bits(&self) -> u32
fn num_bits(&self) -> u32
Compute the number of bits needed to encode this number. Always a
multiple of 64. Read more
sourcefn add_nocarry(&mut self, other: &FrRepr)
fn add_nocarry(&mut self, other: &FrRepr)
Add another representation to this one.
sourcefn sub_noborrow(&mut self, other: &FrRepr)
fn sub_noborrow(&mut self, other: &FrRepr)
Subtract another represetation from this one.
sourcefn write_be<W>(&self, writer: W) -> Result<(), Error>where
W: Write,
fn write_be<W>(&self, writer: W) -> Result<(), Error>where
W: Write,
Writes this
PrimeFieldRepr
as a big endian integer.sourcefn read_be<R>(&mut self, reader: R) -> Result<(), Error>where
R: Read,
fn read_be<R>(&mut self, reader: R) -> Result<(), Error>where
R: Read,
Reads a big endian integer into this representation.
impl Copy for FrRepr
impl Eq for FrRepr
impl StructuralEq for FrRepr
impl StructuralPartialEq for FrRepr
Auto Trait Implementations
impl RefUnwindSafe for FrRepr
impl Send for FrRepr
impl Sync for FrRepr
impl Unpin for FrRepr
impl UnwindSafe for FrRepr
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more