pub enum CellValue<'a> {
Single(&'a str),
Sub(Vec<&'a str>),
}Expand description
A cell value that may be a single string or a list of sub-values.
Used with TabularFormatter::format_row_cells for columns that have
sub-columns. Regular columns use Single, columns with sub-columns use Sub.
Variants§
Single(&'a str)
Single string value for a regular column.
Sub(Vec<&'a str>)
Multiple sub-values for a column with sub-columns.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for CellValue<'a>
impl<'a> RefUnwindSafe for CellValue<'a>
impl<'a> Send for CellValue<'a>
impl<'a> Sync for CellValue<'a>
impl<'a> Unpin for CellValue<'a>
impl<'a> UnsafeUnpin for CellValue<'a>
impl<'a> UnwindSafe for CellValue<'a>
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