Trait typed_tableau::AppendWith
[−]
[src]
pub trait AppendWith<With> { type Out; fn with(self, o: With) -> Self::Out; }
Sugar for appending something that is already contained onto an HList
Example
use typed_tableau::*; use console::{Alignment, Style}; let columns = column::<&str>("name"). column::<f32>("weight").with( column::<bool>("is_admin").style(Style::new().green())); let cells = cell("joe").with( cell(42f32).align(Alignment::Right)). cell(true);
Associated Types
type Out
Required Methods
Implementors
impl<H, W> AppendWith<Cell<W>> for Cell<H>
impl<H, T, CellType> AppendWith<Cell<CellType>> for HCons<H, T> where
Self: Add<HCons<Cell<CellType>, HNil>>,impl<H, W> AppendWith<Column<W>> for Column<H>
impl<H, T, ColType> AppendWith<Column<ColType>> for HCons<H, T> where
Self: Add<HCons<Column<ColType>, HNil>>,