pub enum Format {
}Expand description
Cell format overrides
Variants§
Auto
Text
Integer
Decimal(u8)
Float
Boolean
Date
DateTime
DateTimeSimple
Time
Hm
DateTimeCustom(Arc<str>)
Truthy
TruthyCustom(TruthyRuleSet)
Array(Arc<Format>, Arc<str>)
Splits a delimited string cell into an array, formatting each piece as the given
element Format – e.g. Format::Array(Format::Float, “,”) turns “34.8,78.3” into
[34.8, 78.3]. Arc<Format> rather than a bare Format, since a bare recursive
field would give Format infinite size; Arc (not Box) for the same cheap-clone
reasoning already applied to the rest of this crate’s recursive/repeatedly-cloned
types (Format is cloned per column during resolution, same as Column’s own fields).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Format
impl RefUnwindSafe for Format
impl Send for Format
impl Sync for Format
impl Unpin for Format
impl UnsafeUnpin for Format
impl UnwindSafe for Format
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