Trait vortex_error::VortexUnwrap

source ·
pub trait VortexUnwrap {
    type Output;

    // Required method
    fn vortex_unwrap(self) -> Self::Output;
}
Expand description

A trait for unwrapping a VortexResult.

Required Associated Types§

source

type Output

The type of the value being unwrapped.

Required Methods§

source

fn vortex_unwrap(self) -> Self::Output

Returns the value of the result if it is Ok, otherwise panics with the error. Should be called only in contexts where the error condition represents a bug (programmer error).

Implementations on Foreign Types§

source§

impl<T, E> VortexUnwrap for Result<T, E>
where E: Into<VortexError>,

source§

type Output = T

source§

fn vortex_unwrap(self) -> Self::Output

Implementors§