pub enum Effect {
WriteCell {
vertex_id: VertexId,
value: LiteralValue,
},
SpillCommit {
anchor_vertex: VertexId,
anchor_cell: CellRef,
target_cells: Vec<CellRef>,
values: Vec<Vec<LiteralValue>>,
},
SpillClear {
anchor_vertex: VertexId,
},
}Expand description
An explicit, inspectable side-effect produced by formula evaluation.
Variants§
WriteCell
Write a scalar value (or error) to a formula/named vertex.
SpillCommit
Commit a dynamic array spill to the grid.
Fields
§
values: Vec<Vec<LiteralValue>>SpillClear
Clear a previous spill region (before resize or scalar downgrade).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Effect
impl RefUnwindSafe for Effect
impl Send for Effect
impl Sync for Effect
impl Unpin for Effect
impl UnsafeUnpin for Effect
impl UnwindSafe for Effect
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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