Struct papergrid::grid::peekable::PeekableGrid
source · 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>
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) -> Resultwhere
R: Records + PeekableRecords + ExactRecords,
D: Dimension,
C: Colors,
G: Borrow<SpannedConfig>,
F: Write,
pub fn build<F>(self, f: F) -> Resultwhere
R: Records + PeekableRecords + ExactRecords,
D: Dimension,
C: Colors,
G: Borrow<SpannedConfig>,
F: Write,
Builds a table.
sourcepub fn to_string(self) -> Stringwhere
R: Records + PeekableRecords + ExactRecords,
D: Dimension,
G: Borrow<SpannedConfig>,
C: Colors,
pub fn to_string(self) -> Stringwhere
R: Records + PeekableRecords + ExactRecords,
D: Dimension,
G: Borrow<SpannedConfig>,
C: Colors,
Builds a table into string.
Notice that it consumes self.
Trait Implementations§
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)