Skip to main content

UnwrapOrBug

Trait UnwrapOrBug 

Source
pub trait UnwrapOrBug {
    type Output;

    // Required method
    fn unwrap_or_bug(self) -> Self::Output;
}

Required Associated Types§

Required Methods§

Source

fn unwrap_or_bug(self) -> Self::Output

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, E: Display> UnwrapOrBug for Result<T, E>

Source§

type Output = T

Source§

fn unwrap_or_bug(self) -> Self::Output

Source§

impl<T> UnwrapOrBug for Option<T>

Source§

type Output = T

Source§

fn unwrap_or_bug(self) -> Self::Output

Implementors§