pub enum CellType {
Boolean,
Number,
Error,
SharedString,
FormulaString,
InlineString,
}Expand description
OOXML <c> 元素的 t 属性值(单元格类型)。
对应 ECMA-376 Part 1 §18.18.11(ST_CellType)。
Variants§
Boolean
t="b":布尔值,<v> 为 0 或 1。
Number
t="n"(默认,可省略):数字,<v> 为十进制文本。
Error
t="e":错误值,<v> 为错误字符串(如 #REF!)。
t="s":SharedStrings 索引,<v> 为整数索引(指向 xl/sharedStrings.xml)。
FormulaString
t="str":公式字符串结果,<v> 直接存文本(不进 SharedStrings)。
0.1.0 不支持公式,保留枚举值以便 round-trip。
InlineString
t="inlineStr":内联字符串,<is><t>...</t></is> 形式(不进 SharedStrings)。
Implementations§
Trait Implementations§
impl Copy for CellType
impl Eq for CellType
impl StructuralPartialEq for CellType
Auto Trait Implementations§
impl Freeze for CellType
impl RefUnwindSafe for CellType
impl Send for CellType
impl Sync for CellType
impl Unpin for CellType
impl UnsafeUnpin for CellType
impl UnwindSafe for CellType
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§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.