Trait unreachable::UncheckedOptionExt [−][src]
pub trait UncheckedOptionExt<T> {
unsafe fn unchecked_unwrap(self) -> T;
unsafe fn unchecked_unwrap_none(self);
}An extension trait for Option<T> providing unchecked unwrapping methods.
Required Methods
unsafe fn unchecked_unwrap(self) -> T
Get the value out of this Option without checking for None.
unsafe fn unchecked_unwrap_none(self)
Assert that this Option is a None to the optimizer.
Implementations on Foreign Types
impl<T> UncheckedOptionExt<T> for Option<T>[src]
impl<T> UncheckedOptionExt<T> for Option<T>unsafe fn unchecked_unwrap(self) -> T[src]
unsafe fn unchecked_unwrap(self) -> Tunsafe fn unchecked_unwrap_none(self)[src]
unsafe fn unchecked_unwrap_none(self)