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.