Skip to main content

ResultExtPanic

Trait ResultExtPanic 

Source
pub trait ResultExtPanic<V>: Sized {
    // Required methods
    fn or_panic(self, _code: u32) -> V;
    fn infallible(self, _code: u32) -> V;
}

Required Methods§

Source

fn or_panic(self, _code: u32) -> V

Source

fn infallible(self, _code: u32) -> V

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<V> ResultExtPanic<V> for Option<V>

Source§

fn or_panic(self, _code: u32) -> V

Source§

fn infallible(self, _code: u32) -> V

Source§

impl<V, EX: ErrorExtPanic> ResultExtPanic<V> for Result<V, EX>

Source§

fn or_panic(self, _code: u32) -> V

Source§

fn infallible(self, _code: u32) -> V

Implementors§