pub trait Print {
// Provided method
fn print(&self)
where Self: Display { ... }
}Expand description
Loaded print trait for pretty printing tables
Provides a more convenient way to activate Display
for other types such as arrays via myarr.print(),
avoiding the need to write println!("{}", myarr);
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".