[−][src]Struct comfy_table::Row
Methods
impl Row
[src]
pub fn new() -> Row
[src]
pub fn from<T: ToCells>(cells: T) -> Row
[src]
Create a Row from any Iter<T: ToCell>
use comfy_table::{Row, Cell}; let row = Row::from(vec!["One", "Two", "Three",]); let row = Row::from(vec![ Cell::new("One"), Cell::new("Two"), Cell::new("Three"), ]);
pub fn add_cell(&mut self, cell: Cell) -> &mut Self
[src]
Add a cell to the row
use comfy_table::{Row, Cell}; let mut row = Row::new(); row.add_cell(Cell::new("One"));
pub fn cell_count(&self) -> usize
[src]
Return the amount of cells on this row.
pub fn cell_iter(&self) -> Iter<Cell>
[src]
An iterator over all cells of this row
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Row
impl Send for Row
impl Sync for Row
impl Unpin for Row
impl UnwindSafe for Row
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,
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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.
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>,