pub enum Command {
Break {
file: String,
line: u32,
},
Run,
StepInstruction(StepMode),
StepLine(StepMode),
Locals,
Stack,
ExpectLine(u32),
ExpectLocal {
name: String,
value: String,
},
ExpectStack(Vec<String>),
ExpectTerminal,
}Expand description
One action or assertion from a .dbg script.
Variants§
Break
break <file>:<line> — arm a breakpoint. Line is 1-based.
Run
run / continue — advance to the next breakpoint, choice point,
or terminal outcome.
StepInstruction(StepMode)
stepi into|over|out — one VM instruction.
StepLine(StepMode)
step into|over|out / next — one source line (#3264).
Locals
locals / stack — record the current frame’s state in the
transcript without asserting anything.
Stack
ExpectLine(u32)
expect-line <n> (1-based).
ExpectLocal
expect-local <name> = <value>.
ExpectStack(Vec<String>)
expect-stack a > b > c.
ExpectTerminal
expect-terminal — the last action ended the story.
Trait Implementations§
impl Eq for Command
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
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