pub struct ColumnFormatShorthand {
pub name: String,
pub display_name: String,
pub format: CellFormatShorthand,
pub align: ColumnAlign,
}Expand description
column format shorthand
Fields§
§name: Stringname
display_name: Stringdisplay name
format: CellFormatShorthandformat
align: ColumnAlignalignment
Implementations§
Source§impl ColumnFormatShorthand
impl ColumnFormatShorthand
Sourcepub fn finalize(self, dtype: &DataType) -> Result<ColumnFormat, FormatError>
pub fn finalize(self, dtype: &DataType) -> Result<ColumnFormat, FormatError>
finalize shorthand into format format
Source§impl ColumnFormatShorthand
impl ColumnFormatShorthand
Sourcepub fn new() -> ColumnFormatShorthand
pub fn new() -> ColumnFormatShorthand
new
Sourcepub fn name<T: AsRef<str>>(self, name: T) -> ColumnFormatShorthand
pub fn name<T: AsRef<str>>(self, name: T) -> ColumnFormatShorthand
set name
Sourcepub fn display_name<T: AsRef<str>>(
self,
display_name: T,
) -> ColumnFormatShorthand
pub fn display_name<T: AsRef<str>>( self, display_name: T, ) -> ColumnFormatShorthand
set display name
Sourcepub fn newline_underscores(self) -> ColumnFormatShorthand
pub fn newline_underscores(self) -> ColumnFormatShorthand
set newline underscores
Sourcepub fn width(self, width: usize) -> ColumnFormatShorthand
pub fn width(self, width: usize) -> ColumnFormatShorthand
set width
Sourcepub fn min_width(self, width: usize) -> ColumnFormatShorthand
pub fn min_width(self, width: usize) -> ColumnFormatShorthand
set min width
Sourcepub fn max_width(self, width: usize) -> ColumnFormatShorthand
pub fn max_width(self, width: usize) -> ColumnFormatShorthand
set max width
Sourcepub fn set_format<T: Into<CellFormatShorthand>>(
self,
format: T,
) -> ColumnFormatShorthand
pub fn set_format<T: Into<CellFormatShorthand>>( self, format: T, ) -> ColumnFormatShorthand
set format
Trait Implementations§
Source§impl Clone for ColumnFormatShorthand
impl Clone for ColumnFormatShorthand
Source§fn clone(&self) -> ColumnFormatShorthand
fn clone(&self) -> ColumnFormatShorthand
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 ColumnFormatShorthand
impl Debug for ColumnFormatShorthand
Source§impl Default for ColumnFormatShorthand
impl Default for ColumnFormatShorthand
Source§fn default() -> ColumnFormatShorthand
fn default() -> ColumnFormatShorthand
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ColumnFormatShorthand
impl RefUnwindSafe for ColumnFormatShorthand
impl Send for ColumnFormatShorthand
impl Sync for ColumnFormatShorthand
impl Unpin for ColumnFormatShorthand
impl UnwindSafe for ColumnFormatShorthand
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