This repository has been archived on 2024-10-16. You can view files and clone it, but cannot push or open issues or pull requests.
2023-07-09 17:53:20 +02:00
|
|
|
//! # tools that make printing stuff better
|
|
|
|
|
|
|
|
// reimport our macros to this module, so the user does not get confused when importing the macros
|
2023-07-09 18:08:18 +02:00
|
|
|
pub use crate::divider;
|
2023-07-09 19:08:55 +02:00
|
|
|
pub use crate::print_divider;
|
|
|
|
|
2023-07-09 17:53:20 +02:00
|
|
|
/// Quickly get a one line visual divider
|
|
|
|
#[macro_export]
|
|
|
|
macro_rules! divider {
|
|
|
|
() => {{
|
|
|
|
format!("{:=^80}", "=")
|
|
|
|
}};
|
|
|
|
}
|
|
|
|
|
|
|
|
/// Quickly print a one line visual divider
|
|
|
|
#[macro_export]
|
2023-07-09 19:08:55 +02:00
|
|
|
macro_rules! print_divider {
|
2023-07-09 17:53:20 +02:00
|
|
|
() => {{
|
|
|
|
println!("{}", divider!())
|
|
|
|
}};
|
|
|
|
}
|