Trait Conjugate
pub unsafe trait Conjugate: Entity {
type Conj: Entity + Conjugate<Conj = Self, Canonical = Self::Canonical>;
type Canonical: Entity + Conjugate<Canonical = Self::Canonical>;
// Required method
fn canonicalize(self) -> Self::Canonical;
}
Expand description
Trait for types that may be implicitly conjugated.
§Safety
The associated types and functions must fulfill their respective contracts.
Required Associated Types§
Required Methods§
fn canonicalize(self) -> Self::Canonical
fn canonicalize(self) -> Self::Canonical
Performs the implicit conjugation operation on the given value, returning the canonical form.
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.