pub struct ColoredConfig { /* private fields */ }
Available on crate feature std only.
Expand description

A spanned configuration plus colors for cells.

Implementations§

source§

impl ColoredConfig

source

pub fn new(config: SpannedConfig) -> Self

Create a new colored config.

source

pub fn set_color(&mut self, pos: Entity, color: ANSIBuf) -> &mut Self

Set a color for a given cell.

The outcome is the same as if you’d use Format and added a color but it’d work only with color feature on. While this method works in all contexts.

source

pub fn set_colors(&mut self, colors: EntityMap<ANSIBuf>) -> &mut Self

Set a list of colors.

source

pub fn remove_color(&mut self, pos: Entity) -> &mut Self

Remove a color for a given cell.

source

pub fn get_colors(&self) -> &ColorMap

Returns a list of colors.

source

pub fn into_inner(self) -> SpannedConfig

Returns an inner config.

Methods from Deref<Target = SpannedConfig>§

source

pub fn set_margin(&mut self, margin: Sides<Indent>)

Set a margin of a grid.

source

pub fn set_margin_color(&mut self, margin: Sides<Option<ANSIBuf>>)

Set a color of margin of a grid.

source

pub fn set_margin_offset(&mut self, margin: Sides<Offset>)

Set an offset of margin of a grid.

source

pub fn get_margin(&self) -> Sides<Indent>

Returns a margin value currently set.

source

pub fn get_margin_color(&self) -> Sides<Option<ANSIBuf>>

Returns a margin color value currently set.

source

pub fn get_margin_offset(&self) -> Sides<Offset>

Returns a margin offset value currently set.

source

pub fn remove_borders(&mut self)

Removes border changes.

source

pub fn remove_borders_colors(&mut self)

Removes border changes.

source

pub fn remove_color_line_horizontal(&mut self)

Removes border changes.

source

pub fn remove_color_line_vertical(&mut self)

Removes border changes.

source

pub fn remove_horizontal_chars(&mut self)

Removes border changes.

source

pub fn remove_vertical_chars(&mut self)

Removes border changes.

source

pub fn set_borders(&mut self, borders: Borders<char>)

Set the Borders value as correct one.

source

pub fn get_border_default(&self) -> Option<&char>

Gets a global border value if set.

source

pub fn set_border_default(&mut self, c: char)

Set the all Borders values to a char.

source

pub fn get_borders(&self) -> &Borders<char>

Returns a current Borders structure.

source

pub fn insert_horizontal_line(&mut self, line: usize, val: HorizontalLine<char>)

Set the border line by row index.

Row 0 means the top row. Row grid.count_rows() means the bottom row.

source

pub fn remove_horizontal_line(&mut self, line: usize, count_rows: usize)

Sets off the border line by row index if any were set

Row 0 means the top row. Row grid.count_rows() means the bottom row.

source

pub fn get_vertical_line(&self, line: usize) -> Option<&VerticalLine<char>>

Gets a overridden vertical line.

Row 0 means the left row. Row grid.count_columns() means the right most row.

source

pub fn get_vertical_lines(&self) -> HashMap<usize, VerticalLine<char>>

Gets all overridden vertical lines.

Row 0 means the top row. Row grid.count_rows() means the bottom row.

source

pub fn insert_vertical_line(&mut self, line: usize, val: VerticalLine<char>)

Set the border line by column index.

Row 0 means the left row. Row grid.count_columns() means the right most row.

source

pub fn remove_vertical_line(&mut self, line: usize, count_columns: usize)

Sets off the border line by column index if any were set

Row 0 means the left row. Row grid.count_columns() means the right most row.

source

pub fn get_horizontal_line(&self, line: usize) -> Option<&HorizontalLine<char>>

Gets a overridden line.

Row 0 means the top row. Row grid.count_rows() means the bottom row.

source

pub fn get_horizontal_lines(&self) -> HashMap<usize, HorizontalLine<char>>

Gets all overridden lines.

Row 0 means the top row. Row grid.count_rows() means the bottom row.

source

pub fn set_horizontal_char( &mut self, pos: (usize, usize), c: char, offset: Offset )

Override a character on a horizontal line.

If borders are not set the char won’t be used.

It takes not cell position but line as row and column of a cell; So its range is line <= count_rows && col < count_columns.

source

pub fn lookup_horizontal_char( &self, pos: (usize, usize), offset: usize, end: usize ) -> Option<char>

Get a list of overridden chars in a horizontal border.

It takes not cell position but line as row and column of a cell; So its range is line <= count_rows && col < count_columns.

source

pub fn is_overridden_horizontal(&self, pos: (usize, usize)) -> bool

Checks if there any char in a horizontal border being overridden.

It takes not cell position but line as row and column of a cell; So its range is line <= count_rows && col < count_columns.

source

pub fn remove_overridden_horizontal(&mut self, pos: (usize, usize))

