program_err

Macro program_err 

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

Returns the given error as a program error.

ยงExample

let fail = false;
if fail {
    return program_err!(MyError);
}