Skip to main content

Print

Trait Print 

Source
pub trait Print {
    // Provided method
    fn print(&self)
       where Self: Display { ... }
}
Expand description

§Print

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§

Source

fn print(&self)
where Self: Display,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T> Print for T
where T: Display,