Removes a list of overridden chars in a horizontal border.

It takes not cell position but line as row and column of a cell; So its range is line <= count_rows && col < count_columns.

source

pub fn set_vertical_char( &mut self, pos: (usize, usize), c: char, offset: Offset )

Override a vertical split line.

If borders are not set the char won’t be used.

It takes not cell position but cell row and column of a line; So its range is row < count_rows && col <= count_columns.

source

pub fn lookup_vertical_char( &self, pos: (usize, usize), offset: usize, end: usize ) -> Option<char>

Get a list of overridden chars in a horizontal border.

It takes not cell position but cell row and column of a line; So its range is row < count_rows && col <= count_columns.

source

pub fn is_overridden_vertical(&self, pos: (usize, usize)) -> bool

Checks if there any char in a horizontal border being overridden.

It takes not cell position but cell row and column of a line; So its range is row < count_rows && col <= count_columns.

source

pub fn remove_overridden_vertical(&mut self, pos: (usize, usize))

Removes a list of overridden chars in a horizontal border.

It takes not cell position but cell row and column of a line; So its range is row < count_rows && col <= count_columns.

source

pub fn set_horizontal_color( &mut self, pos: (usize, usize), c: ANSIBuf, offset: Offset )

Override a character color on a horizontal line.

source

pub fn lookup_horizontal_color( &self, pos: (usize, usize), offset: usize, end: usize ) -> Option<&ANSIBuf>

Get a overridden color in a horizontal border.

source

pub fn set_vertical_color( &mut self, pos: (usize, usize), c: ANSIBuf, offset: Offset )

Override a character color on a vertical line.

source

pub fn lookup_vertical_color( &self, pos: (usize, usize), offset: usize, end: usize ) -> Option<&ANSIBuf>

Get a overridden color in a vertical border.

source

pub fn set_padding(&mut self, entity: Entity, padding: Sides<Indent>)

Set a padding to a given cells.

source

pub fn set_padding_color( &mut self, entity: Entity, padding: Sides<Option<ANSIBuf>> )

Set a padding to a given cells.

source

pub fn get_padding(&self, entity: Entity) -> Sides<Indent>

Get a padding for a given Entity.

source

pub fn get_padding_color(&self, entity: Entity) -> Sides<Option<ANSIBuf>>

Get a padding color for a given Entity.

source

pub fn set_formatting(&mut self, entity: Entity, formatting: Formatting)

Set a formatting to a given cells.

source

pub fn get_formatting(&self, entity: Entity) -> &Formatting

Get a formatting settings for a given Entity.

source

pub fn set_alignment_vertical( &mut self, entity: Entity, alignment: AlignmentVertical )

Set a vertical alignment to a given cells.

source

pub fn get_alignment_vertical(&self, entity: Entity) -> &AlignmentVertical

Get a vertical alignment for a given Entity.

source

pub fn set_alignment_horizontal( &mut self, entity: Entity, alignment: AlignmentHorizontal )

Set a horizontal alignment to a given cells.

source

pub fn get_alignment_horizontal(&self, entity: Entity) -> &AlignmentHorizontal

Get a horizontal alignment for a given Entity.

source

pub fn set_border(&mut self, pos: (usize, usize), border: Border<char>)

Set border set a border value to all cells in Entity.

source

pub fn get_border( &self, pos: (usize, usize), shape: (usize, usize) ) -> Border<char>

Returns a border of a cell.

source

pub fn get_border_color( &self, pos: (usize, usize), shape: (usize, usize) ) -> Border<&ANSIBuf>

Returns a border color of a cell.

source

pub fn set_borders_missing(&mut self, c: char)

Set a character which will be used in case any misconfiguration of borders.

It will be usde for example when you set a left char for border frame and top but didn’t set a top left corner.

source

pub fn get_borders_missing(&self) -> char

Get a character which will be used in case any misconfiguration of borders.

source

pub fn get_border_color_default(&self) -> Option<&ANSIBuf>

Gets a color of all borders on the grid.

source

pub fn set_border_color_default(&mut self, clr: ANSIBuf)

Sets a color of all borders on the grid.

source

pub fn get_color_borders(&self) -> &Borders<ANSIBuf>

Gets colors of a borders carcass on the grid.

source

pub fn set_borders_color(&mut self, clrs: Borders<ANSIBuf>)

Sets colors of border carcass on the grid.

source

pub fn set_border_color(&mut self, pos: (usize, usize), border: Border<ANSIBuf>)

Sets a color of border of a cell on the grid.

source

pub fn remove_border(&mut self, pos: (usize, usize), shape: (usize, usize))

Sets off all borders possible on the Entity.

It doesn’t changes globally set borders through SpannedConfig::set_borders.

source

pub fn remove_border_color( &mut self, pos: (usize, usize), shape: (usize, usize) )

Gets a color of border of a cell on the grid.

source

