pub struct CompactGrid<R, D, G, C> { /* private fields */ }
Expand description
Grid provides a set of methods for building a text-based table.
Implementations§
Source§impl<R, D, G, C> CompactGrid<R, D, G, C>
impl<R, D, G, C> CompactGrid<R, D, G, C>
Sourcepub fn new(
records: R,
config: G,
dimension: D,
colors: C,
) -> CompactGrid<R, D, G, C>
pub fn new( records: R, config: G, dimension: D, colors: C, ) -> CompactGrid<R, D, G, C>
The new method creates a grid instance with default styles.
Source§impl<R, D, G, C> CompactGrid<R, D, G, C>
impl<R, D, G, C> CompactGrid<R, D, G, C>
Sourcepub fn with_colors<Colors>(self, colors: Colors) -> CompactGrid<R, D, G, Colors>
pub fn with_colors<Colors>(self, colors: Colors) -> CompactGrid<R, D, G, Colors>
Sets colors map.
Trait Implementations§
Source§impl<R, D, G, C> Clone for CompactGrid<R, D, G, C>
impl<R, D, G, C> Clone for CompactGrid<R, D, G, C>
Source§fn clone(&self) -> CompactGrid<R, D, G, C>
fn clone(&self) -> CompactGrid<R, D, G, 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, D, G, C> Debug for CompactGrid<R, D, G, C>
impl<R, D, G, C> Debug for CompactGrid<R, D, G, C>
Source§impl<R, D, G, C> Display for CompactGrid<R, D, G, C>
impl<R, D, G, C> Display for CompactGrid<R, D, G, C>
Auto Trait Implementations§
impl<R, D, G, C> Freeze for CompactGrid<R, D, G, C>
impl<R, D, G, C> RefUnwindSafe for CompactGrid<R, D, G, C>
impl<R, D, G, C> Send for CompactGrid<R, D, G, C>
impl<R, D, G, C> Sync for CompactGrid<R, D, G, C>
impl<R, D, G, C> Unpin for CompactGrid<R, D, G, C>
impl<R, D, G, C> UnwindSafe for CompactGrid<R, D, G, 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