#[non_exhaustive]pub struct FormulaView {
pub template: AstNodeId,
pub row_delta: i64,
pub col_delta: i64,
}Expand description
A formula cell’s formula as a template plus offset (design §11).
Evaluating or rendering template with the interpreter’s reference
offset (row_delta, col_delta) yields exactly this cell’s formula.
template alone is the formula of the family’s anchor cell and is
shared by every member; for a formula stored on its own cell the deltas
are zero.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.template: AstNodeId§row_delta: i64§col_delta: i64Trait Implementations§
Source§impl Clone for FormulaView
impl Clone for FormulaView
impl Copy for FormulaView
Source§impl Debug for FormulaView
impl Debug for FormulaView
impl Eq for FormulaView
Source§impl PartialEq for FormulaView
impl PartialEq for FormulaView
impl StructuralPartialEq for FormulaView
Auto Trait Implementations§
impl Freeze for FormulaView
impl RefUnwindSafe for FormulaView
impl Send for FormulaView
impl Sync for FormulaView
impl Unpin for FormulaView
impl UnsafeUnpin for FormulaView
impl UnwindSafe for FormulaView
Blanket Implementations§
impl<T> Allocation for T
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§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.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more