Struct term_grid::Display
[−]
[src]
pub struct Display<'grid> { /* fields omitted */ }
A displayable representation of a Grid.
Methods
impl<'grid> Display<'grid>
[src]
fn width(&self) -> Width
Returns how many columns this display takes up, based on the separator width and the number and width of the columns.
fn is_complete(&self) -> bool
Returns whether this display takes up as many columns as were allotted to it.
It's possible to construct tables that don't actually use up all the columns that they could, such as when there are more columns than cells! In this case, a column would have a width of zero. This just checks for that.
Trait Implementations
impl<'grid> PartialEq for Display<'grid>
[src]
fn eq(&self, __arg_0: &Display<'grid>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Display<'grid>) -> bool
This method tests for !=
.