pub trait Group:
Clone
+ Debug
+ Eq
+ Sized
+ Add<Output = Self>
+ Sub<Output = Self>
+ Neg<Output = Self>
+ for<'a> Add<&'a Self, Output = Self>
+ for<'a> Sub<&'a Self, Output = Self>
+ AddAssign
+ SubAssign
+ for<'a> AddAssign<&'a Self>
+ for<'a> SubAssign<&'a Self> {
type SelfRef<'a>: Add<&'a Self, Output = Self> + Sub<&'a Self, Output = Self>
where Self: 'a;
const IDENTITY: Self;
// Required methods
fn double(&self) -> Self;
fn double_assign(&mut self);
// Provided method
fn is_identity(&self) -> bool { ... }
}
Required Associated Constants§
Required Associated Types§
Required Methods§
fn double(&self) -> Self
fn double_assign(&mut self)
Provided Methods§
fn is_identity(&self) -> bool
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.