pub enum StackPlan {
Register(Vec<String>),
Extend {
number: u64,
fresh: Vec<String>,
},
Mismatch {
number: u64,
},
}Expand description
What registering a submitted line as a platform stack would do.
Shared by the real run and the dry run so the two cannot disagree - the decision lives here, and each caller only performs or renders it.
Variants§
Register(Vec<String>)
No stack recorded yet: create one holding all of these reviews.
Extend
The submitted line continues the recorded stack: some tail of the
stack is where the submitted reviews begin, and fresh is everything
past that overlap. Growth on top is the one shape /add, which
carries no position, can express.
Mismatch
The submitted line does not continue the recorded stack - nothing in common at the join, or something past it the stack already holds: a branch rooted below, a reorder, a layer removed. Appending would record an order that is not this stack’s.
Trait Implementations§
impl Eq for StackPlan
impl StructuralPartialEq for StackPlan
Auto Trait Implementations§
impl Freeze for StackPlan
impl RefUnwindSafe for StackPlan
impl Send for StackPlan
impl Sync for StackPlan
impl Unpin for StackPlan
impl UnsafeUnpin for StackPlan
impl UnwindSafe for StackPlan
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