pub struct Shape {
pub text: String,
pub expr: Result<Expr, String>,
pub anchor: (usize, u32, u32),
/* private fields */
}Expand description
One formula, parsed once, and the cell it was read at.
Fields§
§text: StringThe text at the shape’s first cell, without its =, as the formula
bar shows it.
expr: Result<Expr, String>The parse, or the construct it stopped at.
anchor: (usize, u32, u32)The cell the text was read at; every other cell of the shape is at an offset from it.
Implementations§
Source§impl Shape
impl Shape
Sourcepub fn unread_at(&self, d_row: i64, d_col: i64) -> Option<String>
pub fn unread_at(&self, d_row: i64, d_col: i64) -> Option<String>
The construct a cell at this offset stands for that the shape’s
first cell does not, as the moved text’s parse names it; None when
the moved text reads as the shape does, which for a shape that is not
risky it always does (the refers fixture moved to every edge of the
sheet holds that).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Shape
impl RefUnwindSafe for Shape
impl Send for Shape
impl Sync for Shape
impl Unpin for Shape
impl UnsafeUnpin for Shape
impl UnwindSafe for Shape
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