Struct pairing_ce::bls12_381::fr::FrRepr
source · Tuple Fields§
§0: [u64; 4]
Trait Implementations§
source§impl<'de> Deserialize<'de> for FrRepr
impl<'de> Deserialize<'de> for FrRepr
source§fn 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
source§impl Ord for FrRepr
impl Ord for FrRepr
source§impl PartialEq<FrRepr> for FrRepr
impl PartialEq<FrRepr> for FrRepr
source§impl PartialOrd<FrRepr> for FrRepr
impl PartialOrd<FrRepr> for FrRepr
1.0.0 · source§fn 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 moresource§impl PrimeFieldRepr for FrRepr
impl PrimeFieldRepr for FrRepr
source§fn div2(&mut self)
fn div2(&mut self)
Performs a rightwise bitshift of this number, effectively dividing
it by 2.
source§fn mul2(&mut self)
fn mul2(&mut self)
Performs a leftwise bitshift of this number, effectively multiplying
it by 2. Overflow is ignored.
source§fn num_bits(&self) -> u32
fn num_bits(&self) -> u32
Compute the number of bits needed to encode this number. Always a
multiple of 64.
source§fn add_nocarry(&mut self, other: &FrRepr)
fn add_nocarry(&mut self, other: &FrRepr)
Add another representation to this one.
source§fn sub_noborrow(&mut self, other: &FrRepr)
fn sub_noborrow(&mut self, other: &FrRepr)
Subtract another represetation from this one.
source§fn 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.source§fn 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.