Macro may_clack::warn

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

Warn message.

Write a warning while in a prompt session.

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

§Examples

use may_clack::{intro, outro, warn};

intro!("intro");
// do stuff
warn!("warn");
// do stuff
outro!();
use may_clack::warn;

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