pub trait UniformUnwrap<T>: Sized {
// Required methods
fn res(self) -> Res<T>;
fn uni_is_err(&self) -> bool;
fn uni_or_else(self, op: impl FnOnce(&str) -> T) -> T;
// Provided methods
fn fail(self) -> T { ... }
fn sink(self) { ... }
}Required Methods§
fn res(self) -> Res<T>
fn uni_is_err(&self) -> bool
fn uni_or_else(self, op: impl FnOnce(&str) -> T) -> T
Provided Methods§
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.