pub enum ScriptOp {
Push {
partition_index: usize,
payload: Vec<u8>,
},
Revoke {
lane_index: usize,
},
Assign {
lane_index: usize,
},
}Available on crate feature
proptest only.Expand description
One step of a generated source script. Indices are relative to a
lane_layout; the consuming test resolves them and skips steps that
are invalid in its current state (e.g. revoking an already-revoked
lane).
Variants§
Push
Push a payload to the partition at this layout index.
Revoke
Revoke the lane at this layout index.
Assign
Re-assign the lane at this layout index (after a revoke).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ScriptOp
impl RefUnwindSafe for ScriptOp
impl Send for ScriptOp
impl Sync for ScriptOp
impl Unpin for ScriptOp
impl UnsafeUnpin for ScriptOp
impl UnwindSafe for ScriptOp
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