Enum lc3_ensemble::sim::debug::Breakpoint
source · pub enum Breakpoint {
PC(u16),
Reg {
reg: Reg,
value: Comparator,
},
Mem {
addr: u16,
value: Comparator,
},
}Expand description
Common breakpoints.
Variants§
PC(u16)
Break when the PC is equal to the given value.
Reg
Break when the provided register is set to a given value.
Mem
Break when the provided memory address is written to with a given value.
Implementations§
Trait Implementations§
source§impl Debug for Breakpoint
impl Debug for Breakpoint
source§impl Hash for Breakpoint
impl Hash for Breakpoint
source§impl PartialEq for Breakpoint
impl PartialEq for Breakpoint
source§fn eq(&self, other: &Breakpoint) -> bool
fn eq(&self, other: &Breakpoint) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for Breakpoint
impl StructuralPartialEq for Breakpoint
Auto Trait Implementations§
impl Freeze for Breakpoint
impl RefUnwindSafe for Breakpoint
impl Send for Breakpoint
impl Sync for Breakpoint
impl Unpin for Breakpoint
impl UnwindSafe for Breakpoint
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