foyer_common::assert

Trait OptionExt

source
pub trait OptionExt<T>: Sized {
    // Required method
    unsafe fn strict_unwrap_unchecked(self) -> T;
}
Expand description

Extend functions for Option.

Required Methods§

source

unsafe fn strict_unwrap_unchecked(self) -> T

Use unwrap_unchecked by default. Use unwrap when feature “strict_assertions” is enabled.

§Safety

See Option::unwrap_unchecked.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

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

source§

unsafe fn strict_unwrap_unchecked(self) -> T

Implementors§