Trait unreachable::UncheckedResultExt
[−]
[src]
pub trait UncheckedResultExt<T, E> { unsafe fn unchecked_unwrap_ok(self) -> T; unsafe fn unchecked_unwrap_err(self) -> E; }
An extension trait for Result<T, E>
providing unchecked unwrapping methods.
Required Methods
unsafe fn unchecked_unwrap_ok(self) -> T
Get the value out of this Result without checking for Err.
unsafe fn unchecked_unwrap_err(self) -> E
Get the error out of this Result without checking for Ok.
Implementations on Foreign Types
impl<T, E> UncheckedResultExt<T, E> for Result<T, E>
[src]
impl<T, E> UncheckedResultExt<T, E> for Result<T, E>
unsafe fn unchecked_unwrap_ok(self) -> T
[src]
unsafe fn unchecked_unwrap_ok(self) -> T
unsafe fn unchecked_unwrap_err(self) -> E
[src]
unsafe fn unchecked_unwrap_err(self) -> E