pub struct WhitespaceTable { /* private fields */ }Expand description
WhitespaceTable
Implementations§
Source§impl WhitespaceTable
impl WhitespaceTable
Sourcepub fn new(headers: impl IntoIterator<Item = impl Into<String>>) -> Self
pub fn new(headers: impl IntoIterator<Item = impl Into<String>>) -> Self
Build a whitespace-aligned table from header labels.
Sourcepub fn push_row(&mut self, row: impl IntoIterator<Item = impl Into<String>>)
pub fn push_row(&mut self, row: impl IntoIterator<Item = impl Into<String>>)
Append one row, padding missing cells as empty strings.
Trait Implementations§
Source§impl Clone for WhitespaceTable
impl Clone for WhitespaceTable
Source§fn clone(&self) -> WhitespaceTable
fn clone(&self) -> WhitespaceTable
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WhitespaceTable
impl Debug for WhitespaceTable
Source§impl PartialEq for WhitespaceTable
impl PartialEq for WhitespaceTable
Source§fn eq(&self, other: &WhitespaceTable) -> bool
fn eq(&self, other: &WhitespaceTable) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for WhitespaceTable
impl StructuralPartialEq for WhitespaceTable
Auto Trait Implementations§
impl Freeze for WhitespaceTable
impl RefUnwindSafe for WhitespaceTable
impl Send for WhitespaceTable
impl Sync for WhitespaceTable
impl Unpin for WhitespaceTable
impl UnsafeUnpin for WhitespaceTable
impl UnwindSafe for WhitespaceTable
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