pub struct Decorations {
pub column_sep: String,
pub row_prefix: String,
pub row_suffix: String,
}Expand description
Decorations for table rows (separators, prefixes, suffixes).
Fields§
§column_sep: StringSeparator between columns (e.g., “ “ or “ │ “).
row_prefix: StringPrefix at the start of each row.
row_suffix: StringSuffix at the end of each row.
Implementations§
Source§impl Decorations
impl Decorations
Sourcepub fn with_separator(sep: impl Into<String>) -> Self
pub fn with_separator(sep: impl Into<String>) -> Self
Create decorations with just a column separator.
Trait Implementations§
Source§impl Clone for Decorations
impl Clone for Decorations
Source§fn clone(&self) -> Decorations
fn clone(&self) -> Decorations
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 Debug for Decorations
impl Debug for Decorations
Source§impl Default for Decorations
impl Default for Decorations
Source§fn default() -> Decorations
fn default() -> Decorations
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Decorations
impl RefUnwindSafe for Decorations
impl Send for Decorations
impl Sync for Decorations
impl Unpin for Decorations
impl UnwindSafe for Decorations
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