Struct snarkvm_fields::Fp768 [−][src]
Implementations
impl<P: Fp768Parameters> Fp768<P>[src]
pub fn new(element: BigInteger) -> Self[src]
Trait Implementations
impl<'a, P: Fp768Parameters> Add<&'a Fp768<P>> for Fp768<P>[src]
type Output = Self
The resulting type after applying the + operator.
fn add(self, other: &Self) -> Self[src]
impl<'a, P: Fp768Parameters> AddAssign<&'a Fp768<P>> for Fp768<P>[src]
fn add_assign(&mut self, other: &Self)[src]
impl<P: Fp768Parameters> CanonicalDeserialize for Fp768<P>[src]
fn deserialize<R: Read>(reader: &mut R) -> Result<Self, SerializationError>[src]
pub fn deserialize_uncompressed<R>(
reader: &mut R
) -> Result<Self, SerializationError> where
R: Read, [src]
reader: &mut R
) -> Result<Self, SerializationError> where
R: Read,
impl<P: Fp768Parameters> CanonicalDeserializeWithFlags for Fp768<P>[src]
fn deserialize_with_flags<R: Read, F: Flags>(
reader: &mut R
) -> Result<(Self, F), SerializationError>[src]
reader: &mut R
) -> Result<(Self, F), SerializationError>
impl<P: Fp768Parameters> CanonicalSerialize for Fp768<P>[src]
fn serialize<W: Write>(&self, writer: &mut W) -> Result<(), SerializationError>[src]
fn serialized_size(&self) -> usize[src]
pub fn serialize_uncompressed<W>(
&self,
writer: &mut W
) -> Result<(), SerializationError> where
W: Write, [src]
&self,
writer: &mut W
) -> Result<(), SerializationError> where
W: Write,
pub fn uncompressed_size(&self) -> usize[src]
impl<P: Fp768Parameters> CanonicalSerializeWithFlags for Fp768<P>[src]
fn serialize_with_flags<W: Write, F: Flags>(
&self,
writer: &mut W,
flags: F
) -> Result<(), SerializationError>[src]
&self,
writer: &mut W,
flags: F
) -> Result<(), SerializationError>
impl<P: Fp768Parameters> Clone for Fp768<P> where
P: Fp768Parameters, [src]
P: Fp768Parameters,
fn clone(&self) -> Self[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<P: Fp768Parameters> ConstantSerializedSize for Fp768<P>[src]
const SERIALIZED_SIZE: usize[src]
const UNCOMPRESSED_SIZE: usize[src]
impl<P: Fp768Parameters> Copy for Fp768<P> where
P: Fp768Parameters, [src]
P: Fp768Parameters,
impl<P: Fp768Parameters> Debug for Fp768<P>[src]
impl<P: Fp768Parameters> Default for Fp768<P> where
P: Fp768Parameters, [src]
P: Fp768Parameters,
impl<'de, P: Fp768Parameters> Deserialize<'de> for Fp768<P>[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>, [src]
D: Deserializer<'de>,
impl<P: Fp768Parameters> Display for Fp768<P>[src]
impl<'a, P: Fp768Parameters> Div<&'a Fp768<P>> for Fp768<P>[src]
type Output = Self
The resulting type after applying the / operator.
fn div(self, other: &Self) -> Self[src]
impl<'a, P: Fp768Parameters> DivAssign<&'a Fp768<P>> for Fp768<P>[src]
fn div_assign(&mut self, other: &Self)[src]
impl<P: Fp768Parameters> Eq for Fp768<P> where
P: Fp768Parameters, [src]
P: Fp768Parameters,
impl<P: Fp768Parameters> Field for Fp768<P>[src]
fn from_random_bytes_with_flags(bytes: &[u8]) -> Option<(Self, u8)>[src]
fn double(&self) -> Self[src]
fn double_in_place(&mut self) -> &mut Self[src]
fn characteristic<'a>() -> &'a [u64][src]
fn square(&self) -> Self[src]
fn square_in_place(&mut self) -> &mut Self[src]
fn inverse(&self) -> Option<Self>[src]
fn inverse_in_place(&mut self) -> Option<&mut Self>[src]
fn frobenius_map(&mut self, _: usize)[src]
fn pow<S: AsRef<[u64]>>(&self, exp: S) -> Self[src]
fn from_random_bytes(bytes: &[u8]) -> Option<Self>[src]
impl<P: Fp768Parameters> From<u128> for Fp768<P>[src]
fn from(other: u128) -> Self[src]
Attempts to convert an integer into a field element. Panics if the provided integer is invalid (e.g. larger than the field modulus).
impl<P: Fp768Parameters> From<u16> for Fp768<P>[src]
fn from(other: u16) -> Self[src]
Attempts to convert an integer into a field element. Panics if the provided integer is invalid (e.g. larger than the field modulus).
impl<P: Fp768Parameters> From<u32> for Fp768<P>[src]
fn from(other: u32) -> Self[src]
Attempts to convert an integer into a field element. Panics if the provided integer is invalid (e.g. larger than the field modulus).
impl<P: Fp768Parameters> From<u64> for Fp768<P>[src]
fn from(other: u64) -> Self[src]
Attempts to convert an integer into a field element. Panics if the provided integer is invalid (e.g. larger than the field modulus).
impl<P: Fp768Parameters> From<u8> for Fp768<P>[src]
fn from(other: u8) -> Self[src]
Attempts to convert an integer into a field element. Panics if the provided integer is invalid (e.g. larger than the field modulus).
impl<P: Fp768Parameters> FromBytes for Fp768<P>[src]
impl<P: Fp768Parameters> FromStr for Fp768<P>[src]
type Err = FieldError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>[src]
Interpret a string of numbers as a (congruent) prime field element. Does not accept unnecessary leading zeroes or a blank string.
impl<P: Fp768Parameters> Hash for Fp768<P> where
P: Fp768Parameters, [src]
P: Fp768Parameters,
fn hash<__HP>(&self, __state: &mut __HP) where
__HP: Hasher, [src]
__HP: Hasher,
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl<P: Fp768Parameters> Into<BigInteger768> for Fp768<P>[src]
fn into(self) -> BigInteger768[src]
impl<'a, P: Fp768Parameters> Mul<&'a Fp768<P>> for Fp768<P>[src]
type Output = Self
The resulting type after applying the * operator.
fn mul(self, other: &Self) -> Self[src]
impl<'a, P: Fp768Parameters> MulAssign<&'a Fp768<P>> for Fp768<P>[src]
fn mul_assign(&mut self, other: &Self)[src]
impl<P: Fp768Parameters> Neg for Fp768<P>[src]
type Output = Self
The resulting type after applying the - operator.
#[must_use]fn neg(self) -> Self[src]
impl<P: Fp768Parameters> One for Fp768<P>[src]
impl<P: Fp768Parameters> Ord for Fp768<P>[src]
fn cmp(&self, other: &Self) -> Ordering[src]
#[must_use]pub fn max(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self1.50.0[src]
impl<P: Fp768Parameters> PartialEq<Fp768<P>> for Fp768<P> where
P: Fp768Parameters, [src]
P: Fp768Parameters,
impl<P: Fp768Parameters> PartialOrd<Fp768<P>> for Fp768<P>[src]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool1.0.0[src]
impl<P: Fp768Parameters> PrimeField for Fp768<P>[src]
type BigInteger = BigInteger
type Parameters = P
fn from_repr(r: BigInteger) -> Option<Self>[src]
fn into_repr(&self) -> BigInteger[src]
fn from_repr_raw(r: BigInteger) -> Self[src]
fn into_repr_raw(&self) -> BigInteger[src]
fn multiplicative_generator() -> Self[src]
fn root_of_unity() -> Self[src]
fn size_in_bits() -> usize[src]
fn trace() -> BigInteger[src]
fn trace_minus_one_div_two() -> BigInteger[src]
fn modulus_minus_one_div_two() -> BigInteger[src]
fn qnr_to_t() -> Self[src]
impl<P: Fp768Parameters> Serialize for Fp768<P>[src]
impl<P: Fp768Parameters> SquareRootField for Fp768<P>[src]
fn legendre(&self) -> LegendreSymbol[src]
fn sqrt(&self) -> Option<Self>[src]
fn sqrt_in_place(&mut self) -> Option<&mut Self>[src]
impl<'a, P: Fp768Parameters> Sub<&'a Fp768<P>> for Fp768<P>[src]
type Output = Self
The resulting type after applying the - operator.
fn sub(self, other: &Self) -> Self[src]
impl<'a, P: Fp768Parameters> SubAssign<&'a Fp768<P>> for Fp768<P>[src]
fn sub_assign(&mut self, other: &Self)[src]
impl<P: Fp768Parameters> ToBytes for Fp768<P>[src]
impl<P: Fp768Parameters> Zero for Fp768<P>[src]
Auto Trait Implementations
impl<P> RefUnwindSafe for Fp768<P> where
P: RefUnwindSafe,
P: RefUnwindSafe,
impl<P> Send for Fp768<P>
impl<P> Sync for Fp768<P>
impl<P> Unpin for Fp768<P> where
P: Unpin,
P: Unpin,
impl<P> UnwindSafe for Fp768<P> where
P: UnwindSafe,
P: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> UniformRand for T where
Standard: Distribution<T>, [src]
Standard: Distribution<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,