FF2

Struct FF2 

Source
pub struct FF2(/* private fields */);

Trait Implementations§

Source§

impl<'a, 'b> Add<&'b FF2> for &'a FF2

Source§

type Output = FF2

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &'b FF2) -> Self::Output

Performs the + operation. Read more
Source§

impl<'a, 'b> Add<&'b FF2> for FF2

Source§

type Output = FF2

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &'b FF2) -> Self::Output

Performs the + operation. Read more
Source§

impl<'a, 'b> Add<FF2> for &'a FF2

Source§

type Output = FF2

The resulting type after applying the + operator.
Source§

fn add(self, rhs: FF2) -> Self::Output

Performs the + operation. Read more
Source§

impl<'a, 'b> Add for FF2

Source§

type Output = FF2

The resulting type after applying the + operator.
Source§

fn add(self, rhs: FF2) -> Self::Output

Performs the + operation. Read more
Source§

impl<'a, 'b> AddAssign<&'b FF2> for FF2

Source§

fn add_assign(&mut self, rhs: &'b FF2)

Performs the += operation. Read more
Source§

impl<'a, 'b> AddAssign for FF2

Source§

fn add_assign(&mut self, rhs: FF2)

Performs the += operation. Read more
Source§

impl AddMon for FF2

Source§

fn sum<A, I>(itr: I) -> Self
where Self: AddAssign<A>, I: IntoIterator<Item = A>,

Source§

impl Clone for FF2

Source§

fn clone(&self) -> FF2

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for FF2

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for FF2

Source§

fn default() -> FF2

Returns the “default value” for a type. Read more
Source§

impl Display for FF2

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a, 'b> Div<&'b FF2> for &'a FF2

Source§

type Output = FF2

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &'b FF2) -> Self::Output

Performs the / operation. Read more
Source§

impl<'a, 'b> Div<&'b FF2> for FF2

Source§

type Output = FF2

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &'b FF2) -> Self::Output

Performs the / operation. Read more
Source§

impl<'a, 'b> Div<FF2> for &'a FF2

Source§

type Output = FF2

The resulting type after applying the / operator.
Source§

fn div(self, rhs: FF2) -> Self::Output

Performs the / operation. Read more
Source§

impl<'a, 'b> Div for FF2

Source§

type Output = FF2

The resulting type after applying the / operator.
Source§

fn div(self, rhs: FF2) -> Self::Output

Performs the / operation. Read more
Source§

impl<'a, 'b> DivAssign<&'b FF2> for FF2

Source§

fn div_assign(&mut self, rhs: &'b FF2)

Performs the /= operation. Read more
Source§

impl<'a, 'b> DivAssign for FF2

Source§

fn div_assign(&mut self, rhs: FF2)

Performs the /= operation. Read more
Source§

impl Elem for FF2

Source§

impl EucRing for FF2

Source§

fn divides(&self, y: &Self) -> bool

Source§

fn gcd(x: &Self, y: &Self) -> Self

Source§

fn gcdx(x: &Self, y: &Self) -> (Self, Self, Self)

Source§

fn lcm(x: &Self, y: &Self) -> Self

Source§

impl<I> From<I> for FF2
where I: ToPrimitive,

Source§

fn from(a: I) -> Self

Converts to this type from the input type.
Source§

impl FromStr for FF2

Source§

type Err = <i64 as FromStr>::Err

The associated error which can be returned from parsing.
Source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
Source§

impl Mon for FF2

Source§

fn product<A, I>(itr: I) -> Self
where Self: MulAssign<A>, I: IntoIterator<Item = A>,

Source§

impl<'a, 'b> Mul<&'b FF2> for &'a FF2

Source§

type Output = FF2

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &'b FF2) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a, 'b> Mul<&'b FF2> for FF2

Source§

type Output = FF2

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &'b FF2) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a, 'b> Mul<FF2> for &'a FF2

Source§

type Output = FF2

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: FF2) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a, 'b> Mul for FF2

Source§

type Output = FF2

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: FF2) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a, 'b> MulAssign<&'b FF2> for FF2

Source§

fn mul_assign(&mut self, rhs: &'b FF2)

Performs the *= operation. Read more
Source§

impl<'a, 'b> MulAssign for FF2

Source§

fn mul_assign(&mut self, rhs: FF2)

Performs the *= operation. Read more
Source§

impl Neg for &FF2

Source§

type Output = FF2

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl Neg for FF2

Source§

type Output = FF2

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl One for FF2

Source§

fn one() -> Self

Returns the multiplicative identity element of Self, 1. Read more
Source§

fn is_one(&self) -> bool

Returns true if self is equal to the multiplicative identity. Read more
Source§

fn set_one(&mut self)

Sets self to the multiplicative identity element of Self, 1.
Source§

impl PartialEq for FF2

Source§

fn eq(&self, other: &FF2) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<'a, 'b> Rem<&'b FF2> for &'a FF2

Source§

type Output = FF2

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &'b FF2) -> Self::Output

Performs the % operation. Read more
Source§

impl<'a, 'b> Rem<&'b FF2> for FF2

Source§

type Output = FF2

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &'b FF2) -> Self::Output

Performs the % operation. Read more
Source§

impl<'a, 'b> Rem<FF2> for &'a FF2

Source§

type Output = FF2

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: FF2) -> Self::Output

