Tabled

Trait Tabled 

Source
pub trait Tabled {
    // Required methods
    fn headers() -> Vec<String>;
    fn row(&self) -> Vec<String>;
}
Expand description

A trait for data structures that can be represented as a table row.

Required Methods§

Source

fn headers() -> Vec<String>

Returns the headers for the table.

Source

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

Returns the data for a single row.

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§