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.
pt/members/libpt-core/src/printing.rs

22 lines
483 B
Rust
Raw Normal View History

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;
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]
macro_rules! print_divider {
2023-07-09 17:53:20 +02:00
() => {{
println!("{}", divider!())
}};
}