pub trait ResultMapRef<Val, Error: Copy> {
    // Required method
    fn map_ref<Out>(
        &self,
        map_fn: impl FnMut(&Val) -> Out
    ) -> Result<Out, Error>;
}

Required Methods§

source

fn map_ref<Out>(&self, map_fn: impl FnMut(&Val) -> Out) -> Result<Out, Error>

Implementations on Foreign Types§

source§

impl<Val, Error: Copy> ResultMapRef<Val, Error> for Result<Val, Error>

source§

fn map_ref<Out>(&self, map_fn: impl FnMut(&Val) -> Out) -> Result<Out, Error>

Implementors§