pub fn get_justification(&self, entity: Entity) -> char

Get a justification which will be used while expanding cells width/height.

source

pub fn get_justification_color(&self, entity: Entity) -> Option<&ANSIBuf>

Get a justification color which will be used while expanding cells width/height.

None means no color.

source

pub fn set_justification(&mut self, entity: Entity, c: char)

Set a justification which will be used while expanding cells width/height.

source

pub fn set_justification_color( &mut self, entity: Entity, color: Option<ANSIBuf> )

Set a justification color which will be used while expanding cells width/height.

None removes it.

source

pub fn get_column_spans(&self) -> HashMap<(usize, usize), usize>

Get a span value of the cell, if any is set.

source

pub fn get_row_spans(&self) -> HashMap<(usize, usize), usize>

Get a span value of the cell, if any is set.

source

pub fn get_column_span(&self, pos: (usize, usize)) -> Option<usize>

Get a span value of the cell, if any is set.

source

pub fn get_row_span(&self, pos: (usize, usize)) -> Option<usize>

Get a span value of the cell, if any is set.

source

pub fn remove_column_spans(&mut self)

Removes column spans.

source

pub fn remove_row_spans(&mut self)

Removes row spans.

source

pub fn set_column_span(&mut self, pos: (usize, usize), span: usize)

Set a column span to a given cells.

BEWARE

IT’S CALLER RESPONSIBILITY TO MAKE SURE THAT THERE NO INTERSECTIONS IN PLACE AND THE SPAN VALUE IS CORRECT

source

pub fn has_column_spans(&self) -> bool

Verifies if there’s any spans set.

source

pub fn set_row_span(&mut self, pos: (usize, usize), span: usize)

Set a column span to a given cells.

BEWARE

IT’S CALLER RESPONSIBILITY TO MAKE SURE THAT THERE NO INTERSECTIONS IN PLACE AND THE SPAN VALUE IS CORRECT

source

pub fn has_row_spans(&self) -> bool

Verifies if there’s any spans set.

source

pub fn has_border_colors(&self) -> bool

Verifies if there’s any colors set for a borders.

source

pub fn has_offset_chars(&self) -> bool

Verifies if there’s any colors set for a borders.

source

pub fn has_justification(&self) -> bool

Verifies if there’s any colors set for a borders.

source

pub fn has_padding(&self) -> bool

Verifies if there’s any custom padding set.

source

pub fn has_padding_color(&self) -> bool

Verifies if there’s any custom padding set.

source

pub fn has_formatting(&self) -> bool

Verifies if there’s any custom formatting set.

source

pub fn has_alignemnt_vertical(&self) -> bool

Verifies if there’s any custom alignment vertical set.

source

pub fn has_alignemnt_horizontal(&self) -> bool

Verifies if there’s any custom alignment horizontal set.

source

pub fn get_intersection( &self, pos: (usize, usize), shape: (usize, usize) ) -> Option<char>

Gets an intersection character which would be rendered on the grid.

grid: crate::Grid

source

pub fn get_horizontal( &self, pos: (usize, usize), count_rows: usize ) -> Option<char>

Gets a horizontal character which would be rendered on the grid.

grid: crate::Grid

source

pub fn get_vertical( &self, pos: (usize, usize), count_columns: usize ) -> Option<char>

Gets a vertical character which would be rendered on the grid.

grid: crate::Grid

source

pub fn get_horizontal_color( &self, pos: (usize, usize), count_rows: usize ) -> Option<&ANSIBuf>

Gets a color of a cell horizontal.

source

pub fn get_vertical_color( &self, pos: (usize, usize), count_columns: usize ) -> Option<&ANSIBuf>

Gets a color of a cell vertical.

source

pub fn get_intersection_color( &self, pos: (usize, usize), shape: (usize, usize) ) -> Option<&ANSIBuf>

Gets a color of a cell vertical.

source

pub fn has_horizontal(&self, row: usize, count_rows: usize) -> bool

Checks if grid would have a horizontal border with the current configuration.

grid: crate::Grid

source

pub fn has_vertical(&self, col: usize, count_columns: usize) -> bool

Checks if grid would have a vertical border with the current configuration.

grid: crate::Grid

source

pub fn count_horizontal(&self, count_rows: usize) -> usize

Calculates an amount of horizontal lines would present on the grid.

grid: crate::Grid

source

pub fn count_vertical(&self, count_columns: usize) -> usize

Calculates an amount of vertical lines would present on the grid.

grid: crate::Grid

source

pub fn is_cell_visible(&self, pos: (usize, usize)) -> bool

The function returns whether the cells will be rendered or it will be hidden because of a span.

source

pub fn is_cell_covered_by_row_span(&self, pos: (usize, usize)) -> bool

The function checks if a cell is hidden because of a row span.

source

pub fn is_cell_covered_by_column_span(&self, pos: (usize, usize)) -> bool

The function checks if a cell is hidden because of a column span.

