Struct pairing_ce::bls12_381::fq::FqRepr
source · Tuple Fields§
§0: [u64; 6]
Trait Implementations§
source§impl<'de> Deserialize<'de> for FqRepr
impl<'de> Deserialize<'de> for FqRepr
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 FqRepr
impl Ord for FqRepr
source§impl PartialEq<FqRepr> for FqRepr
impl PartialEq<FqRepr> for FqRepr
source§impl PartialOrd<FqRepr> for FqRepr
impl PartialOrd<FqRepr> for FqRepr
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 FqRepr
impl PrimeFieldRepr for FqRepr
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: &FqRepr)
fn add_nocarry(&mut self, other: &FqRepr)
Add another representation to this one.
source§fn sub_noborrow(&mut self, other: &FqRepr)
fn sub_noborrow(&mut self, other: &FqRepr)
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.