pub struct ColumnFormat {
pub name: String,
pub display_name: String,
pub format: CellFormat,
pub align: ColumnAlign,
}Expand description
column format
Fields§
§name: Stringname
display_name: Stringdisplay name
format: CellFormatformat
align: ColumnAlignalignment
Implementations§
Source§impl ColumnFormat
impl ColumnFormat
Sourcepub fn header_width(&self) -> usize
pub fn header_width(&self) -> usize
get header width
Sourcepub fn get_min_width(&self) -> usize
pub fn get_min_width(&self) -> usize
get min width
Sourcepub fn get_max_width(&self) -> usize
pub fn get_max_width(&self) -> usize
get max width
Source§impl ColumnFormat
impl ColumnFormat
Sourcepub fn name<T: AsRef<str>>(self, name: T) -> ColumnFormat
pub fn name<T: AsRef<str>>(self, name: T) -> ColumnFormat
set name
Sourcepub fn display_name<T: AsRef<str>>(self, display_name: T) -> ColumnFormat
pub fn display_name<T: AsRef<str>>(self, display_name: T) -> ColumnFormat
set display name
Sourcepub fn newline_underscores(self) -> ColumnFormat
pub fn newline_underscores(self) -> ColumnFormat
set newline underscores
Sourcepub fn width(self, width: usize) -> ColumnFormat
pub fn width(self, width: usize) -> ColumnFormat
set width
Sourcepub fn min_width(self, width: usize) -> ColumnFormat
pub fn min_width(self, width: usize) -> ColumnFormat
set min width
Sourcepub fn max_width(self, width: usize) -> ColumnFormat
pub fn max_width(self, width: usize) -> ColumnFormat
set max width
Trait Implementations§
Source§impl Clone for ColumnFormat
impl Clone for ColumnFormat
Source§fn clone(&self) -> ColumnFormat
fn clone(&self) -> ColumnFormat
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 moreAuto Trait Implementations§
impl Freeze for ColumnFormat
impl RefUnwindSafe for ColumnFormat
impl Send for ColumnFormat
impl Sync for ColumnFormat
impl Unpin for ColumnFormat
impl UnwindSafe for ColumnFormat
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<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