Macro vipers::program_err[][src]

macro_rules! program_err {
    ($error : tt $(,) ?) => { ... };
}
Expand description

Returns the given error as a program error.

Example

if fail {
    return program_err!(MyError);
}
Ok(())