Macro vortex_error::vortex_panic

source ยท
macro_rules! vortex_panic {
    (OutOfBounds: $idx:expr, $start:expr, $stop:expr) => { ... };
    (NotImplemented: $func:expr, $for_whom:expr) => { ... };
    (MismatchedTypes: $expected:literal, $actual:expr) => { ... };
    (MismatchedTypes: $expected:expr, $actual:expr) => { ... };
    (Context: $msg:literal, $err:expr) => { ... };
    ($variant:ident: $fmt:literal $(, $arg:expr)* $(,)?) => { ... };
    ($err:expr, $fmt:literal $(, $arg:expr)* $(,)?) => { ... };
    ($fmt:literal $(, $arg:expr)* $(,)?) => { ... };
    ($err:expr) => { ... };
}
Expand description

A convenient macro for panicking with a VortexError in the presence of a programmer error (e.g., an invariant has been violated).