Trait PairMap
pub trait PairMap<A, B> {
// Required methods
fn map_left<U, F>(self, fx: F) -> (U, B)
where F: FnOnce(A) -> U;
fn map_right<U, F>(self, fx: F) -> (A, U)
where F: FnOnce(B) -> U;
}
Required Methods§
fn map_left<U, F>(self, fx: F) -> (U, B)where
F: FnOnce(A) -> U,
fn map_right<U, F>(self, fx: F) -> (A, U)where
F: FnOnce(B) -> U,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.