Trait OptionExt

Source
pub trait OptionExt<T> {
    // Required methods
    unsafe fn boom_some(self) -> T;
    unsafe fn boom_none(self);
    unsafe fn boom_take(&mut self) -> T;
}
Expand description

boom extensions to Option.

Required Methods§

Source

unsafe fn boom_some(self) -> T

boom assertion of Some variant.

Source

unsafe fn boom_none(self)

boom assertion of None variant.

Source

unsafe fn boom_take(&mut self) -> T

take with boom assertion.

Implementations on Foreign Types§

Source§

impl<T> OptionExt<T> for Option<T>

Source§

unsafe fn boom_some(self) -> T

Source§

unsafe fn boom_none(self)

Source§

unsafe fn boom_take(&mut self) -> T

Implementors§