Skip to main content

Monoidal

Trait Monoidal 

Source
pub trait Monoidal: Arrow {
    // Required methods
    fn unit() -> Self::Object;
    fn tensor(&self, other: &Self) -> Self;
}

Required Methods§

Source

fn unit() -> Self::Object

the monoidal unit object

Source

fn tensor(&self, other: &Self) -> Self

f \otimes g of two morphisms

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<K: ArrayKind, O, A> Monoidal for open_hypergraphs::strict::open_hypergraph::OpenHypergraph<K, O, A>
where K::Type<K::I>: NaturalArray<K>, K::Type<O>: Array<K, O> + PartialEq, K::Type<A>: Array<K, A>,

Source§

impl<K: ArrayKind> Monoidal for FiniteFunction<K>

Source§

impl<O: Clone + PartialEq, A: Clone> Monoidal for open_hypergraphs::lax::open_hypergraph::OpenHypergraph<O, A>