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