papergrid::records::vec_records

Trait CellMut

Source
pub trait CellMut<T> {
    // Required methods
    fn set<W>(&mut self, text: T, width_ctrl: W)
       where W: WidthFunc;
    fn update<W>(&mut self, width_ctrl: W)
       where W: WidthFunc;
}
Expand description

Cell representation of VecRecords which can be modified.

Required Methods§

Source

fn set<W>(&mut self, text: T, width_ctrl: W)
where W: WidthFunc,

Sets a text to a cell.

Source

fn update<W>(&mut self, width_ctrl: W)
where W: WidthFunc,

Trigers an update a cell.

It may be caused if width function was changed.

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§

Source§

impl<'a, T> CellMut<T> for CellInfo<'a>
where T: Into<Cow<'a, str>>,