Skip to main content

MapRef

Trait MapRef 

Source
pub trait MapRef<T, E> {
    // Required method
    fn map_ref<U, F>(self, op: F) -> Result<U, E>
       where F: FnOnce(&T) -> U;
}

Required Methods§

Source

fn map_ref<U, F>(self, op: F) -> Result<U, E>
where F: FnOnce(&T) -> 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.

Implementors§

Source§

impl<T, E> MapRef<T, E> for Result<T, E>