pub struct FqRepr(pub [u64; 6]);
Tuple Fields§
§0: [u64; 6]
Trait Implementations§
Source§impl Ord for FqRepr
impl Ord for FqRepr
Source§impl PartialOrd for FqRepr
impl PartialOrd for FqRepr
Source§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.
impl Copy for FqRepr
impl Eq for FqRepr
impl StructuralPartialEq for FqRepr
Auto Trait Implementations§
impl Freeze for FqRepr
impl RefUnwindSafe for FqRepr
impl Send for FqRepr
impl Sync for FqRepr
impl Unpin for FqRepr
impl UnwindSafe for FqRepr
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
)