pub struct Row { /* private fields */ }
Expand description
Table rows represent horizontal breakpoints.
Implementations§
Source§impl Row
impl Row
pub fn new() -> Row
pub fn from(cells: Vec<Cell>) -> Row
pub fn add_cell(&mut self, cell: Cell)
pub fn iter(self: &Row) -> CellIterator<'_> ⓘ
pub fn len(self: &Row) -> usize
pub fn is_empty(self: &Row) -> bool
Sourcepub fn format(
self: &Row,
border: &Border,
column_breaks: &[CellWidth],
) -> String
pub fn format( self: &Row, border: &Border, column_breaks: &[CellWidth], ) -> String
Formats a table row.
§Arguments
self
- The table row to format.border
- The table border.column_breaks
- The breakpoints at which to wrap or truncate.
Sourcepub fn measure_height(self: &Row, column_breaks: &[CellWidth]) -> usize
pub fn measure_height(self: &Row, column_breaks: &[CellWidth]) -> usize
Measures the height of a table row.
§Arguments
self
- The table row being measured.columns
- The columns used to format the cells for this row.
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