pub struct Row {
pub default_options: Options,
pub column_width: Option<usize>,
pub padding_size: Option<usize>,
pub cells: Vec<Cell>,
}
Expand description
Data type for creating a Row
for the grid.
Fields§
§default_options: Options
These options will be used if the equivalent is not provided
by the underlying Cell
type.
column_width: Option<usize>
Width in chars for each column of the Row
.
padding_size: Option<usize>
Number of char spaces for each padding space between row columns.
cells: Vec<Cell>
Collection of cells that this Row
contains.
Implementations§
Source§impl Row
impl Row
Sourcepub fn new_fill(content: String, col_span: usize) -> Self
pub fn new_fill(content: String, col_span: usize) -> Self
Create a new row with a specified column span filled by the repeated content.
Sourcepub fn builder(cells: Vec<Cell>) -> RowBuilder
pub fn builder(cells: Vec<Cell>) -> RowBuilder
Creates a RowBuilder
initiated with cells.
To build the final RowBuilder
call the build
method.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Row
impl RefUnwindSafe for Row
impl Send for Row
impl Sync for Row
impl Unpin for Row
impl UnwindSafe for Row
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more