Skip to main content

UnwrapOptionExt

Trait UnwrapOptionExt 

Source
pub trait UnwrapOptionExt<T> {
    // Required methods
    unsafe fn unwrap_unchecked_release(self) -> T;
    unsafe fn expect_unchecked_release(self, msg: &str) -> T;
}

Required Methods§

Source

unsafe fn unwrap_unchecked_release(self) -> T

Source

unsafe fn expect_unchecked_release(self, msg: &str) -> T

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> UnwrapOptionExt<T> for Option<T>

Source§

unsafe fn unwrap_unchecked_release(self) -> T

Source§

unsafe fn expect_unchecked_release(self, msg: &str) -> T

Implementors§