17 lines
		
	
	
		
			412 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			412 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| #![allow(clippy::integer_arithmetic)]
 | |
| mod cli_output;
 | |
| pub mod display;
 | |
| pub use cli_output::*;
 | |
| 
 | |
| pub trait QuietDisplay: std::fmt::Display {
 | |
|     fn write_str(&self, w: &mut dyn std::fmt::Write) -> std::fmt::Result {
 | |
|         write!(w, "{}", self)
 | |
|     }
 | |
| }
 | |
| 
 | |
| pub trait VerboseDisplay: std::fmt::Display {
 | |
|     fn write_str(&self, w: &mut dyn std::fmt::Write) -> std::fmt::Result {
 | |
|         write!(w, "{}", self)
 | |
|     }
 | |
| }
 |