pub enum DateInterpretation {
CellType,
NumFmt,
}Expand description
Controls how number cells carrying a date-like number format are returned.
OOXML distinguishes between a cell’s value type (t="n", t="d", …)
and the number format applied to it. Microsoft Excel itself almost
never emits t="d"; dates are instead stored as t="n" with a date
number format attached. Depending on the caller’s needs, sheetkit can
either honor the t attribute literally or promote such number cells
to CellValue::Date.
Variants§
CellType
Follow the cell’s t attribute strictly. A t="n" cell is
returned as CellValue::Number even when its number format is a
date format; only t="d" cells become CellValue::Date. Matches
the OOXML spec literally. Opt in when you want to treat the raw
cell type as the source of truth.
NumFmt
Promote t="n" (or untyped) cells whose style references a
built-in date number format (IDs 14-22, 45-47) or a custom format
code containing date/time tokens (y, m, d, h, s) to
CellValue::Date. This is the default, and matches how Microsoft
Excel stores dates in practice.
Trait Implementations§
Source§impl Clone for DateInterpretation
impl Clone for DateInterpretation
Source§fn clone(&self) -> DateInterpretation
fn clone(&self) -> DateInterpretation
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DateInterpretation
impl Debug for DateInterpretation
Source§impl Default for DateInterpretation
impl Default for DateInterpretation
Source§fn default() -> DateInterpretation
fn default() -> DateInterpretation
Source§impl PartialEq for DateInterpretation
impl PartialEq for DateInterpretation
impl Copy for DateInterpretation
impl Eq for DateInterpretation
impl StructuralPartialEq for DateInterpretation
Auto Trait Implementations§
impl Freeze for DateInterpretation
impl RefUnwindSafe for DateInterpretation
impl Send for DateInterpretation
impl Sync for DateInterpretation
impl Unpin for DateInterpretation
impl UnsafeUnpin for DateInterpretation
impl UnwindSafe for DateInterpretation
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
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§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
key and return true if they are equal.