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
Required Associated Types§
Required Methods§
fn traverse(&self, source: Self::Source) -> Option<Self::Target>
fn re_get(&self, target: Self::Target) -> Self::Source
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".