Struct pairing_ce::bn256::fq::FqRepr
source · Tuple Fields
0: [u64; 4]
Trait Implementations
sourceimpl<'de> Deserialize<'de> for FqRepr
impl<'de> Deserialize<'de> for FqRepr
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 FqRepr
impl Ord for FqRepr
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<FqRepr> for FqRepr
impl PartialOrd<FqRepr> for FqRepr
sourcefn partial_cmp(&self, other: &FqRepr) -> Option<Ordering>
fn partial_cmp(&self, other: &FqRepr) -> 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 FqRepr
impl PrimeFieldRepr for FqRepr
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: &FqRepr)
fn add_nocarry(&mut self, other: &FqRepr)
Add another representation to this one.
sourcefn sub_noborrow(&mut self, other: &FqRepr)
fn sub_noborrow(&mut self, other: &FqRepr)
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 FqRepr
impl Eq for FqRepr
impl StructuralEq for FqRepr
impl StructuralPartialEq for FqRepr
Auto Trait Implementations
impl RefUnwindSafe for FqRepr
impl Send for FqRepr
impl Sync for FqRepr
impl Unpin for FqRepr
impl UnwindSafe for FqRepr
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