pub enum FormulaPart {
Text(String),
SheetReference {
sheet_id: u64,
row: usize,
col: usize,
row_ref_type: RefType,
col_ref_type: RefType,
},
ColumnReference {
sheet_id: u64,
col_id: u64,
},
StructuredReference {
sheet_id: u64,
col_id: Option<u64>,
is_this_row: bool,
section: SheetSection,
},
RangeReference {
sheet_id: u64,
start_row: usize,
start_col: usize,
end_row: usize,
end_col: usize,
start_row_ref_type: RefType,
start_col_ref_type: RefType,
end_row_ref_type: RefType,
end_col_ref_type: RefType,
},
}Expand description
One piece of a compiled formula: either literal text or a reference held by id.
Variants§
Text(String)
A literal stretch of the formula – operators, function names, constants – copied through unchanged.
SheetReference
A single cell, as in Sheet2!$A1.
Fields
ColumnReference
A whole column, held by column id so a column rename survives.
StructuredReference
An Excel Table structured reference, as in Sales[Amount] or
[@Amount].
Fields
§
section: SheetSectionWhich part of the table is selected.
RangeReference
A rectangular range, as in Sheet2!A1:$B$10.
Fields
Trait Implementations§
Source§impl Clone for FormulaPart
impl Clone for FormulaPart
Source§fn clone(&self) -> FormulaPart
fn clone(&self) -> FormulaPart
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FormulaPart
impl Debug for FormulaPart
Source§impl<'de> Deserialize<'de> for FormulaPart
impl<'de> Deserialize<'de> for FormulaPart
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for FormulaPart
impl PartialEq for FormulaPart
Source§impl Serialize for FormulaPart
impl Serialize for FormulaPart
impl StructuralPartialEq for FormulaPart
Auto Trait Implementations§
impl Freeze for FormulaPart
impl RefUnwindSafe for FormulaPart
impl Send for FormulaPart
impl Sync for FormulaPart
impl Unpin for FormulaPart
impl UnsafeUnpin for FormulaPart
impl UnwindSafe for FormulaPart
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