pub struct FqRepr(pub [u64; 4]);
Tuple Fields§
§0: [u64; 4]
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FqRepr
impl<'de> Deserialize<'de> for FqRepr
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<FqRepr, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<FqRepr, <__D as Deserializer<'de>>::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 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.
Source§impl Serialize for FqRepr
impl Serialize for FqRepr
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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