pub trait PrettyPrintablewhere
Self: Display,{
// Required methods
fn write(&self, buffer: &mut BytesMut) -> usize;
fn cells(&self) -> Vec<String>;
}Expand description
If you can be pretty-printed, you write into a mutable byte buffer. We don’t have any opinions about what you write; pretty is in the eye of the implementor.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".