[−][src]Struct term_table::row::Row
A set of table cells
Fields
cells: Vec<TableCell<'data>>
Methods
impl<'data> Row<'data>[src]
impl<'data> Row<'data>pub fn new<I, T>(cells: I) -> Row<'data> where
T: Into<TableCell<'data>>,
I: IntoIterator<Item = T>, [src]
pub fn new<I, T>(cells: I) -> Row<'data> where
T: Into<TableCell<'data>>,
I: IntoIterator<Item = T>, pub fn format(&self, column_widths: &[usize], style: &TableStyle) -> String[src]
pub fn format(&self, column_widths: &[usize], style: &TableStyle) -> StringFormats a row based on the provided table style
pub fn gen_separator(
&self,
column_widths: &[usize],
style: &TableStyle,
row_position: RowPosition,
previous_separator: Option<String>
) -> String[src]
pub fn gen_separator(
&self,
column_widths: &[usize],
style: &TableStyle,
row_position: RowPosition,
previous_separator: Option<String>
) -> StringGenerates the top separator for a row.
The previous seperator is used to determine junction characters
pub fn split_column_widths(&self) -> Vec<(f32, usize)>[src]
pub fn split_column_widths(&self) -> Vec<(f32, usize)>Returns a vector of split cell widths.
A split width is the cell's total width divided by it's col_span value.
Each cell's split width value is pushed into the resulting vector col_span times. Returns a vec of tuples containing the cell width and the min cell width
pub fn num_columns(&self) -> usize[src]
pub fn num_columns(&self) -> usizeNumber of columns in the row.
This is the sum of all cell's col_span values
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T> From for T[src]
impl<T> From for Timpl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
🔬 This is a nightly-only experimental API. (
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, fn borrow_mut(&mut self) -> &mut T[src]
fn borrow_mut(&mut self) -> &mut Timpl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>impl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId[src]
fn get_type_id(&self) -> TypeId