Struct libtableformat::table::row::Row [−][src]
Table rows represent horizontal breakpoints.
Implementations
impl Row[src]
#[must_use]pub fn new() -> Row[src]
#[must_use]pub fn from(cells: Vec<Cell>) -> Row[src]
pub fn add_cell(&mut self, cell: Cell)[src]
#[must_use]pub fn iter(self: &Row) -> CellIterator<'_>ⓘNotable traits for CellIterator<'a>
impl<'a> Iterator for CellIterator<'a> type Item = &'a Cell;[src]
Notable traits for CellIterator<'a>
impl<'a> Iterator for CellIterator<'a> type Item = &'a Cell;#[must_use]pub fn len(self: &Row) -> usize[src]
#[must_use]pub fn is_empty(self: &Row) -> bool[src]
#[must_use]pub fn format(
self: &Row,
border: &Border,
column_breaks: &[CellWidth]
) -> String[src]
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.
#[must_use]pub fn measure_height(self: &Row, column_breaks: &[CellWidth]) -> usize[src]
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 RefUnwindSafe for Row
impl Send for Row
impl Sync for Row
impl Unpin for Row
impl UnwindSafe for Row
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,