Skip to main content

Composable

Trait Composable 

Source
pub trait Composable<M>: Morphism
where M: Morphism<Codomain = Self::Domain>,
{ type Composed: Morphism<Domain = M::Domain, Codomain = Self::Codomain>; // Required method fn compose(self, other: M) -> Self::Composed; }

Required Associated Types§

Source

type Composed: Morphism<Domain = M::Domain, Codomain = Self::Codomain>

Required Methods§

Source

fn compose(self, other: M) -> Self::Composed

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<F, G> Composable<G> for F
where F: Morphism, G: Morphism<Codomain = F::Domain>,