pub trait Identity<N> {
// Required method
fn identity(&self) -> N;
}Expand description
A trait that specifies that this Operation has an identity element.
An identity must satisfy combine(a, id) = a and combine(id, a) = a, where id is
something returned by identity.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".