[][src]Trait mod_utilities::UnwrapUnchecked

pub trait UnwrapUnchecked {
    type Result;
    unsafe fn unwrap_unchecked(self) -> Self::Result;
}

Allows unsafely unwrapping a container value without checking if it is valid

Associated Types

type Result

The type of the inner value of the container yielded by unwrap_unchecked

Loading content...

Required methods

unsafe fn unwrap_unchecked(self) -> Self::Result

Unwrap a container value and return its result type.

Safety

If debug asserts are not enabled, no check is performed for the validity of the value, and it is up to the callee to ensure the result value is available.

Loading content...

Implementations on Foreign Types

impl<T> UnwrapUnchecked for Option<T>[src]

type Result = T

impl<R, E: Debug> UnwrapUnchecked for Result<R, E>[src]

type Result = R

Loading content...

Implementors

Loading content...