Struct unknown_order::Group[][src]

pub struct Group {
    pub modulus: BigNumber,
}
Expand description

Represents a cyclic group where all operations are reduced by a modulus. Purely a convenience struct to avoid having to call mod{ops}

Fields

modulus: BigNumber

The upper limit that all values in the group are to be reduced

Implementations

impl Group[src]

pub fn neg(&self, rhs: &BigNumber) -> BigNumber[src]

Compute -rhs mod self

pub fn sum<I>(&self, nums: I) -> BigNumber where
    I: AsRef<[BigNumber]>, 
[src]

Compute the sum of the the bignumbers in the group

pub fn product<I>(&self, nums: I) -> BigNumber where
    I: AsRef<[BigNumber]>, 
[src]

Compute the product of the the bignumbers in the group

Trait Implementations

impl<'a, 'b, 'c> Add<(&'a Bn, &'b Bn)> for &'c Group[src]

type Output = BigNumber

The resulting type after applying the + operator.

fn add(self, pair: (&'a BigNumber, &'b BigNumber)) -> Self::Output[src]

Performs the + operation. Read more

impl<'a, 'b> Add<(&'a Bn, &'b Bn)> for Group[src]

type Output = BigNumber

The resulting type after applying the + operator.

fn add(self, pair: (&'a BigNumber, &'b BigNumber)) -> Self::Output[src]

Performs the + operation. Read more

