pub struct PeekableGrid<R, G, D, C> { /* private fields */ }
Expand description
Grid provides a set of methods for building a text-based table.
Implementations§
Source§impl<R, G, D, C> PeekableGrid<R, G, D, C>
impl<R, G, D, C> PeekableGrid<R, G, D, C>
Sourcepub fn new(
records: R,
config: G,
dimension: D,
colors: C,
) -> PeekableGrid<R, G, D, C>
pub fn new( records: R, config: G, dimension: D, colors: C, ) -> PeekableGrid<R, G, D, C>
The new method creates a grid instance with default styles.
Source§impl<R, G, D, C> PeekableGrid<R, G, D, C>
impl<R, G, D, C> PeekableGrid<R, G, D, C>
Sourcepub fn build<F>(&self, f: F) -> Result<(), Error>where
R: Records + PeekableRecords + ExactRecords,
D: Dimension,
C: Colors,
G: Borrow<SpannedConfig>,
F: Write,
pub fn build<F>(&self, f: F) -> Result<(), Error>where
R: Records + PeekableRecords + ExactRecords,
D: Dimension,
C: Colors,
G: Borrow<SpannedConfig>,
F: Write,
Builds a table.
Trait Implementations§
Source§impl<R, G, D, C> Clone for PeekableGrid<R, G, D, C>
impl<R, G, D, C> Clone for PeekableGrid<R, G, D, C>
Source§fn clone(&self) -> PeekableGrid<R, G, D, C>
fn clone(&self) -> PeekableGrid<R, G, D, C>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<R, G, D, C> Debug for PeekableGrid<R, G, D, C>
impl<R, G, D, C> Debug for PeekableGrid<R, G, D, C>
Source§impl<R, G, D, C> Display for PeekableGrid<R, G, D, C>where
R: Records + PeekableRecords + ExactRecords,
D: Dimension,
C: Colors,
G: Borrow<SpannedConfig>,
impl<R, G, D, C> Display for PeekableGrid<R, G, D, C>where
R: Records + PeekableRecords + ExactRecords,
D: Dimension,
C: Colors,
G: Borrow<SpannedConfig>,
Auto Trait Implementations§
impl<R, G, D, C> Freeze for PeekableGrid<R, G, D, C>
impl<R, G, D, C> RefUnwindSafe for PeekableGrid<R, G, D, C>
impl<R, G, D, C> Send for PeekableGrid<R, G, D, C>
impl<R, G, D, C> Sync for PeekableGrid<R, G, D, C>
impl<R, G, D, C> Unpin for PeekableGrid<R, G, D, C>
impl<R, G, D, C> UnwindSafe for PeekableGrid<R, G, D, C>
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