Trait kimchi_msm::circuit_design::composition::MPrism
source · pub trait MPrism {
type Source;
type Target;
// Required methods
fn traverse(&self, source: Self::Source) -> Option<Self::Target>;
fn re_get(&self, target: Self::Target) -> Self::Source;
}
Expand description
MPrism
allows one to Something like a Prism, but for Maybe and not just any Applicative.
See