Struct text_grid::Cell

source ·
pub struct Cell<T> { /* private fields */ }
Expand description

Implementation of CellSource that can specify styles.

Implementations§

Create a new Cell with specified CellSource and empty style.

Return the cell with horizontal alignment set to the left.

Return the cell with horizontal alignment set to the right.

Return the cell with horizontal alignment set to the center.

Return the cell with an empty style replaced by the specified style.

Judgment as to whether the style is empty or not is done for each individual element.

Create a new Cell with empty string and empty style.

Trait Implementations§

Output the cell text to given buffer.
Return cell’s style.
Return cell’s default style that associated with Self type.

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 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.