Struct pairing_ce::bls12_381::FrRepr [−][src]
Trait Implementations
impl Ord for FrRepr
[src]
impl Ord for FrRepr
[src]impl PartialOrd<FrRepr> for FrRepr
[src]
impl PartialOrd<FrRepr> for FrRepr
[src]fn partial_cmp(&self, other: &FrRepr) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &FrRepr) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl PrimeFieldRepr for FrRepr
[src]
impl PrimeFieldRepr for FrRepr
[src]fn div2(&mut self)
[src]
fn div2(&mut self)
[src]Performs a rightwise bitshift of this number, effectively dividing it by 2. Read more
fn mul2(&mut self)
[src]
fn mul2(&mut self)
[src]Performs a leftwise bitshift of this number, effectively multiplying it by 2. Overflow is ignored. Read more
fn num_bits(&self) -> u32
[src]
fn num_bits(&self) -> u32
[src]Compute the number of bits needed to encode this number. Always a multiple of 64. Read more
fn add_nocarry(&mut self, other: &FrRepr)
[src]
fn add_nocarry(&mut self, other: &FrRepr)
[src]Add another representation to this one.
fn sub_noborrow(&mut self, other: &FrRepr)
[src]
fn sub_noborrow(&mut self, other: &FrRepr)
[src]Subtract another represetation from this one.
fn write_be<W>(&self, writer: W) -> Result<(), Error> where
W: Write,
[src]
fn write_be<W>(&self, writer: W) -> Result<(), Error> where
W: Write,
[src]Writes this PrimeFieldRepr
as a big endian integer.
fn read_be<R>(&mut self, reader: R) -> Result<(), Error> where
R: Read,
[src]
fn read_be<R>(&mut self, reader: R) -> Result<(), Error> where
R: Read,
[src]Reads a big endian integer into this representation.
impl Copy for FrRepr
[src]
impl Eq for FrRepr
[src]
impl StructuralEq for FrRepr
[src]
impl StructuralPartialEq for FrRepr
[src]
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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more