pub struct Stepper { /* private fields */ }Expand description
Transpilation stepper - manages stepping through phases
Implementations§
Source§impl Stepper
impl Stepper
Sourcepub fn new(state: TranspilationState) -> Self
pub fn new(state: TranspilationState) -> Self
Create new stepper
Sourcepub const fn state(&self) -> &TranspilationState
pub const fn state(&self) -> &TranspilationState
Get current state
Sourcepub fn add_breakpoint(&mut self, bp: Breakpoint)
pub fn add_breakpoint(&mut self, bp: Breakpoint)
Add breakpoint
Sourcepub fn breakpoints(&self) -> &[Breakpoint]
pub fn breakpoints(&self) -> &[Breakpoint]
List breakpoints
Sourcepub fn clear_breakpoint(&mut self, index: usize) -> bool
pub fn clear_breakpoint(&mut self, index: usize) -> bool
Clear breakpoint by index
Sourcepub fn step(&mut self) -> Result<TranspilationPhase>
pub fn step(&mut self) -> Result<TranspilationPhase>
Sourcepub fn continue_execution(&mut self) -> Result<()>
pub fn continue_execution(&mut self) -> Result<()>
Auto Trait Implementations§
impl Freeze for Stepper
impl RefUnwindSafe for Stepper
impl Send for Stepper
impl Sync for Stepper
impl Unpin for Stepper
impl UnwindSafe for Stepper
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