CompositionSignature

Trait CompositionSignature 

Source
pub trait CompositionSignature: SetSignature {
    // Required method
    fn compose(&self, a: &Self::Set, b: &Self::Set) -> Self::Set;

    // Provided method
    fn compose_mut(&self, a: &mut Self::Set, b: &Self::Set) { ... }
}
Expand description

A set with a binary operation of composition.

Required Methods§

Source

fn compose(&self, a: &Self::Set, b: &Self::Set) -> Self::Set

Provided Methods§

Source

fn compose_mut(&self, a: &mut Self::Set, b: &Self::Set)

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§

Source§

impl CompositionSignature for C2CanonicalStructure

Source§

impl CompositionSignature for algebraeon_groups::permutation::PermutationCanonicalStructure

Source§

impl<const N: usize> CompositionSignature for algebraeon_groups::examples::symmetric::PermutationCanonicalStructure<N>