[−][src]Struct cli_grid::RowBuilder
Builder for the Row
type.
Implementations
impl RowBuilder
[src]
pub fn build(self) -> Row
[src]
Builds a Row
from a RowBuilder
.
pub fn default_colspan(self, default_col_span: 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]
Sets the width of each column in the Row
.
pub fn padding_size(self, padding_size: usize) -> Self
[src]
Sets the padding size between each column in the Row
.
pub fn cells(self, cells: Vec<Cell>) -> Self
[src]
Sets the cells collection of the Row
.
Auto Trait Implementations
impl RefUnwindSafe for RowBuilder
impl Send for RowBuilder
impl Sync for RowBuilder
impl Unpin for RowBuilder
impl UnwindSafe for RowBuilder
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>,