Struct libtableformat::table::table_row::TableRow[][src]

pub struct TableRow { /* fields omitted */ }

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]

pub fn len(self: &TableRow) -> usize[src]

pub fn format(
    self: &TableRow,
    border: &Border,
    column_breaks: &Vec<ColumnBreak>
) -> String
[src]

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]

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

impl Debug for TableRow[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.