[][src]Enum accumulator::group::ClassGroup

pub enum ClassGroup {}

Class group implementation, with future optimizations available via the --features flag. Discriminant generated via OpenSSL.

Methods

impl ClassGroup[src]

pub fn normalize(
    a: Integer,
    b: Integer,
    c: Integer
) -> (Integer, Integer, Integer)
[src]

This method is only public for benchmarking. You should not need to use it.

pub fn reduce(a: Integer, b: Integer, c: Integer) -> (Integer, Integer, Integer)[src]

This method is only public for benchmarking. You should not need to use it.

pub fn square(x: &ClassElem) -> ClassElem[src]

This method is only public for benchmarking. You should not need to use it.

Trait Implementations

impl Group for ClassGroup[src]

type Elem = ClassElem

The associated group element type for this group.

fn id() -> Self::Elem[src]

Returns the identity element of the group.

fn op(a: &Self::Elem, b: &Self::Elem) -> Self::Elem[src]

Applies the group operation to elements a and b and returns the result.

fn exp(a: &Self::Elem, n: &Integer) -> Self::Elem[src]

Applies the group operation to a and itself n times and returns the result.

fn inv(a: &Self::Elem) -> Self::Elem[src]

Returns the group inverse of a.

impl UnknownOrderGroup for ClassGroup[src]

fn unknown_order_elem() -> Self::Elem[src]

Returns an element of unknown order in the group.

impl<A, B, C> ElemFrom<(A, B, C)> for ClassGroup where
    Integer: From<A>,
    Integer: From<B>,
    Integer: From<C>, 
[src]

Panics if (a, b, c) cannot be reduced to a valid class element.

impl TypeRep for ClassGroup[src]

type Rep = Integer

The associated type of the simulated type-level static information.

impl Eq for ClassGroup[src]

impl PartialEq<ClassGroup> for ClassGroup[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl Clone for ClassGroup[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for ClassGroup[src]

impl Hash for ClassGroup[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

impl Send for ClassGroup

impl Sync for ClassGroup

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Same for T

type Output = T

Should always be Self