pub trait OrThrow<T> {
// Required method
fn or_throw<E: Exn>(self, exn: E) -> T;
}Expand description
Extension trait for replacing an error with a contract exception.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".