wgpu_types::assertions

Trait StrictAssertUnwrapExt

Source
pub trait StrictAssertUnwrapExt<T> {
    // Required method
    unsafe fn strict_unwrap_unchecked(self) -> T;
}
Expand description

Unwrapping using strict_asserts

Required Methods§

Source

unsafe fn strict_unwrap_unchecked(self) -> T

Unchecked unwrap, with a strict_assert backed assertion of validitly.

§Safety

It must be valid to call unwrap_unchecked on this value.

Implementations on Foreign Types§

Source§

impl<T> StrictAssertUnwrapExt<T> for Option<T>

Source§

unsafe fn strict_unwrap_unchecked(self) -> T

Source§

impl<T, E> StrictAssertUnwrapExt<T> for Result<T, E>

Source§

unsafe fn strict_unwrap_unchecked(self) -> T

Implementors§