Struct bellperson::bls::FqRepr [−][src]
Trait Implementations
impl<'de> Deserialize<'de> for FqRepr
[src]
impl<'de> Deserialize<'de> for FqRepr
[src]pub fn deserialize<__D>(
__deserializer: __D
) -> Result<FqRepr, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<FqRepr, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl Ord for FqRepr
[src]
impl Ord for FqRepr
[src]impl PartialOrd<FqRepr> for FqRepr
[src]
impl PartialOrd<FqRepr> for FqRepr
[src]pub fn partial_cmp(&self, other: &FqRepr) -> Option<Ordering>
[src]
pub fn partial_cmp(&self, other: &FqRepr) -> 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 FqRepr
[src]
impl PrimeFieldRepr for FqRepr
[src]pub fn div2(&mut self)
[src]
pub fn div2(&mut self)
[src]Performs a rightwise bitshift of this number, effectively dividing it by 2. Read more
pub fn mul2(&mut self)
[src]
pub fn mul2(&mut self)
[src]Performs a leftwise bitshift of this number, effectively multiplying it by 2. Overflow is ignored. Read more
pub fn num_bits(&self) -> u32
[src]
pub fn num_bits(&self) -> u32
[src]Compute the number of bits needed to encode this number. Always a multiple of 64. Read more
pub fn add_nocarry(&mut self, other: &FqRepr)
[src]
pub fn add_nocarry(&mut self, other: &FqRepr)
[src]Add another representation to this one.
pub fn sub_noborrow(&mut self, other: &FqRepr)
[src]
pub fn sub_noborrow(&mut self, other: &FqRepr)
[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 Serialize for FqRepr
[src]
impl Serialize for FqRepr
[src]pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]Serialize this value into the given Serde serializer. Read more
impl Copy for FqRepr
[src]
impl Eq for FqRepr
[src]
impl StructuralEq for FqRepr
[src]
impl StructuralPartialEq for FqRepr
[src]
Auto Trait Implementations
impl RefUnwindSafe for FqRepr
impl Send for FqRepr
impl Sync for FqRepr
impl Unpin for FqRepr
impl UnwindSafe for FqRepr
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> Pointable for T
impl<T> Pointable for T
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
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
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,