vortex_error

Type Alias VortexResult

Source
pub type VortexResult<T> = Result<T, VortexError>;
Expand description

A type alias for Results that return VortexErrors as their error type.

Aliased Type§

enum VortexResult<T> {
    Ok(T),
    Err(VortexError),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(VortexError)

Contains the error value

Trait Implementations§

Source§

impl<T> VortexExpect for VortexResult<T>

Source§

type Output = T

The type of the value being expected.
Source§

fn vortex_expect(self, msg: &str) -> 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).
Source§

impl<T> VortexUnwrap for VortexResult<T>

Source§

type Output = T

The type of the value being unwrapped.
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).