pub struct FormulaRef {Show 17 fields
pub kind: Kind,
pub shape: Shape,
pub book: String,
pub sheet_name: String,
pub written: String,
pub part: String,
pub row1: u32,
pub col1: u32,
pub row2: u32,
pub col2: u32,
pub row_abs1: bool,
pub col_abs1: bool,
pub row_abs2: bool,
pub col_abs2: bool,
pub pos: usize,
pub span: usize,
pub part_pos: usize,
}Expand description
One reference, as scan found it: FormulaRef of the reference.
Positions are character indices into the text the scan was given.
Fields§
§kind: Kind§shape: Shape§book: StringExternal: the text inside the [ ] (1, Book.xlsx); empty otherwise.
sheet_name: StringThe sheet as named: unquoted, '' undoubled; a span as Jan:Dec;
empty where none is written.
written: StringThe whole token as it stands in the formula.
part: StringThe part after any qualifier or #REF!: $A$1, A1:B2, A1#,
Rate, Sales[Amount], INDIRECT, #REF!.
row1: u32§col1: u32§row2: u32§col2: u32§row_abs1: bool§col_abs1: bool§row_abs2: bool§col_abs2: bool§pos: usizeWhere the token begins.
span: usizeIts length in characters.
part_pos: usizeWhere part begins, for a renderer.
Implementations§
Source§impl FormulaRef
impl FormulaRef
Sourcepub fn unreadable_name(&self) -> &'static str
pub fn unreadable_name(&self) -> &'static str
The canonical name of an unreadable call, as its row spells it.
Trait Implementations§
Source§impl Clone for FormulaRef
impl Clone for FormulaRef
Source§fn clone(&self) -> FormulaRef
fn clone(&self) -> FormulaRef
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 FormulaRef
impl Debug for FormulaRef
impl Eq for FormulaRef
Source§impl PartialEq for FormulaRef
impl PartialEq for FormulaRef
impl StructuralPartialEq for FormulaRef
Auto Trait Implementations§
impl Freeze for FormulaRef
impl RefUnwindSafe for FormulaRef
impl Send for FormulaRef
impl Sync for FormulaRef
impl Unpin for FormulaRef
impl UnsafeUnpin for FormulaRef
impl UnwindSafe for FormulaRef
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