Struct tabled::grid::config::CompactMultilineConfig
source · pub struct CompactMultilineConfig { /* private fields */ }
Expand description
A CompactConfig
based configuration plus vertical alignment and formatting options.
Implementations§
source§impl CompactMultilineConfig
impl CompactMultilineConfig
sourcepub const fn new() -> Self
pub const fn new() -> Self
Create a new CompactMultilineConfig
.
sourcepub const fn from_compact(config: CompactConfig) -> Self
pub const fn from_compact(config: CompactConfig) -> Self
Create a new CompactMultilineConfig
.
sourcepub fn set_alignment_vertical(&mut self, alignment: AlignmentVertical)
pub fn set_alignment_vertical(&mut self, alignment: AlignmentVertical)
Set a horizontal alignment.
sourcepub const fn get_alignment_vertical(&self) -> AlignmentVertical
pub const fn get_alignment_vertical(&self) -> AlignmentVertical
Get a alignment horizontal.
sourcepub fn set_margin(&mut self, margin: Sides<Indent>)
pub fn set_margin(&mut self, margin: Sides<Indent>)
Set grid margin.
sourcepub const fn get_margin(&self) -> &Sides<Indent>
pub const fn get_margin(&self) -> &Sides<Indent>
Returns a grid margin.
sourcepub fn set_borders(&mut self, borders: Borders<char>)
pub fn set_borders(&mut self, borders: Borders<char>)
Set the Borders
value as correct one.
sourcepub const fn get_borders(&self) -> &Borders<char>
pub const fn get_borders(&self) -> &Borders<char>
Returns a current Borders
structure.
sourcepub const fn get_borders_color(&self) -> &Borders<ANSIStr<'static>>
pub const fn get_borders_color(&self) -> &Borders<ANSIStr<'static>>
Returns a current Borders
structure.
sourcepub fn set_padding(&mut self, padding: Sides<Indent>)
pub fn set_padding(&mut self, padding: Sides<Indent>)
Set a padding to a given cells.
sourcepub const fn get_padding(&self) -> &Sides<Indent>
pub const fn get_padding(&self) -> &Sides<Indent>
Get a padding for a given.
sourcepub fn set_alignment_horizontal(&mut self, alignment: AlignmentHorizontal)
pub fn set_alignment_horizontal(&mut self, alignment: AlignmentHorizontal)
Set a horizontal alignment.
sourcepub const fn get_alignment_horizontal(&self) -> AlignmentHorizontal
pub const fn get_alignment_horizontal(&self) -> AlignmentHorizontal
Get a alignment horizontal.
sourcepub fn set_borders_color(&mut self, borders: Borders<ANSIStr<'static>>)
pub fn set_borders_color(&mut self, borders: Borders<ANSIStr<'static>>)
Sets colors of border carcass on the grid.
sourcepub fn set_margin_color(&mut self, color: Sides<ANSIStr<'static>>)
pub fn set_margin_color(&mut self, color: Sides<ANSIStr<'static>>)
Set colors for a margin.
sourcepub const fn get_margin_color(&self) -> &Sides<ANSIStr<'static>>
pub const fn get_margin_color(&self) -> &Sides<ANSIStr<'static>>
Returns a margin color.
sourcepub fn set_padding_color(&mut self, color: Sides<ANSIStr<'static>>)
pub fn set_padding_color(&mut self, color: Sides<ANSIStr<'static>>)
Set a padding color to all cells.
sourcepub const fn get_padding_color(&self) -> &Sides<ANSIStr<'static>>
pub const fn get_padding_color(&self) -> &Sides<ANSIStr<'static>>
get a padding color.
sourcepub fn set_formatting(&mut self, formatting: Formatting)
pub fn set_formatting(&mut self, formatting: Formatting)
Set formatting.
sourcepub const fn get_formatting(&self) -> Formatting
pub const fn get_formatting(&self) -> Formatting
Get formatting.
Trait Implementations§
source§impl Clone for CompactMultilineConfig
impl Clone for CompactMultilineConfig
source§fn clone(&self) -> CompactMultilineConfig
fn clone(&self) -> CompactMultilineConfig
Returns a copy 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 Debug for CompactMultilineConfig
impl Debug for CompactMultilineConfig
source§impl Default for CompactMultilineConfig
impl Default for CompactMultilineConfig
source§impl From<CompactConfig> for CompactMultilineConfig
impl From<CompactConfig> for CompactMultilineConfig
source§fn from(config: CompactConfig) -> Self
fn from(config: CompactConfig) -> Self
Converts to this type from the input type.
source§impl From<CompactMultilineConfig> for CompactConfig
impl From<CompactMultilineConfig> for CompactConfig
source§fn from(cfg: CompactMultilineConfig) -> Self
fn from(cfg: CompactMultilineConfig) -> Self
Converts to this type from the input type.
source§impl From<CompactMultilineConfig> for SpannedConfig
Available on crate feature std
only.
impl From<CompactMultilineConfig> for SpannedConfig
Available on crate feature
std
only.source§fn from(compact: CompactMultilineConfig) -> Self
fn from(compact: CompactMultilineConfig) -> Self
Converts to this type from the input type.
source§impl Ord for CompactMultilineConfig
impl Ord for CompactMultilineConfig
source§fn cmp(&self, other: &CompactMultilineConfig) -> Ordering
fn cmp(&self, other: &CompactMultilineConfig) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for CompactMultilineConfig
impl PartialEq for CompactMultilineConfig
source§fn eq(&self, other: &CompactMultilineConfig) -> bool
fn eq(&self, other: &CompactMultilineConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for CompactMultilineConfig
impl PartialOrd for CompactMultilineConfig
source§fn partial_cmp(&self, other: &CompactMultilineConfig) -> Option<Ordering>
fn partial_cmp(&self, other: &CompactMultilineConfig) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<T, B, L, R, H, V, Data, Dims, const HSIZE: usize, const VSIZE: usize> TableOption<Data, CompactMultilineConfig, Dims> for Style<T, B, L, R, H, V, HSIZE, VSIZE>
impl<T, B, L, R, H, V, Data, Dims, const HSIZE: usize, const VSIZE: usize> TableOption<Data, CompactMultilineConfig, Dims> for Style<T, B, L, R, H, V, HSIZE, VSIZE>
source§fn change(self, _: &mut Data, cfg: &mut CompactMultilineConfig, _: &mut Dims)
fn change(self, _: &mut Data, cfg: &mut CompactMultilineConfig, _: &mut Dims)
The function modificaties of records and a grid configuration.
source§fn hint_change(&self) -> Option<Entity>
fn hint_change(&self) -> Option<Entity>
A hint whether an
TableOption
is going to change table layout. Read moresource§impl<R, D> TableOption<R, CompactMultilineConfig, D> for Alignment
impl<R, D> TableOption<R, CompactMultilineConfig, D> for Alignment
source§fn change(self, _: &mut R, cfg: &mut CompactMultilineConfig, _: &mut D)
fn change(self, _: &mut R, cfg: &mut CompactMultilineConfig, _: &mut D)
The function modificaties of records and a grid configuration.
source§fn hint_change(&self) -> Option<Entity>
fn hint_change(&self) -> Option<Entity>
A hint whether an
TableOption
is going to change table layout. Read moresource§impl<R, D> TableOption<R, CompactMultilineConfig, D> for AlignmentStrategy
Available on crate feature std
only.
impl<R, D> TableOption<R, CompactMultilineConfig, D> for AlignmentStrategy
Available on crate feature
std
only.source§fn change(self, _: &mut R, cfg: &mut CompactMultilineConfig, _: &mut D)
fn change(self, _: &mut R, cfg: &mut CompactMultilineConfig, _: &mut D)
The function modificaties of records and a grid configuration.
source§fn hint_change(&self) -> Option<Entity>
fn hint_change(&self) -> Option<Entity>
A hint whether an
TableOption
is going to change table layout. Read moresource§impl<R, D> TableOption<R, CompactMultilineConfig, D> for Borders<char>
impl<R, D> TableOption<R, CompactMultilineConfig, D> for Borders<char>
source§fn change(self, _: &mut R, cfg: &mut CompactMultilineConfig, _: &mut D)
fn change(self, _: &mut R, cfg: &mut CompactMultilineConfig, _: &mut D)
The function modificaties of records and a grid configuration.
source§fn hint_change(&self) -> Option<Entity>
fn hint_change(&self) -> Option<Entity>
A hint whether an
TableOption
is going to change table layout. Read moresource§impl<R, D> TableOption<R, CompactMultilineConfig, D> for CompactMultilineConfig
Available on crate feature std
only.
impl<R, D> TableOption<R, CompactMultilineConfig, D> for CompactMultilineConfig
Available on crate feature
std
only.source§fn change(self, _: &mut R, config: &mut CompactMultilineConfig, _: &mut D)
fn change(self, _: &mut R, config: &mut CompactMultilineConfig, _: &mut D)
The function modificaties of records and a grid configuration.
source§fn hint_change(&self) -> Option<Entity>
fn hint_change(&self) -> Option<Entity>
A hint whether an
TableOption
is going to change table layout. Read moresource§impl<R, D, C> TableOption<R, CompactMultilineConfig, D> for Margin<C>
impl<R, D, C> TableOption<R, CompactMultilineConfig, D> for Margin<C>
source§fn change(self, _: &mut R, cfg: &mut CompactMultilineConfig, _: &mut D)
fn change(self, _: &mut R, cfg: &mut CompactMultilineConfig, _: &mut D)
The function modificaties of records and a grid configuration.
source§fn hint_change(&self) -> Option<Entity>
fn hint_change(&self) -> Option<Entity>
A hint whether an
TableOption
is going to change table layout. Read moresource§impl<R, D, C> TableOption<R, CompactMultilineConfig, D> for Padding<C>
impl<R, D, C> TableOption<R, CompactMultilineConfig, D> for Padding<C>
source§fn change(self, _: &mut R, cfg: &mut CompactMultilineConfig, _: &mut D)
fn change(self, _: &mut R, cfg: &mut CompactMultilineConfig, _: &mut D)
The function modificaties of records and a grid configuration.
source§fn hint_change(&self) -> Option<Entity>
fn hint_change(&self) -> Option<Entity>
A hint whether an
TableOption
is going to change table layout. Read moresource§impl<R, D> TableOption<R, CompactMultilineConfig, D> for Theme
Available on crate feature std
only.
impl<R, D> TableOption<R, CompactMultilineConfig, D> for Theme
Available on crate feature
std
only.source§fn change(self, _: &mut R, cfg: &mut CompactMultilineConfig, _: &mut D)
fn change(self, _: &mut R, cfg: &mut CompactMultilineConfig, _: &mut D)
The function modificaties of records and a grid configuration.
source§fn hint_change(&self) -> Option<Entity>
fn hint_change(&self) -> Option<Entity>
A hint whether an
TableOption
is going to change table layout. Read moreimpl Copy for CompactMultilineConfig
impl Eq for CompactMultilineConfig
impl StructuralEq for CompactMultilineConfig
impl StructuralPartialEq for CompactMultilineConfig
Auto Trait Implementations§
impl RefUnwindSafe for CompactMultilineConfig
impl Send for CompactMultilineConfig
impl Sync for CompactMultilineConfig
impl Unpin for CompactMultilineConfig
impl UnwindSafe for CompactMultilineConfig
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