tabled

Trait CellOption

Source
pub trait CellOption<R> {
    // Required method
    fn change_cell(&mut self, table: &mut Table<R>, entity: Entity);
}
Expand description

A trait for configuring a single cell. Where cell represented by ‘row’ and ‘column’ indexes.

A cell can be targeted by Cell.

Required Methods§

Source

fn change_cell(&mut self, table: &mut Table<R>, entity: Entity)

Modification function of a single cell.

Implementations on Foreign Types§

Source§

impl<R> CellOption<R> for String

Source§

fn change_cell(&mut self, table: &mut Table<R>, entity: Entity)

Implementors§

Source§

impl<F, R> CellOption<R> for Format<F>
where F: FnMut(&str) -> String, R: Records + RecordsMut<String>,

Source§

impl<F, R> CellOption<R> for FormatWithIndex<F>
where F: FnMut(&str, (usize, usize)) -> String, R: Records + RecordsMut<String>,

Source§

impl<F, R> CellOption<R> for F
where F: FnMut(&str) -> String, R: Records + RecordsMut<String>,

Source§

impl<M1, M2, R> CellOption<R> for CellSettingsList<M1, M2>
where M1: CellOption<R>, M2: CellOption<R>,

Source§

impl<R> CellOption<R> for Alignment

Source§

impl<R> CellOption<R> for AlignmentStrategy

Source§

impl<R> CellOption<R> for TrimStrategy

Source§

impl<R> CellOption<R> for Padding

Source§

impl<R> CellOption<R> for Span
where R: Records,

Source§

impl<R> CellOption<R> for Border
where R: Records,

Source§

impl<R> CellOption<R> for BorderChar
where R: Records,

Source§

impl<W, P, R> CellOption<R> for Truncate<'_, W, P>

Source§

impl<W, P, R> CellOption<R> for Wrap<W, P>

Source§

impl<W, R> CellOption<R> for CellHeightIncrease<W>

Source§

impl<W, R> CellOption<R> for CellHeightLimit<W>

Source§

impl<W, R> CellOption<R> for MinWidth<W>