papergrid::records

Trait RecordsMut

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

A Grid representation of a data set which can be modified.

Required Methods§

Source

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

Sets a text to a given cell by index.

Source

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

Updates a given cell by index.

Maybe used 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<T, Q> RecordsMut<Q> for VecRecords<T>
where T: CellMut<Q>,