Struct libtableformat::table::table_row::TableRow [−][src]
Table rows represent horizontal breakpoints.
Implementations
impl TableRow[src]
pub fn new() -> TableRow[src]
pub fn from(cells: Vec<TableCell>) -> TableRow[src]
pub fn add_cell(&mut self, cell: TableCell)[src]
pub fn iter(self: &TableRow) -> CellIterator<'_>ⓘNotable traits for CellIterator<'a>
impl<'a> Iterator for CellIterator<'a> type Item = &'a TableCell;[src]
Notable traits for CellIterator<'a>
impl<'a> Iterator for CellIterator<'a> type Item = &'a TableCell;pub fn len(self: &TableRow) -> usize[src]
pub fn format(
self: &TableRow,
border: &Border,
column_breaks: &Vec<ColumnBreak>
) -> String[src]
self: &TableRow,
border: &Border,
column_breaks: &Vec<ColumnBreak>
) -> 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.
pub fn measure_height(
self: &TableRow,
column_breaks: &Vec<ColumnBreak>
) -> usize[src]
self: &TableRow,
column_breaks: &Vec<ColumnBreak>
) -> 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 RefUnwindSafe for TableRow
impl Send for TableRow
impl Sync for TableRow
impl Unpin for TableRow
impl UnwindSafe for TableRow
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>,