zerotrie::helpers

Trait DebugUnwrapOr

Source
pub(crate) trait DebugUnwrapOr<T> {
    // Required method
    fn debug_unwrap_or(self, gigo_value: T) -> T;
}

Required Methods§

Source

fn debug_unwrap_or(self, gigo_value: T) -> T

Unwraps the option or panics in debug mode, returning the gigo_value

Implementations on Foreign Types§

Source§

impl<T> DebugUnwrapOr<T> for Option<T>

Source§

fn debug_unwrap_or(self, gigo_value: T) -> T

Implementors§