pub struct Breakpoint {
pub id: usize,
pub bp_type: BreakpointType,
pub enabled: bool,
pub hit_count: usize,
pub ignore_count: usize,
}Expand description
Represents a breakpoint
Fields§
§id: usize§bp_type: BreakpointType§enabled: bool§hit_count: usize§ignore_count: usizeImplementations§
Source§impl Breakpoint
impl Breakpoint
Sourcepub fn new(id: usize, bp_type: BreakpointType) -> Self
pub fn new(id: usize, bp_type: BreakpointType) -> Self
Create a new breakpoint
Sourcepub fn should_trigger(&mut self, file: &str, line: usize) -> bool
pub fn should_trigger(&mut self, file: &str, line: usize) -> bool
Check if this breakpoint should trigger at the given location
Sourcepub fn is_function_breakpoint(&self, func_name: &str) -> bool
pub fn is_function_breakpoint(&self, func_name: &str) -> bool
Check if this is a function breakpoint for the given function name
Sourcepub fn get_condition(&self) -> Option<&str>
pub fn get_condition(&self) -> Option<&str>
Get the condition expression if this is a conditional breakpoint
Sourcepub fn location_string(&self) -> String
pub fn location_string(&self) -> String
Get a string representation of the breakpoint location
Trait Implementations§
Source§impl Clone for Breakpoint
impl Clone for Breakpoint
Source§fn clone(&self) -> Breakpoint
fn clone(&self) -> Breakpoint
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Breakpoint
impl Debug for Breakpoint
Source§impl PartialEq for Breakpoint
impl PartialEq 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