Skip to main content

CellFormatter

Trait CellFormatter 

Source
pub trait CellFormatter: Send + Sync {
    // Required method
    fn format(&self, cell: &Cell) -> String;
}
Expand description

Format a Cell value as a display string.

Implementations are Send + Sync so they can be stored in column definitions that cross thread boundaries.

Required Methods§

Source

fn format(&self, cell: &Cell) -> String

Render cell as a display string.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§