impl<'a, 'c> Add<(&'a Bn, Bn)> for &'c Group[src]

type Output = BigNumber

The resulting type after applying the + operator.

fn add(self, pair: (&'a BigNumber, BigNumber)) -> Self::Output[src]

Performs the + operation. Read more

impl<'a> Add<(&'a Bn, Bn)> for Group[src]

type Output = BigNumber

The resulting type after applying the + operator.

fn add(self, pair: (&'a BigNumber, BigNumber)) -> Self::Output[src]

Performs the + operation. Read more

impl<'b, 'c> Add<(Bn, &'b Bn)> for &'c Group[src]

type Output = BigNumber

The resulting type after applying the + operator.

fn add(self, pair: (BigNumber, &'b BigNumber)) -> Self::Output[src]

Performs the + operation. Read more

impl<'b> Add<(Bn, &'b Bn)> for Group[src]

type Output = BigNumber

The resulting type after applying the + operator.

fn add(self, pair: (BigNumber, &'b BigNumber)) -> Self::Output[src]

Performs the + operation. Read more

impl<'c> Add<(Bn, Bn)> for &'c Group[src]

type Output = BigNumber

The resulting type after applying the + operator.

fn add(self, pair: (BigNumber, BigNumber)) -> Self::Output[src]

Performs the + operation. Read more

impl Add<(Bn, Bn)> for Group[src]

type Output = BigNumber

The resulting type after applying the + operator.

fn add(self, pair: (BigNumber, BigNumber)) -> Self::Output[src]

Performs the + operation. Read more

impl<'a, 'b, 'c> AddAssign<(&'a mut Bn, &'b Bn)> for &'c Group[src]

fn add_assign(&mut self, pair: (&'a mut BigNumber, &'b BigNumber))[src]

Performs the += operation. Read more

impl<'a, 'b> AddAssign<(&'a mut Bn, &'b Bn)> for Group[src]

fn add_assign(&mut self, pair: (&'a mut BigNumber, &'b BigNumber))[src]

Performs the += operation. Read more

impl<'a, 'c> AddAssign<(&'a mut Bn, Bn)> for &'c Group[src]

fn add_assign(&mut self, pair: (&'a mut BigNumber, BigNumber))[src]

Performs the += operation. Read more

impl<'a> AddAssign<(&'a mut Bn, Bn)> for Group[src]

fn add_assign(&mut self, pair: (&'a mut BigNumber, BigNumber))[src]

Performs the += operation. Read more

impl<'a, 'b, 'c> Div<(&'a Bn, &'b Bn)> for &'c Group[src]

type Output = BigNumber

The resulting type after applying the / operator.

fn div(self, pair: (&'a BigNumber, &'b BigNumber)) -> Self::Output[src]

Performs the / operation. Read more

impl<'a, 'b> Div<(&'a Bn, &'b Bn)> for Group[src]

type Output = BigNumber

The resulting type after applying the / operator.

fn div(self, pair: (&'a BigNumber, &'b BigNumber)) -> Self::Output[src]

Performs the / operation. Read more

impl<'a, 'c> Div<(&'a Bn, Bn)> for &'c Group[src]

type Output = BigNumber

The resulting type after applying the / operator.

fn div(self, pair: (&'a BigNumber, BigNumber)) -> Self::Output[src]

Performs the / operation. Read more

impl<'a> Div<(&'a Bn, Bn)> for Group[src]

type Output = BigNumber

The resulting type after applying the / operator.

fn div(self, pair: (&'a BigNumber, BigNumber)) -> Self::Output[src]

Performs the / operation. Read more

impl<'b, 'c> Div<(Bn, &'b Bn)> for &'c Group[src]

type Output = BigNumber

The resulting type after applying the / operator.

fn div(self, pair: (BigNumber, &'b BigNumber)) -> Self::Output[src]

Performs the / operation. Read more

impl<'b> Div<(Bn, &'b Bn)> for Group[src]

type Output = BigNumber

The resulting type after applying the / operator.

fn div(self, pair: (BigNumber, &'b BigNumber)) -> Self::Output[src]

Performs the / operation. Read more

impl<'c> Div<(Bn, Bn)> for &'c Group[src]

type Output = BigNumber

The resulting type after applying the / operator.

fn div(self, pair: (BigNumber, BigNumber)) -> Self::Output[src]

Performs the / operation. Read more

impl Div<(Bn, Bn)> for Group[src]

type Output = BigNumber

The resulting type after applying the / operator.

fn div(self, pair: (BigNumber, BigNumber)) -> Self::Output[src]

Performs the / operation. Read more

impl<'a, 'b, 'c> DivAssign<(&'a mut Bn, &'b Bn)> for &'c Group[src]

fn div_assign(&mut self, pair: (&'a mut BigNumber, &'b BigNumber))[src]

Performs the /= operation. Read more

impl<'a, 'b> DivAssign<(&'a mut Bn, &'b Bn)> for Group[src]

fn div_assign(&mut self, pair: (&'a mut BigNumber, &'b BigNumber))[src]

Performs the /= operation. Read more

impl<'a, 'c> DivAssign<(&'a mut Bn, Bn)> for &'c Group[src]

fn div_assign(&mut self, pair: (&'a mut BigNumber, BigNumber))[src]

Performs the /= operation. Read more

impl<'a> DivAssign<(&'a mut Bn, Bn)> for Group[src]

fn div_assign(&mut self, pair: (&'a mut BigNumber, BigNumber))[src]

Performs the /= operation. Read more

impl<'a, 'b, 'c> Mul<(&'a Bn, &'b Bn)> for &'c Group[src]

type Output = BigNumber

The resulting type after applying the * operator.

fn mul(self, pair: (&'a BigNumber, &'b BigNumber)) -> Self::Output[src]

Performs the * operation. Read more

impl<'a, 'b> Mul<(&'a Bn, &'b Bn)> for Group[src]

type Output = BigNumber

The resulting type after applying the * operator.

fn mul(self, pair: (&'a BigNumber, &'b BigNumber)) -> Self::Output[src]

Performs the * operation. Read more

impl<'a, 'c> Mul<(&'a Bn, Bn)> for &'c Group[src]

type Output = BigNumber

The resulting type after applying the * operator.

fn mul(self, pair: (&'a BigNumber, BigNumber)) -> Self::Output[src]

Performs the * operation. Read more

impl<'a> Mul<(&'a Bn, Bn)> for Group[src]

type Output = BigNumber

The resulting type after applying the * operator.

fn mul(self, pair: (&'a BigNumber, BigNumber)) -> Self::Output[src]

Performs the * operation. Read more

impl<'b, 'c> Mul<(Bn, &'b Bn)> for &'c Group[src]

type Output = BigNumber

The resulting type after applying the * operator.

fn mul(self, pair: (BigNumber, &'b BigNumber)) -> Self::Output[src]

Performs the * operation. Read more

impl<'b> Mul<(Bn, &'b Bn)> for Group[src]

type Output = BigNumber

The resulting type after applying the * operator.

fn mul(self, pair: (BigNumber, &'b BigNumber)) -> Self::Output[src]

Performs the * operation. Read more

impl<'c> Mul<(Bn, Bn)> for &'c Group[src]

type Output = BigNumber

The resulting type after applying the * operator.

fn mul(self, pair: (BigNumber, BigNumber)) -> Self::Output[src]

Performs the * operation. Read more

impl Mul<(Bn, Bn)> for Group[src]

type Output = BigNumber

The resulting type after applying the * operator.

fn mul(self, pair: (BigNumber, BigNumber)) -> Self::Output[src]

Performs the * operation. Read more

impl<'a, 'b, 'c> MulAssign<(&'a mut Bn, &'b Bn)> for &'c Group[src]

fn mul_assign(&mut self, pair: (&'a mut BigNumber, &'b BigNumber))[src]

Performs the *= operation. Read more

impl<'a, 'b> MulAssign<(&'a mut Bn, &'b Bn)> for Group[src]

fn mul_assign(&mut self, pair: (&'a mut BigNumber, &'b BigNumber))[src]

Performs the *= operation. Read more

impl<'a, 'c> MulAssign<(&'a mut Bn, Bn)> for &'c Group[src]

fn mul_assign(&mut self, pair: (&'a mut BigNumber, BigNumber))[src]

Performs the *= operation. Read more

impl<'a> MulAssign<(&'a mut Bn, Bn)> for Group[src]

fn mul_assign(&mut self, pair: (&'a mut BigNumber, BigNumber))[src]

Performs the *= operation. Read more

impl<'a, 'b, 'c> Sub<(&'a Bn, &'b Bn)> for &'c Group[src]

type Output = BigNumber

The resulting type after applying the - operator.

fn sub(self, pair: (&'a BigNumber, &'b BigNumber)) -> Self::Output[src]

Performs the - operation. Read more

impl<'a, 'b> Sub<(&'a Bn, &'b Bn)> for Group[src]

type Output = BigNumber

The resulting type after applying the - operator.

fn sub(self, pair: (&'a BigNumber, &'b BigNumber)) -> Self::Output[src]

Performs the - operation. Read more

impl<'a, 'c> Sub<(&'a Bn, Bn)> for &'c Group[src]

type Output = BigNumber

The resulting type after applying the - operator.

fn sub(self, pair: (&'a BigNumber, BigNumber)) -> Self::Output[src]

Performs the - operation. Read more

impl<'a> Sub<(&'a Bn, Bn)> for Group[src]

type Output = BigNumber

The resulting type after applying the - operator.

fn sub(self, pair: (&'a BigNumber, BigNumber)) -> Self::Output[src]

Performs the - operation. Read more

impl<'b, 'c> Sub<(Bn, &'b Bn)> for &'c Group[src]

type Output = BigNumber

The resulting type after applying the - operator.

fn sub(self, pair: (BigNumber, &'b BigNumber)) -> Self::Output[src]

Performs the - operation. Read more

impl<'b> Sub<(Bn, &'b Bn)> for Group[src]

type Output = BigNumber

The resulting type after applying the - operator.

fn sub(self, pair: (BigNumber, &'b BigNumber)) -> Self::Output[src]

Performs the - operation. Read more

impl<'c> Sub<(Bn, Bn)> for &'c Group[src]

type Output = BigNumber

The resulting type after applying the - operator.

fn sub(self, pair: (BigNumber, BigNumber)) -> Self::Output[src]

Performs the - operation. Read more

impl Sub<(Bn, Bn)> for Group[src]

type Output = BigNumber

The resulting type after applying the - operator.

fn sub(self, pair: (BigNumber, BigNumber)) -> Self::Output[src]

Performs the - operation. Read more

impl<'a, 'b, 'c> SubAssign<(&'a mut Bn, &'b Bn)> for &'c Group[src]

fn sub_assign(&mut self, pair: (&'a mut BigNumber, &'b BigNumber))[src]

Performs the -= operation. Read more

impl<'a, 'b> SubAssign<(&'a mut Bn, &'b Bn)> for Group[src]

fn sub_assign(&mut self, pair: (&'a mut BigNumber, &'b BigNumber))[src]

Performs the -= operation. Read more

impl<'a, 'c> SubAssign<(&'a mut Bn, Bn)> for &'c Group[src]

fn sub_assign(&mut self, pair: (&'a mut BigNumber, BigNumber))[src]

Performs the -= operation. Read more

impl<'a> SubAssign<(&'a mut Bn, Bn)> for Group[src]

fn sub_assign(&mut self, pair: (&'a mut BigNumber, BigNumber))[src]

Performs the -= operation. Read more

Auto Trait Implementations

impl RefUnwindSafe for Group

impl Send for Group

impl Sync for Group

impl Unpin for Group

impl UnwindSafe for Group

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> Same<T> for T

type Output = T

Should always be Self

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

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]

Performs the conversion.

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

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]

Performs the conversion.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

pub fn vzip(self) -> V