Trait vortex_error::VortexExpect
source · pub trait VortexExpect {
type Output;
// Required method
fn vortex_expect(self, msg: &str) -> Self::Output;
}
Expand description
A trait for expect-ing a VortexResult or an Option.
Required Associated Types§
Required Methods§
sourcefn vortex_expect(self, msg: &str) -> Self::Output
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).