macro_rules! anyerr {
($fmt:literal) => { ... };
($fmt:literal$(, $($arg:expr),* $(,)?)?) => { ... };
($err:expr) => { ... };
}Expand description
Converts a value into [AnyError], or formats a message.
anyerr!("msg")formats a message.anyerr!(value)convertsStackError, std error, orDisplayin [AnyError].
This uses autoref specialization to use the most details available: if given a [StackError]
it uses [AnyError::from_stack], if given a std error, uses [AnyError::from_std], if given a value
that impls Display it uses [AnyError::from_display] - in this order.