unreachable

Trait UncheckedOptionExt

Source
pub trait UncheckedOptionExt<T> {
    // Required methods
    unsafe fn unchecked_unwrap(self) -> T;
    unsafe fn unchecked_unwrap_none(self);
}
Expand description

An extension trait for Option<T> providing unchecked unwrapping methods.

Required Methods§

Source

unsafe fn unchecked_unwrap(self) -> T

Get the value out of this Option without checking for None.

Source

unsafe fn unchecked_unwrap_none(self)

Assert that this Option is a None to the optimizer.

Implementations on Foreign Types§

Source§

impl<T> UncheckedOptionExt<T> for Option<T>

Source§

unsafe fn unchecked_unwrap(self) -> T

Source§

unsafe fn unchecked_unwrap_none(self)

Implementors§