pub trait ResultExt<T> {
// Required methods
fn or_throw_msg(self, ctx: &Ctx<'_>, msg: &str) -> Result<T>;
fn or_throw_range(self, ctx: &Ctx<'_>, msg: &str) -> Result<T>;
fn or_throw_type(self, ctx: &Ctx<'_>, msg: &str) -> Result<T>;
fn or_throw(self, ctx: &Ctx<'_>) -> Result<T>;
}Required Methods§
fn or_throw_msg(self, ctx: &Ctx<'_>, msg: &str) -> Result<T>
fn or_throw_range(self, ctx: &Ctx<'_>, msg: &str) -> Result<T>
fn or_throw_type(self, ctx: &Ctx<'_>, msg: &str) -> Result<T>
fn or_throw(self, ctx: &Ctx<'_>) -> Result<T>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".