Trait GroupElement

Source
pub trait GroupElement {
    // Required methods
    fn is_identity(&self) -> bool;
    fn times(&self, multiplicant: &Self) -> Self;
    fn inverse(&self) -> Self;
}
Expand description

The contract for a group element.

Required Methods§

Source

fn is_identity(&self) -> bool

Determine if the group element is the identity.

Source

fn times(&self, multiplicant: &Self) -> Self

The associated operation of the Group.

Source

fn inverse(&self) -> Self

Returns the inverse of the group element.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§