pub enum Content {
Text(String),
Number(f64),
Bool(bool),
Formula(String),
SharedMaster {
text: String,
range: String,
si: u32,
},
SharedChild {
si: u32,
},
DynamicFormula(String),
}Expand description
What a cell holds. A formula is its text without the leading =, as the
file stores it; the host computes it. A formula written into a range of
cells is a shared formula, which is what Excel itself writes when a
formula is filled: the top-left cell is the master and holds the text
and the range, the others point at it by its index, and the host
adjusts the references for each cell as Range.Formula2 would have.
Variants§
Text(String)
Number(f64)
Bool(bool)
Formula(String)
DynamicFormula(String)
A dynamic-array formula (cm="1", t="array" over its own cell):
what Excel stores for a Formula2 entry of a formula whose function
can return an array, and reads back without the @ it puts on a
legacy formula of that kind.
Trait Implementations§
impl StructuralPartialEq for Content
Auto Trait Implementations§
impl Freeze for Content
impl RefUnwindSafe for Content
impl Send for Content
impl Sync for Content
impl Unpin for Content
impl UnsafeUnpin for Content
impl UnwindSafe for Content
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