[−][src]Trait alloc_wg::UncheckedOptionExt
An extension trait for Option<T> providing unchecked unwrapping.
Required methods
unsafe fn unwrap_unchecked(self) -> T
Unwraps an Option, yielding the content of a Some.
Safety
The Option has to be Some
Example
use alloc_wg::UncheckedOptionExt; let x = Some("air"); unsafe { assert_eq!(x.unwrap_unchecked(), "air"); }