Trait lattices::LatticeMorphism

source ·
pub trait LatticeMorphism<LatIn> {
    type Output;

    // Required method
    fn call(&mut self, lat_in: LatIn) -> Self::Output;
}
Expand description

Semilattice morphism. Lattice merge must distribute over this unary function.

Use crate::test::check_lattice_morphism to spot-test an implementation.

See the lattice math doc’s lattice morphism section.

Required Associated Types§

source

type Output

The output lattice type.

Required Methods§

source

fn call(&mut self, lat_in: LatIn) -> Self::Output

Executes the function.

Implementors§