source

pub fn is_cell_covered_by_both_spans(&self, pos: (usize, usize)) -> bool

The function checks if a cell is hidden indirectly because of a row and column span combination.

Trait Implementations§

source§

impl AsRef<SpannedConfig> for ColoredConfig

source§

fn as_ref(&self) -> &SpannedConfig

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl<T, B, L, R, Data> CellOption<Data, ColoredConfig> for Border<T, B, L, R>
where Data: Records + ExactRecords,

source§

fn change(self, records: &mut Data, cfg: &mut ColoredConfig, entity: Entity)

Modification function of a certail part of a grid targeted by Entity.
source§

fn hint_change(&self) -> Option<Entity>

A hint whether an TableOption is going to change table layout. Read more
source§

impl<Data, T, B, L, R> CellOption<Data, ColoredConfig> for BorderColor<T, B, L, R>
where Data: Records + ExactRecords,

source§

fn change(self, records: &mut Data, cfg: &mut ColoredConfig, entity: Entity)

Modification function of a certail part of a grid targeted by Entity.
source§

fn hint_change(&self) -> Option<Entity>

A hint whether an TableOption is going to change table layout. Read more
source§

impl<R> CellOption<R, ColoredConfig> for &Color

source§

fn change(self, _: &mut R, cfg: &mut ColoredConfig, entity: Entity)

Modification function of a certail part of a grid targeted by Entity.
source§

fn hint_change(&self) -> Option<Entity>

A hint whether an TableOption is going to change table layout. Read more
source§

impl<R> CellOption<R, ColoredConfig> for Alignment

source§

fn change(self, _: &mut R, cfg: &mut ColoredConfig, entity: Entity)

Modification function of a certail part of a grid targeted by Entity.
source§

fn hint_change(&self) -> Option<Entity>

A hint whether an TableOption is going to change table layout. Read more
source§

impl<R> CellOption<R, ColoredConfig> for AlignmentStrategy

source§

fn change(self, _: &mut R, cfg: &mut ColoredConfig, entity: Entity)

Modification function of a certail part of a grid targeted by Entity.
source§

fn hint_change(&self) -> Option<Entity>

A hint whether an TableOption is going to change table layout. Read more
source§

impl<R> CellOption<R, ColoredConfig> for Border<char>
where R: Records + ExactRecords,

source§

fn change(self, records: &mut R, cfg: &mut ColoredConfig, entity: Entity)

Modification function of a certail part of a grid targeted by Entity.
source§

fn hint_change(&self) -> Option<Entity>

A hint whether an TableOption is going to change table layout. Read more
source§

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

source§

fn change(self, records: &mut R, cfg: &mut ColoredConfig, entity: Entity)

Modification function of a certail part of a grid targeted by Entity.
source§

fn hint_change(&self) -> Option<Entity>

A hint whether an TableOption is going to change table layout. Read more
source§

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

source§

fn change(self, records: &mut R, cfg: &mut ColoredConfig, entity: Entity)

Modification function of a certail part of a grid targeted by Entity.
source§

fn hint_change(&self) -> Option<Entity>

A hint whether an TableOption is going to change table layout. Read more
source§

impl<R> CellOption<R, ColoredConfig> for Color

source§

fn change(self, _: &mut R, cfg: &mut ColoredConfig, entity: Entity)

Modification function of a certail part of a grid targeted by Entity.
source§

fn hint_change(&self) -> Option<Entity>

A hint whether an TableOption is going to change table layout. Read more
source§

impl<R> CellOption<R, ColoredConfig> for ColumnSpan
where R: Records + ExactRecords,

source§

fn change(self, records: &mut R, cfg: &mut ColoredConfig, entity: Entity)

Modification function of a certail part of a grid targeted by Entity.
source§

fn hint_change(&self) -> Option<Entity>

A hint whether an TableOption is going to change table layout. Read more
source§

impl<R> CellOption<R, ColoredConfig> for Justification

source§

fn change(self, _: &mut R, cfg: &mut ColoredConfig, entity: Entity)

Modification function of a certail part of a grid targeted by Entity.
source§

fn hint_change(&self) -> Option<Entity>

A hint whether an TableOption is going to change table layout. Read more
source§

impl<R> CellOption<R, ColoredConfig> for LineChar
where R: Records + ExactRecords,

source§

fn change(self, records: &mut R, cfg: &mut ColoredConfig, entity: Entity)

Modification function of a certail part of a grid targeted by Entity.
source§

fn hint_change(&self) -> Option<Entity>

A hint whether an TableOption is going to change table layout. Read more
source§

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

source§

fn change(self, records: &mut R, cfg: &mut ColoredConfig, entity: Entity)

Modification function of a certail part of a grid targeted by Entity.
source§

fn hint_change(&self) -> Option<Entity>

A hint whether an TableOption is going to change table layout. Read more
source§

