Tuple Fields
0: [u64; 4]
Trait Implementations
sourceimpl Ord for FrRepr
impl Ord for FrRepr
sourceimpl PartialOrd<FrRepr> for FrRepr
impl PartialOrd<FrRepr> for FrRepr
sourcepub fn partial_cmp(&self, other: &FrRepr) -> Option<Ordering>
pub fn partial_cmp(&self, other: &FrRepr) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
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 more
sourceimpl PrimeFieldRepr for FrRepr
impl PrimeFieldRepr for FrRepr
sourcepub fn div2(&mut self)
pub fn div2(&mut self)
Performs a rightwise bitshift of this number, effectively dividing it by 2. Read more
sourcepub fn mul2(&mut self)
pub fn mul2(&mut self)
Performs a leftwise bitshift of this number, effectively multiplying it by 2. Overflow is ignored. Read more
sourcepub fn num_bits(&self) -> u32
pub fn num_bits(&self) -> u32
Compute the number of bits needed to encode this number. Always a multiple of 64. Read more
sourcepub fn add_nocarry(&mut self, other: &FrRepr)
pub fn add_nocarry(&mut self, other: &FrRepr)
Add another representation to this one.
sourcepub fn sub_noborrow(&mut self, other: &FrRepr)
pub 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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more