Struct comfy_table::Cells
source · [−]Expand description
A simple wrapper type for a Vec<Cell>
.
This wrapper is needed to support generic conversions between iterables and Vec<Cell>
.
Check the trait implementations for more docs.
Tuple Fields
0: Vec<Cell>
Trait Implementations
sourceimpl<T> From<T> for Cells where
T: IntoIterator,
T::Item: Into<Cell>,
impl<T> From<T> for Cells where
T: IntoIterator,
T::Item: Into<Cell>,
Allow the conversion of a type to a Cells, which is a simple vector of cells.
By default this is implemented for all Iterators over items implementing ToString.
use comfy_table::{Row, Cells};
let cells_string: Cells = vec!["One", "Two", "Three"].into();
let cells_integer: Cells = vec![1, 2, 3, 4].into();
Auto Trait Implementations
impl RefUnwindSafe for Cells
impl Send for Cells
impl Sync for Cells
impl Unpin for Cells
impl UnwindSafe for Cells
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more