Skip to main content

PrettyPrintable

Trait PrettyPrintable 

Source
pub trait PrettyPrintable
where 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§

Source

fn write(&self, buffer: &mut BytesMut) -> usize

Source

fn cells(&self) -> Vec<String>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§