[−][src]Trait alloc_wg::UncheckedResultExt
An extension trait for Result<T, E> providing unchecked unwrapping.
Required methods
unsafe fn unwrap_unchecked(self) -> T
Unwraps a Result, yielding the content of an Ok.
Safety
The Result has to be Ok
Example
use alloc_wg::UncheckedResultExt; let x: Result<u32, &str> = Ok(2); unsafe { assert_eq!(x.unwrap_unchecked(), 2); }