format_err

Macro format_err 

Source
macro_rules! format_err {
    ($msg:literal $(,)?) => { ... };
    ($field:ident, $msg:ident) => { ... };
    ($field:expr, $($arg:tt)*) => { ... };
}
Expand description

Macro to format an error.

§Arguments

  • $msg - The error message.
  • $field - The field associated with the error.
  • $arg - Additional arguments for the error message.

§Returns

An Error instance.