Macro may_clack::cancel

source ·
macro_rules! cancel {
    () => { ... };
    ($arg:expr) => { ... };
    ($($arg:tt)*) => { ... };
}
Expand description

Cancel message.

Write a message when cancelled.

Can take either a fmt string like format!, a type that implements Display, or nothing.

§Examples

use may_clack::cancel;

// empty
cancel!();
// fmt string
cancel!("fmt {:?}", "string");
// impl Display
cancel!("text");
cancel!(4);