Trait citadel_sdk::prelude::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,

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

§

impl<A, B> PairMap<A, B> for (A, B)

§

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,

Implementors§