pub struct Gi32;Expand description
Addition group over integer.
Trait Implementations§
Source§impl Group for Gi32
impl Group for Gi32
Source§fn eq(&self, a: &Self::Item, b: &Self::Item) -> bool
fn eq(&self, a: &Self::Item, b: &Self::Item) -> bool
Perform the equity operation in the group.
Source§fn add(&self, a: &Self::Item, b: &Self::Item) -> Self::Item
fn add(&self, a: &Self::Item, b: &Self::Item) -> Self::Item
Perform addition operation in the group.
Source§fn sub(&self, a: &Self::Item, b: &Self::Item) -> Self::Item
fn sub(&self, a: &Self::Item, b: &Self::Item) -> Self::Item
Perform
sub operation. By default it is implemented through
add and neg but it can be overridden for optimization purposes.Source§fn mul_scalar<I>(&self, a: &Self::Item, bits_iter: I) -> Self::Item
fn mul_scalar<I>(&self, a: &Self::Item, bits_iter: I) -> Self::Item
Perform multiplication in the group by a scalar given as an iterator
of bits according to the double and add algorithm.
Source§fn add_assign(&self, a: &mut Self::Item, b: &Self::Item)
fn add_assign(&self, a: &mut Self::Item, b: &Self::Item)
Perform
add_assign operation. By default it is implemented through
add but it can be overridden for optimization purposes.Source§fn sub_assign(&self, a: &mut Self::Item, b: &Self::Item)
fn sub_assign(&self, a: &mut Self::Item, b: &Self::Item)
Perform
sub_assign operation. By default it is implemented through
sub but it can be overridden for optimization purposes.Source§fn neg_assign(&self, a: &mut Self::Item)
fn neg_assign(&self, a: &mut Self::Item)
Perform
neg_assign operation. By default it is implemented through
neg but it can be overridden for optimization purposes.Auto Trait Implementations§
impl Freeze for Gi32
impl RefUnwindSafe for Gi32
impl Send for Gi32
impl Sync for Gi32
impl Unpin for Gi32
impl UnwindSafe for Gi32
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more