Trait crossbeam_ok::CrossbeamOk

source ·
pub trait CrossbeamOk<T> {
    // Required method
    fn cb_ok(self) -> Option<T>;
}
Expand description

convert a Result<T,E> into Option<T>, dropping the error E

The implementation is currently identical to std::result::Result::ok() but could be used in the future to panic or log a warning.

Required Methods§

source

fn cb_ok(self) -> Option<T>

Implementations on Foreign Types§

source§

impl<T, E> CrossbeamOk<T> for Result<T, SendError<E>>

source§

fn cb_ok(self) -> Option<T>

Implementors§