OptionExt

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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so 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§