impl<R, C> CellOption<R, ColoredConfig> for Padding<C>
where C: Into<ANSIBuf> + Clone,

source§

fn change(self, _: &mut R, cfg: &mut ColoredConfig, entity: Entity)

Modification function of a certail part of a grid targeted by Entity.
source§

fn hint_change(&self) -> Option<Entity>

A hint whether an TableOption is going to change table layout. Read more
source§

impl<R> CellOption<R, ColoredConfig> for RowSpan
where R: Records + ExactRecords,

source§

fn change(self, records: &mut R, cfg: &mut ColoredConfig, entity: Entity)

Modification function of a certail part of a grid targeted by Entity.
source§

fn hint_change(&self) -> Option<Entity>

A hint whether an TableOption is going to change table layout. Read more
source§

impl<R> CellOption<R, ColoredConfig> for TrimStrategy

source§

fn change(self, _: &mut R, cfg: &mut ColoredConfig, entity: Entity)

Modification function of a certail part of a grid targeted by Entity.
source§

fn hint_change(&self) -> Option<Entity>

A hint whether an TableOption is going to change table layout. Read more
source§

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

source§

fn change(self, records: &mut R, cfg: &mut ColoredConfig, entity: Entity)

Modification function of a certail part of a grid targeted by Entity.
source§

fn hint_change(&self) -> Option<Entity>

A hint whether an TableOption is going to change table layout. Read more
source§

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

source§

fn change(self, records: &mut R, cfg: &mut ColoredConfig, entity: Entity)

Modification function of a certail part of a grid targeted by Entity.
source§

fn hint_change(&self) -> Option<Entity>

A hint whether an TableOption is going to change table layout. Read more
source§

impl Clone for ColoredConfig

source§

fn clone(&self) -> ColoredConfig

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ColoredConfig

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for ColoredConfig

source§

fn default() -> ColoredConfig

Returns the “default value” for a type. Read more
source§

impl Deref for ColoredConfig

§

type Target = SpannedConfig

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl DerefMut for ColoredConfig

source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
source§

impl<T: AsRef<str> + Cell> Estimate<&VecRecords<T>, ColoredConfig> for CompleteDimensionVecRecords<'_>

source§

fn estimate(&mut self, records: &VecRecords<T>, cfg: &ColoredConfig)

Estimates a metric.
source§

impl<R> Estimate<R, ColoredConfig> for CompleteDimension<'_>
where R: Records, <R::Iter as IntoRecords>::Cell: AsRef<str>,

source§

fn estimate(&mut self, records: R, cfg: &ColoredConfig)

Estimates a metric.
source§

impl From<ColoredConfig> for Theme

source§

fn from(cfg: ColoredConfig) -> Self

Converts to this type from the input type.
source§

impl From<SpannedConfig> for ColoredConfig

source§

fn from(value: SpannedConfig) -> Self

Converts to this type from the input type.
source§

impl PartialEq for ColoredConfig

source§

fn eq(&self, other: &ColoredConfig) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<Data, D, T, B, L, R> TableOption<Data, ColoredConfig, D> for BorderColor<T, B, L, R>
where Data: Records + ExactRecords,

source§

fn change(self, records: &mut Data, cfg: &mut ColoredConfig, _: &mut D)

The function modificaties of records and a grid configuration.
source§

fn hint_change(&self) -> Option<Entity>

A hint whether an TableOption is going to change table layout. Read more
source§

impl<T, B, L, R, H, V, Data, Dims, const HSIZE: usize, const VSIZE: usize> TableOption<Data, ColoredConfig, Dims> for Style<T, B, L, R, H, V, HSIZE, VSIZE>

source§

fn change(self, _: &mut Data, cfg: &mut ColoredConfig, _: &mut Dims)

The function modificaties of records and a grid configuration.
source§

fn hint_change(&self) -> Option<Entity>

A hint whether an TableOption is going to change table layout. Read more
source§

impl<R, W> TableOption<R, ColoredConfig, CompleteDimensionVecRecords<'_>> for CellHeightIncrease<W>

source§

