Prettiable

Trait Prettiable 

Source
pub trait Prettiable: Display {
    // Provided methods
    fn as_table(list: Vec<&Self>) -> Result<TableDisplay, EpochError>
       where for<'a> Vec<&'a Self>: Table + WithTitle { ... }
    fn show_as_log(&self) { ... }
    fn as_log(&self) -> String { ... }
}
Expand description

Elements that can be rendered into a pretty, human-readable form.

Provided Methods§

Source

fn as_table(list: Vec<&Self>) -> Result<TableDisplay, EpochError>
where for<'a> Vec<&'a Self>: Table + WithTitle,

Shows many items as a table.

Source

fn show_as_log(&self)

Displays the struct as a log entry by printing the output of as_log() to stdout.

Source

fn as_log(&self) -> String

Converts the struct into a pretty log string.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§