#![forbid(warnings)]
#![warn(
missing_copy_implementations,
trivial_casts,
trivial_numeric_casts,
unsafe_code,
unused_extern_crates,
unused_import_braces,
unused_qualifications,
unused_results,
variant_size_differences
)]
#![deny(clippy::all, clippy::pedantic)]
#[doc(hidden)]
pub mod unnamed;
#[macro_export]
macro_rules! prnt_ln {
($arg:tt) => {
$crate::unnamed::write(None, $arg, true);
};
($($arg:tt)*) => {
#[allow(clippy::useless_format)]
$crate::unnamed::write(None, &format!($($arg)*), true);
};
}
#[macro_export]
macro_rules! black_ln {
($arg:tt) => {
$crate::unnamed::write(Some($crate::unnamed::BLACK), $arg, true);
};
($($arg:tt)*) => {
#[allow(clippy::useless_format)]
$crate::unnamed::write(Some($crate::unnamed::BLACK), &format!($($arg)*), true);
};
}
#[macro_export]
macro_rules! red_ln {
($arg:tt) => {
$crate::unnamed::write(Some($crate::unnamed::RED), $arg, true);
};
($($arg:tt)*) => {
#[allow(clippy::useless_format)]
$crate::unnamed::write(Some($crate::unnamed::RED), &format!($($arg)*), true);
};
}
#[macro_export]
macro_rules! green_ln {
($arg:tt) => {
$crate::unnamed::write(Some($crate::unnamed::GREEN), $arg, true);
};
($($arg:tt)*) => {
#[allow(clippy::useless_format)]
$crate::unnamed::write(Some($crate::unnamed::GREEN), &format!($($arg)*), true);
};
}
#[macro_export]
macro_rules! yellow_ln {
($arg:tt) => {
$crate::unnamed::write(Some($crate::unnamed::YELLOW), $arg, true);
};
($($arg:tt)*) => {
#[allow(clippy::useless_format)]
$crate::unnamed::write(Some($crate::unnamed::YELLOW), &format!($($arg)*), true);
};
}
#[macro_export]
macro_rules! blue_ln {
($arg:tt) => {
$crate::unnamed::write(Some($crate::unnamed::BLUE), $arg, true);
};
($($arg:tt)*) => {
#[allow(clippy::useless_format)]
$crate::unnamed::write(Some($crate::unnamed::BLUE), &format!($($arg)*), true);
};
}
#[macro_export]
macro_rules! magenta_ln {
($arg:tt) => {
$crate::unnamed::write(Some($crate::unnamed::MAGENTA), $arg, true);
};
($($arg:tt)*) => {
#[allow(clippy::useless_format)]
$crate::unnamed::write(Some($crate::unnamed::MAGENTA), &format!($($arg)*), true);
};
}
#[macro_export]
macro_rules! cyan_ln {
($arg:tt) => {
$crate::unnamed::write(Some($crate::unnamed::CYAN), $arg, true);
};
($($arg:tt)*) => {
#[allow(clippy::useless_format)]
$crate::unnamed::write(Some($crate::unnamed::CYAN), &format!($($arg)*), true);
};
}
#[macro_export]
macro_rules! white_ln {
($arg:tt) => {
$crate::unnamed::write(Some($crate::unnamed::WHITE), $arg, true);
};
($($arg:tt)*) => {
#[allow(clippy::useless_format)]
$crate::unnamed::write(Some($crate::unnamed::WHITE), &format!($($arg)*), true);
};
}
#[macro_export]
macro_rules! dark_black_ln {
($arg:tt) => {
$crate::unnamed::write(Some($crate::unnamed::DARK_BLACK), $arg, true);
};
($($arg:tt)*) => {
#[allow(clippy::useless_format)]
$crate::unnamed::write(Some($crate::unnamed::DARK_BLACK), &format!($($arg)*), true);
};
}
#[macro_export]
macro_rules! dark_red_ln {
($arg:tt) => {
$crate::unnamed::write(Some($crate::unnamed::DARK_RED), $arg, true);
};
($($arg:tt)*) => {
#[allow(clippy::useless_format)]
$crate::unnamed::write(Some($crate::unnamed::DARK_RED), &format!($($arg)*), true);
};
}
#[macro_export]
macro_rules! dark_green_ln {
($arg:tt) => {
$crate::unnamed::write(Some($crate::unnamed::DARK_GREEN), $arg, true);
};
($($arg:tt)*) => {
#[allow(clippy::useless_format)]
$crate::unnamed::write(Some($crate::unnamed::DARK_GREEN), &format!($($arg)*), true);
};
}
#[macro_export]
macro_rules! dark_yellow_ln {
($arg:tt) => {
$crate::unnamed::write(Some($crate::unnamed::DARK_YELLOW), $arg, true);
};
($($arg:tt)*) => {
#[allow(clippy::useless_format)]
$crate::unnamed::write(Some($crate::unnamed::DARK_YELLOW), &format!($($arg)*), true);
};
}
#[macro_export]
macro_rules! dark_blue_ln {
($arg:tt) => {
$crate::unnamed::write(Some($crate::unnamed::DARK_BLUE), $arg, true);
};
($($arg:tt)*) => {
#[allow(clippy::useless_format)]
$crate::unnamed::write(Some($crate::unnamed::DARK_BLUE), &format!($($arg)*), true);
};
}
#[macro_export]
macro_rules! dark_magenta_ln {
($arg:tt) => {
$crate::unnamed::write(Some($crate::unnamed::DARK_MAGENTA), $arg, true);
};
($($arg:tt)*) => {
#[allow(clippy::useless_format)]
$crate::unnamed::write(Some($crate::unnamed::DARK_MAGENTA), &format!($($arg)*), true);
};
}
#[macro_export]
macro_rules! dark_cyan_ln {
($arg:tt) => {
$crate::unnamed::write(Some($crate::unnamed::DARK_CYAN), $arg, true);
};
($($arg:tt)*) => {
#[allow(clippy::useless_format)]
$crate::unnamed::write(Some($crate::unnamed::DARK_CYAN), &format!($($arg)*), true);
};
}
#[macro_export]
macro_rules! dark_white_ln {
($arg:tt) => {
$crate::unnamed::write(Some($crate::unnamed::DARK_WHITE), $arg, true);
};
($($arg:tt)*) => {
#[allow(clippy::useless_format)]
$crate::unnamed::write(Some($crate::unnamed::DARK_WHITE), &format!($($arg)*), true);
};
}
#[macro_export]
macro_rules! prnt {
($arg:tt) => {
$crate::unnamed::write(None, $arg, false);
};
($($arg:tt)*) => {
#[allow(clippy::useless_format)]
$crate::unnamed::write(None, &format!($($arg)*), false);
};
}
#[macro_export]
macro_rules! black {
($arg:tt) => {
$crate::unnamed::write(Some($crate::unnamed::BLACK), $arg, false);
};
($($arg:tt)*) => {
#[allow(clippy::useless_format)]
$crate::unnamed::write(Some($crate::unnamed::BLACK), &format!($($arg)*), false);
};
}
#[macro_export]
macro_rules! red {
($arg:tt) => {
$crate::unnamed::write(Some($crate::unnamed::RED), $arg, false);
};
($($arg:tt)*) => {
#[allow(clippy::useless_format)]
$crate::unnamed::write(Some($crate::unnamed::RED), &format!($($arg)*), false);
};
}
#[macro_export]
macro_rules! green {
($arg:tt) => {
$crate::unnamed::write(Some($crate::unnamed::GREEN), $arg, false);
};
($($arg:tt)*) => {
#[allow(clippy::useless_format)]
$crate::unnamed::write(Some($crate::unnamed::GREEN), &format!($($arg)*), false);
};
}
#[macro_export]
macro_rules! yellow {
($arg:tt) => {
$crate::unnamed::write(Some($crate::unnamed::YELLOW), $arg, false);
};
($($arg:tt)*) => {
#[allow(clippy::useless_format)]
$crate::unnamed::write(Some($crate::unnamed::YELLOW), &format!($($arg)*), false);
};
}
#[macro_export]
macro_rules! blue {
($arg:tt) => {
$crate::unnamed::write(Some($crate::unnamed::BLUE), $arg, false);
};
($($arg:tt)*) => {
#[allow(clippy::useless_format)]
$crate::unnamed::write(Some($crate::unnamed::BLUE), &format!($($arg)*), false);
};
}
#[macro_export]
macro_rules! magenta {
($arg:tt) => {
$crate::unnamed::write(Some($crate::unnamed::MAGENTA), $arg, false);
};
($($arg:tt)*) => {
#[allow(clippy::useless_format)]
$crate::unnamed::write(Some($crate::unnamed::MAGENTA), &format!($($arg)*), false);
};
}
#[macro_export]
macro_rules! cyan {
($arg:tt) => {
$crate::unnamed::write(Some($crate::unnamed::CYAN), $arg, false);
};
($($arg:tt)*) => {
#[allow(clippy::useless_format)]
$crate::unnamed::write(Some($crate::unnamed::CYAN), &format!($($arg)*), false);
};
}
#[macro_export]
macro_rules! white {
($arg:tt) => {
$crate::unnamed::write(Some($crate::unnamed::WHITE), $arg, false);
};
($($arg:tt)*) => {
#[allow(clippy::useless_format)]
$crate::unnamed::write(Some($crate::unnamed::WHITE), &format!($($arg)*), false);
};
}
#[macro_export]
macro_rules! dark_black {
($arg:tt) => {
$crate::unnamed::write(Some($crate::unnamed::DARK_BLACK), $arg, false);
};
($($arg:tt)*) => {
#[allow(clippy::useless_format)]
$crate::unnamed::write(Some($crate::unnamed::DARK_BLACK), &format!($($arg)*), false);
};
}
#[macro_export]
macro_rules! dark_red {
($arg:tt) => {
$crate::unnamed::write(Some($crate::unnamed::DARK_RED), $arg, false);
};
($($arg:tt)*) => {
#[allow(clippy::useless_format)]
$crate::unnamed::write(Some($crate::unnamed::DARK_RED), &format!($($arg)*), false);
};
}
#[macro_export]
macro_rules! dark_green {
($arg:tt) => {
$crate::unnamed::write(Some($crate::unnamed::DARK_GREEN), $arg, false);
};
($($arg:tt)*) => {
#[allow(clippy::useless_format)]
$crate::unnamed::write(Some($crate::unnamed::DARK_GREEN), &format!($($arg)*), false);
};
}
#[macro_export]
macro_rules! dark_yellow {
($arg:tt) => {
$crate::unnamed::write(Some($crate::unnamed::DARK_YELLOW), $arg, false);
};
($($arg:tt)*) => {
#[allow(clippy::useless_format)]
$crate::unnamed::write(Some($crate::unnamed::DARK_YELLOW), &format!($($arg)*), false);
};
}
#[macro_export]
macro_rules! dark_blue {
($arg:tt) => {
$crate::unnamed::write(Some($crate::unnamed::DARK_BLUE), $arg, false);
};
($($arg:tt)*) => {
#[allow(clippy::useless_format)]
$crate::unnamed::write(Some($crate::unnamed::DARK_BLUE), &format!($($arg)*), false);
};
}
#[macro_export]
macro_rules! dark_magenta {
($arg:tt) => {
$crate::unnamed::write(Some($crate::unnamed::DARK_MAGENTA), $arg, false);
};
($($arg:tt)*) => {
#[allow(clippy::useless_format)]
$crate::unnamed::write(Some($crate::unnamed::DARK_MAGENTA), &format!($($arg)*), false);
};
}
#[macro_export]
macro_rules! dark_cyan {
($arg:tt) => {
$crate::unnamed::write(Some($crate::unnamed::DARK_CYAN), $arg, false);
};
($($arg:tt)*) => {
#[allow(clippy::useless_format)]
$crate::unnamed::write(Some($crate::unnamed::DARK_CYAN), &format!($($arg)*), false);
};
}
#[macro_export]
macro_rules! dark_white {
($arg:tt) => {
$crate::unnamed::write(Some($crate::unnamed::DARK_WHITE), $arg, false);
};
($($arg:tt)*) => {
#[allow(clippy::useless_format)]
$crate::unnamed::write(Some($crate::unnamed::DARK_WHITE), &format!($($arg)*), false);
};
}