Performs the % operation. Read more
Source§

impl<'a, 'b> Rem for FF2

Source§

type Output = FF2

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: FF2) -> Self::Output

Performs the % operation. Read more
Source§

impl<'a, 'b> RemAssign<&'b FF2> for FF2

Source§

fn rem_assign(&mut self, rhs: &'b FF2)

Performs the %= operation. Read more
Source§

impl<'a, 'b> RemAssign for FF2

Source§

fn rem_assign(&mut self, rhs: FF2)

Performs the %= operation. Read more
Source§

impl Ring for FF2

Source§

fn inv(&self) -> Option<Self>

Source§

fn is_unit(&self) -> bool

Source§

fn normalizing_unit(&self) -> Self

Source§

fn c_weight(&self) -> f64

Source§

fn from_sign(s: Sign) -> Self

Source§

fn normalized(&self) -> Self

Source§

fn into_normalized(self) -> Self

Source§

fn is_pm_one(&self) -> bool

Source§

impl<'a, 'b> Sub<&'b FF2> for &'a FF2

Source§

type Output = FF2

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &'b FF2) -> Self::Output

Performs the - operation. Read more
Source§

impl<'a, 'b> Sub<&'b FF2> for FF2

Source§

type Output = FF2

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &'b FF2) -> Self::Output

Performs the - operation. Read more
Source§

impl<'a, 'b> Sub<FF2> for &'a FF2

Source§

type Output = FF2

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: FF2) -> Self::Output

Performs the - operation. Read more
Source§

impl<'a, 'b> Sub for FF2

Source§

type Output = FF2

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: FF2) -> Self::Output

Performs the - operation. Read more
Source§

impl<'a, 'b> SubAssign<&'b FF2> for FF2

Source§

fn sub_assign(&mut self, rhs: &'b FF2)

Performs the -= operation. Read more
Source§

impl<'a, 'b> SubAssign for FF2

Source§

fn sub_assign(&mut self, rhs: FF2)

Performs the -= operation. Read more
Source§

impl Zero for FF2

Source§

fn zero() -> Self

Returns the additive identity element of Self, 0. Read more
Source§

fn is_zero(&self) -> bool

Returns true if self is equal to the additive identity.
Source§

fn set_zero(&mut self)

Sets self to the additive identity element of Self, 0.
Source§

impl AddGrp for FF2

Source§

impl<'a> AddGrpOps<FF2> for &'a FF2

Source§

impl AddGrpOps for FF2

Source§

impl<'a> AddMonOps<FF2> for &'a FF2

Source§

impl AddMonOps for FF2

Source§

impl Copy for FF2

Source§

impl Eq for FF2

Source§

impl<'a> EucRingOps<FF2> for &'a FF2

Source§

impl EucRingOps for FF2

Source§

impl Field for FF2

Source§

impl<'a> FieldOps<FF2> for &'a FF2

Source§

impl FieldOps for FF2

Source§

impl<'a> MonOps<FF2> for &'a FF2

Source§

impl MonOps for FF2

Source§

impl<'a> RingOps<FF2> for &'a FF2

Source§

impl RingOps for FF2

Source§

impl StructuralPartialEq for FF2

Auto Trait Implementations§

§

impl Freeze for FF2

§

impl RefUnwindSafe for FF2

§

impl Send for FF2

§

impl Sync for FF2

§

impl Unpin for FF2

§

impl UnwindSafe for FF2

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneAnd for T
where T: Clone,

Source§

fn clone_and<F>(&self, f: F) -> Self
where F: FnOnce(&mut Self),

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T, Rhs> PowMod2<Rhs> for T
where T: One, Rhs: IsEven,

Source§

fn pow_mod2(self, rhs: Rhs) -> Self

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> ElemBase for T
where T: Default + PartialEq + Eq + Clone + Send + Sync + Display + Debug + 'static,

Source§

impl<T, Rhs> NumAssignOps<Rhs> for T
where T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>,

Source§

impl<T, Rhs, Output> NumOps<Rhs, Output> for T
where T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,

Source§

impl<T, Base> RefNum<Base> for T
where T: NumOps<Base, Base> + for<'r> NumOps<&'r Base, Base>,