#[non_exhaustive]pub struct TableStyle {
pub column_spacing: u16,
pub ascending: &'static str,
pub descending: &'static str,
}Expand description
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.column_spacing: u16Cells between columns, and the ground at either end of a row. Counted when deciding what fits, so a table that narrows and a table that draws agree about the room available.
ascending: &'static strThe caret drawn after the heading of an ascending column.
Defaults to Sort::glyph. A knob because a terminal is the one host
that may not be able to draw it: a font without the geometric-shapes
block leaves a box, and "^" is a better caret than a tofu.
Bare, with no leading space: the gap is the heading’s, written once for all three states.
descending: &'static strThe caret drawn after the heading of a descending column.
Trait Implementations§
Source§impl Clone for TableStyle
impl Clone for TableStyle
impl Copy for TableStyle
Source§impl Debug for TableStyle
impl Debug for TableStyle
Source§impl Default for TableStyle
impl Default for TableStyle
impl Eq for TableStyle
Source§impl PartialEq for TableStyle
impl PartialEq for TableStyle
impl StructuralPartialEq for TableStyle
Auto Trait Implementations§
impl Forget for TableStyle
impl Freeze for TableStyle
impl RefUnwindSafe for TableStyle
impl Send for TableStyle
impl Sync for TableStyle
impl Unpin for TableStyle
impl UnsafeUnpin for TableStyle
impl UnwindSafe for TableStyle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more