pub struct BreakpointValidation {
pub verified: bool,
pub line: i64,
pub column: Option<i64>,
pub reason: Option<ValidationReason>,
pub message: Option<String>,
}Expand description
Result of breakpoint validation
Fields§
§verified: boolWhether the breakpoint is valid and can be set
line: i64The line number (may be adjusted to nearest valid line)
column: Option<i64>Column number (optional)
reason: Option<ValidationReason>Reason for rejection if not verified
message: Option<String>Human-readable message describing the validation result
Implementations§
Source§impl BreakpointValidation
impl BreakpointValidation
Sourcepub fn rejected(line: i64, reason: ValidationReason) -> Self
pub fn rejected(line: i64, reason: ValidationReason) -> Self
Create a failed validation result
Sourcepub fn adjusted(new_line: i64, reason: ValidationReason) -> Self
pub fn adjusted(new_line: i64, reason: ValidationReason) -> Self
Create a validation result with an adjusted line
Trait Implementations§
Source§impl Clone for BreakpointValidation
impl Clone for BreakpointValidation
Source§fn clone(&self) -> BreakpointValidation
fn clone(&self) -> BreakpointValidation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BreakpointValidation
impl RefUnwindSafe for BreakpointValidation
impl Send for BreakpointValidation
impl Sync for BreakpointValidation
impl Unpin for BreakpointValidation
impl UnsafeUnpin for BreakpointValidation
impl UnwindSafe for BreakpointValidation
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