[−][src]Struct cli_grid::GridBuilder
Builder for the Grid
type.
Implementations
impl GridBuilder
[src]
pub fn build(self) -> Grid
[src]
Builds a Grid
from a GridBuilder
.
pub fn default_colspan(self, default_colspan: usize) -> Self
[src]
Sets the default column span for all the cells of the grid. If a cell specifies a column span it will be used instead of the grids default value.
pub fn default_h_align(self, default_h_align: HAlign) -> Self
[src]
Sets the default horizontal alignment for all the cells of the grid. If a cell specifies a horizontal alignment it will be used instead of the grids default value.
pub fn default_v_align(self, default_v_align: VAlign) -> Self
[src]
Sets the default vertical alignment for all the cells of the grid. If a cell specifies a vertical alignment it will be used instead of the grids default value.
pub fn default_blank_char(self, default_blank_char: char) -> Self
[src]
Sets the default blank char for all the cells of the grid. If a cell specifies a blank char it will be used instead of the grids default value.
pub fn column_width(self, column_width: usize) -> Self
[src]
Width of each column in the grid in number of chars.
pub fn padding_size(self, padding_size: usize) -> Self
[src]
Width of each padding space in the grid in number of chars.
Auto Trait Implementations
impl RefUnwindSafe for GridBuilder
impl Send for GridBuilder
impl Sync for GridBuilder
impl Unpin for GridBuilder
impl UnwindSafe for GridBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,