unreachable

Trait UncheckedResultExt

Source
pub trait UncheckedResultExt<T, E> {
    // Required methods
    unsafe fn unchecked_unwrap_ok(self) -> T;
    unsafe fn unchecked_unwrap_err(self) -> E;
}
Expand description

An extension trait for Result<T, E> providing unchecked unwrapping methods.

Required Methods§

Source

unsafe fn unchecked_unwrap_ok(self) -> T

Get the value out of this Result without checking for Err.

Source

unsafe fn unchecked_unwrap_err(self) -> E

Get the error out of this Result without checking for Ok.

Implementations on Foreign Types§

Source§

impl<T, E> UncheckedResultExt<T, E> for Result<T, E>

Source§

unsafe fn unchecked_unwrap_ok(self) -> T

Source§

unsafe fn unchecked_unwrap_err(self) -> E

Implementors§