Skip to main content

AndThenRef

Trait AndThenRef 

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

Required Methods§

Source

fn and_then_ref<U, F>(self, op: F) -> Result<U, E>
where F: FnOnce(&T) -> Result<U, E>,

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> AndThenRef<T, E> for Result<T, E>