Macro cex::frame[][src]

macro_rules! frame {
    ( $expr:expr ) => { ... };
    () => { ... };
}

A macro to generate a Frame, to store the source of the error with file name, module path, line/column numbers, and an optional context info, using the same syntax with format!().

An example: frame!( "An unexpected {:?} was detect.", local_var ))