pub struct FrRepr(pub [u64; 4]);
Tuple Fields§
§0: [u64; 4]
Trait Implementations§
Source§impl Ord for FrRepr
impl Ord for FrRepr
Source§impl PartialOrd for FrRepr
impl PartialOrd for FrRepr
Source§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.
impl Copy for FrRepr
impl Eq for FrRepr
impl StructuralPartialEq for FrRepr
Auto Trait Implementations§
impl Freeze for FrRepr
impl RefUnwindSafe for FrRepr
impl Send for FrRepr
impl Sync for FrRepr
impl Unpin for FrRepr
impl UnwindSafe for FrRepr
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)