fn change( self, records: &mut R, cfg: &mut ColoredConfig, dims: &mut CompleteDimensionVecRecords<'_> )

The function modificaties of records and a grid configuration.
source§

fn hint_change(&self) -> Option<Entity>

A hint whether an TableOption is going to change table layout. Read more
source§

impl<R, W> TableOption<R, ColoredConfig, CompleteDimensionVecRecords<'_>> for CellHeightLimit<W>

source§

fn change( self, records: &mut R, cfg: &mut ColoredConfig, dims: &mut CompleteDimensionVecRecords<'_> )

The function modificaties of records and a grid configuration.
source§

fn hint_change(&self) -> Option<Entity>

A hint whether an TableOption is going to change table layout. Read more
source§

impl<W, P, R> TableOption<R, ColoredConfig, CompleteDimensionVecRecords<'_>> for MinWidth<W, P>

source§

fn change( self, records: &mut R, cfg: &mut ColoredConfig, dims: &mut CompleteDimensionVecRecords<'_> )

The function modificaties of records and a grid configuration.
source§

fn hint_change(&self) -> Option<Entity>

A hint whether an TableOption is going to change table layout. Read more
source§

impl<R, W, P> TableOption<R, ColoredConfig, CompleteDimensionVecRecords<'_>> for TableHeightIncrease<W, P>

source§

fn change( self, records: &mut R, cfg: &mut ColoredConfig, dims: &mut CompleteDimensionVecRecords<'_> )

The function modificaties of records and a grid configuration.
source§

fn hint_change(&self) -> Option<Entity>

A hint whether an TableOption is going to change table layout. Read more
source§

impl<R, W, P> TableOption<R, ColoredConfig, CompleteDimensionVecRecords<'_>> for TableHeightLimit<W, P>

source§

fn change( self, records: &mut R, cfg: &mut ColoredConfig, dims: &mut CompleteDimensionVecRecords<'_> )

The function modificaties of records and a grid configuration.
source§

fn hint_change(&self) -> Option<Entity>

A hint whether an TableOption is going to change table layout. Read more
source§

impl<W, P, R> TableOption<R, ColoredConfig, CompleteDimensionVecRecords<'_>> for Truncate<'_, W, P>

source§

fn change( self, records: &mut R, cfg: &mut ColoredConfig, dims: &mut CompleteDimensionVecRecords<'_> )

The function modificaties of records and a grid configuration.
source§

fn hint_change(&self) -> Option<Entity>

A hint whether an TableOption is going to change table layout. Read more
source§

impl<W, P, R> TableOption<R, ColoredConfig, CompleteDimensionVecRecords<'_>> for Wrap<W, P>

source§

fn change( self, records: &mut R, cfg: &mut ColoredConfig, dims: &mut CompleteDimensionVecRecords<'_> )

The function modificaties of records and a grid configuration.
source§

fn hint_change(&self) -> Option<Entity>

A hint whether an TableOption is going to change table layout. Read more
source§

impl<R, D> TableOption<R, ColoredConfig, D> for &SpannedConfig

source§

fn change(self, _: &mut R, cfg: &mut ColoredConfig, _: &mut D)

The function modificaties of records and a grid configuration.
source§

fn hint_change(&self) -> Option<Entity>

A hint whether an TableOption is going to change table layout. Read more
source§

impl<R, D> TableOption<R, ColoredConfig, D> for Alignment

source§

fn change(self, _: &mut R, cfg: &mut ColoredConfig, _: &mut D)

The function modificaties of records and a grid configuration.
source§

fn hint_change(&self) -> Option<Entity>

A hint whether an TableOption is going to change table layout. Read more
source§

impl<R, D> TableOption<R, ColoredConfig, D> for AlignmentStrategy

source§

fn change(self, records: &mut R, cfg: &mut ColoredConfig, _: &mut D)

The function modificaties of records and a grid configuration.
source§

fn hint_change(&self) -> Option<Entity>

A hint whether an TableOption is going to change table layout. Read more
source§

impl<R, D> TableOption<R, ColoredConfig, D> for BorderSpanCorrection
where R: Records + ExactRecords,

source§

fn change(self, records: &mut R, cfg: &mut ColoredConfig, _: &mut D)

The function modificaties of records and a grid configuration.
source§

fn hint_change(&self) -> Option<Entity>

A hint whether an TableOption is going to change table layout. Read more
source§

impl<R, D> TableOption<R, ColoredConfig, D> for Borders<char>

source§

fn change(self, _: &mut R, cfg: &mut ColoredConfig, _: &mut D)

The function modificaties of records and a grid configuration.
source§

fn hint_change(&self) -> Option<Entity>

A hint whether an TableOption is going to change table layout. Read more
source§

impl<R, D> TableOption<R, ColoredConfig, D> for Color

source§

fn change(self, _: &mut R, cfg: &mut ColoredConfig, _: &mut D)

The function modificaties of records and a grid configuration.
source§

fn hint_change(&self) -> Option<Entity>

A hint whether an TableOption is going to change table layout. Read more
source§

impl<R, D> TableOption<R, ColoredConfig, D> for ColoredConfig

source§

fn change(self, _: &mut R, cfg: &mut ColoredConfig, _: &mut D)

The function modificaties of records and a grid configuration.
source§

fn hint_change(&self) -> Option<Entity>

A hint whether an TableOption is going to change table layout. Read more
source§

impl<R, D> TableOption<R, ColoredConfig, D> for Colorization
where R: Records + ExactRecords,

source§

fn change(self, records: &mut R, cfg: &mut ColoredConfig, _: &mut D)

The function modificaties of records and a grid configuration.
source§

fn hint_change(&self) -> Option<Entity>

A hint whether an TableOption is going to change table layout. Read more
source§

impl<R, D> TableOption<R, ColoredConfig, D> for CompactConfig

source§

fn change(self, _: &mut R, cfg: &mut ColoredConfig, _: &mut D)

The function modificaties of records and a grid configuration.
source§

fn hint_change(&self) -> Option<Entity>

A hint whether an TableOption is going to change table layout. Read more
source§

impl<R, D, O> TableOption<R, ColoredConfig, D> for ExactColorization<O>
where O: Object<R>,

source§

fn change(self, records: &mut R, cfg: &mut ColoredConfig, _: &mut D)

The function modificaties of records and a grid configuration.
source§

fn hint_change(&self) -> Option<Entity>

A hint whether an TableOption is going to change table layout. Read more
source§

impl<S, R, D> TableOption<R, ColoredConfig, D> for Footer<S>

source§

fn change(self, records: &mut R, cfg: &mut ColoredConfig, dimension: &mut D)

The function modificaties of records and a grid configuration.
source§

fn hint_change(&self) -> Option<Entity>

A hint whether an TableOption is going to change table layout. Read more
source§

impl<S, R, D> TableOption<R, ColoredConfig, D> for Header<S>

source§

fn change(self, records: &mut R, cfg: &mut ColoredConfig, dimension: &mut D)

The function modificaties of records and a grid configuration.
source§

fn hint_change(&self) -> Option<Entity>

A hint whether an TableOption is going to change table layout. Read more
source§

impl<O, R, D> TableOption<R, ColoredConfig, D> for Highlight<O>
where O: Object<R>, R: Records + ExactRecords,

source§

fn change(self, records: &mut R, cfg: &mut ColoredConfig, _: &mut D)

The function modificaties of records and a grid configuration.
source§

fn hint_change(&self) -> Option<Entity>

A hint whether an TableOption is going to change table layout. Read more
source§

impl<S, R, D> TableOption<R, ColoredConfig, D> for HorizontalPanel<S>

source§

fn change(self, records: &mut R, cfg: &mut ColoredConfig, _: &mut D)

The function modificaties of records and a grid configuration.
source§

fn hint_change(&self) -> Option<Entity>

A hint whether an TableOption is going to change table layout. Read more
source§

impl<R, D> TableOption<R, ColoredConfig, D> for Justification

source§

fn change(self, _: &mut R, cfg: &mut ColoredConfig, _: &mut D)

The function modificaties of records and a grid configuration.
source§

fn hint_change(&self) -> Option<Entity>

A hint whether an TableOption is going to change table layout. Read more
source§

impl<R, D, W> TableOption<R, ColoredConfig, D> for Justify<W>

source§

fn change(self, records: &mut R, cfg: &mut ColoredConfig, _: &mut D)

The function modificaties of records and a grid configuration.
source§

fn hint_change(&self) -> Option<Entity>

A hint whether an TableOption is going to change table layout. Read more
source§

impl<R, D> TableOption<R, ColoredConfig, D> for LineText<Column>
where R: Records + ExactRecords, for<'a> &'a R: Records, for<'a> D: Estimate<&'a R, ColoredConfig> + Dimension,

source§

fn change(self, records: &mut R, cfg: &mut ColoredConfig, dims: &mut D)

The function modificaties of records and a grid configuration.
source§

fn hint_change(&self) -> Option<Entity>

A hint whether an TableOption is going to change table layout. Read more
source§

impl<R, D> TableOption<R, ColoredConfig, D> for LineText<FirstColumn>
where R: Records + ExactRecords, for<'a> &'a R: Records, for<'a> D: Estimate<&'a R, ColoredConfig> + Dimension,

source§

fn change(self, records: &mut R, cfg: &mut ColoredConfig, dims: &mut D)

The function modificaties of records and a grid configuration.
source§

fn hint_change(&self) -> Option<Entity>

A hint whether an TableOption is going to change table layout. Read more
source§

impl<R, D> TableOption<R, ColoredConfig, D> for LineText<FirstRow>
where R: Records + ExactRecords, for<'a> &'a R: Records, for<'a> D: Estimate<&'a R, ColoredConfig> + Dimension,

source§

fn change(self, records: &mut R, cfg: &mut ColoredConfig, dims: &mut D)

The function modificaties of records and a grid configuration.
source§

fn hint_change(&self) -> Option<Entity>

A hint whether an TableOption is going to change table layout. Read more
source§

impl<R, D> TableOption<R, ColoredConfig, D> for LineText<LastColumn>
where R: Records + ExactRecords, for<'a> &'a R: Records, for<'a> D: Estimate<&'a R, ColoredConfig> + Dimension,

source§

fn change(self, records: &mut R, cfg: &mut ColoredConfig, dims: &mut D)

The function modificaties of records and a grid configuration.
source§

fn hint_change(&self) -> Option<Entity>

A hint whether an TableOption is going to change table layout. Read more
source§

impl<R, D> TableOption<R, ColoredConfig, D> for LineText<LastRow>
where R: Records + ExactRecords, for<'a> &'a R: Records, for<'a> D: Estimate<&'a R, ColoredConfig> + Dimension,

source§

fn change(self, records: &mut R, cfg: &mut ColoredConfig, dims: &mut D)

The function modificaties of records and a grid configuration.
source§

fn hint_change(&self) -> Option<Entity>

A hint whether an TableOption is going to change table layout. Read more
source§

impl<R, D> TableOption<R, ColoredConfig, D> for LineText<Row>
where R: Records + ExactRecords, for<'a> &'a R: Records, for<'a> D: Estimate<&'a R, ColoredConfig> + Dimension,

source§

fn change(self, records: &mut R, cfg: &mut ColoredConfig, dims: &mut D)

The function modificaties of records and a grid configuration.
source§

fn hint_change(&self) -> Option<Entity>

A hint whether an TableOption is going to change table layout. Read more
source§

impl<R, D, C> TableOption<R, ColoredConfig, D> for Margin<C>
where C: Into<ANSIBuf> + Clone,

source§

fn change(self, _: &mut R, cfg: &mut ColoredConfig, _: &mut D)

The function modificaties of records and a grid configuration.
source§

fn hint_change(&self) -> Option<Entity>

A hint whether an TableOption is going to change table layout. Read more
source§

impl<R, D> TableOption<R, ColoredConfig, D> for MergeDuplicatesHorizontal

source§

fn change(self, records: &mut R, cfg: &mut ColoredConfig, _: &mut D)

The function modificaties of records and a grid configuration.
source§

fn hint_change(&self) -> Option<Entity>

A hint whether an TableOption is going to change table layout. Read more
source§

impl<R, D> TableOption<R, ColoredConfig, D> for MergeDuplicatesVertical

source§

fn change(self, records: &mut R, cfg: &mut ColoredConfig, _: &mut D)

The function modificaties of records and a grid configuration.
source§

fn hint_change(&self) -> Option<Entity>

A hint whether an TableOption is going to change table layout. Read more
source§

impl<R, D, C> TableOption<R, ColoredConfig, D> for Padding<C>
where C: Into<ANSIBuf> + Clone,

source§

fn change(self, records: &mut R, cfg: &mut ColoredConfig, _: &mut D)

The function modificaties of records and a grid configuration.
source§

fn hint_change(&self) -> Option<Entity>

A hint whether an TableOption is going to change table layout. Read more
source§

impl<R, D> TableOption<R, ColoredConfig, D> for Shadow

source§

fn change(self, _: &mut R, cfg: &mut ColoredConfig, _: &mut D)

The function modificaties of records and a grid configuration.
source§

fn hint_change(&self) -> Option<Entity>

A hint whether an TableOption is going to change table layout. Read more
source§

impl<R, D> TableOption<R, ColoredConfig, D> for SpannedConfig

source§

fn change(self, _: &mut R, cfg: &mut ColoredConfig, _: &mut D)

The function modificaties of records and a grid configuration.
source§

fn hint_change(&self) -> Option<Entity>

A hint whether an TableOption is going to change table layout. Read more
source§

impl<R, D> TableOption<R, ColoredConfig, D> for Theme

source§

fn change(self, records: &mut R, cfg: &mut ColoredConfig, _: &mut D)

The function modificaties of records and a grid configuration.
source§

fn hint_change(&self) -> Option<Entity>

A hint whether an TableOption is going to change table layout. Read more
source§

impl<R, D> TableOption<R, ColoredConfig, D> for TrimStrategy

source§

fn change(self, records: &mut R, cfg: &mut ColoredConfig, _: &mut D)

The function modificaties of records and a grid configuration.
source§

fn hint_change(&self) -> Option<Entity>

A hint whether an TableOption is going to change table layout. Read more
source§

impl<S, R, D> TableOption<R, ColoredConfig, D> for VerticalPanel<S>

source§

fn change(self, records: &mut R, cfg: &mut ColoredConfig, _: &mut D)

The function modificaties of records and a grid configuration.
source§

fn hint_change(&self) -> Option<Entity>

A hint whether an TableOption is going to change table layout. Read more
source§

impl TableOption<VecRecords<CellInfo<String>>, ColoredConfig, CompleteDimensionVecRecords<'_>> for ColumnNames

source§

fn change( self, records: &mut VecRecords<CellInfo<String>>, cfg: &mut ColoredConfig, dims: &mut CompleteDimensionVecRecords<'_> )

The function modificaties of records and a grid configuration.
source§

fn hint_change(&self) -> Option<Entity>

A hint whether an TableOption is going to change table layout. Read more
source§

impl Eq for ColoredConfig

source§

impl StructuralEq for ColoredConfig

source§

impl StructuralPartialEq for ColoredConfig

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.