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§
Sourcefn is_identity(&self) -> bool
fn is_identity(&self) -> bool
Determine if the group element is the identity.
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.