pub struct Table { /* private fields */ }Implementations§
Source§impl Table
impl Table
pub fn new(headers: impl IntoIterator<Item = impl Into<String>>) -> Self
pub fn row(self, row: impl IntoIterator<Item = impl Into<String>>) -> Self
Sourcepub fn row_styled<I, S>(self, row: I) -> Self
pub fn row_styled<I, S>(self, row: I) -> Self
Like row but each cell carries an optional Role whose style is
applied after the row is padded to the column widths. Use this for
columns where the value ("pending", "remote", "merged") carries
the semantic, and color amplifies it rather than replacing the text.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Table
impl RefUnwindSafe for Table
impl Send for Table
impl Sync for Table
impl Unpin for Table
impl UnsafeUnpin for Table
impl UnwindSafe for Table
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