pub struct GridConfig { /* private fields */ }
Expand description

This structure represents a settings of a grid.

grid: crate::Grid.

Implementations

Set a column span to a given cells.

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

Verifies if there’s any spans set.

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

Set a column span to a given cells.

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

Verifies if there’s any spans set.

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

Set a Margin value.

Returns a Margin value currently set.

Set Margin offset.

Returns a Margin offset.

Clears all theme changes. And sets it to default.

Set the Borders value as currect one.

Gets a global border value if set.

Set the all Borders values to a char.

Set tab width in spaces.

Get tab width value in spaces.

Returns a current Borders structure.

Set the border line by row index.

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

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.

Gets a overriden vertical line.

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

Set the border line by column index.

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

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.

Gets a overriden line.

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

Override the split line with a custom text.

If borders are not set the string won’t be rendered.

Gets a set text to a border line by index

Gets a set text to a border line by index

Removes a split line text if any set.

Override a character on a horizontal line.

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

Get a list of overriden chars in a horizontal border.

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

Removes a list of overriden chars in a horizontal border.

Override a vertical split line.

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

Get a list of overriden chars in a horizontal border.

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

Removes a list of overriden chars in a horizontal border.

Set a padding to a given cells.

Get a padding for a given Entity.

Set a formatting to a given cells.

Get a formatting settings for a given Entity.

Set a vertical alignment to a given cells.

Get a vertical alignment for a given Entity.

Set a horizontal alignment to a given cells.

Get a horizontal alignment for a given Entity.

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

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

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

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

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

grid: crate::Grid

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

grid: crate::Grid

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

Sets off all borders possible on the Entity.

It doesn’t changes globaly set borders through GridConfig::set_borders.

Set a character wich will be used in case any missconfiguration 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.

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

grid: crate::Grid

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

grid: crate::Grid

Returns a border of a cell.

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

grid: crate::Grid

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

grid: crate::Grid

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

grid: crate::Grid

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.