Enum rhai::debugger::BreakPoint
source · #[non_exhaustive]pub enum BreakPoint {
AtPosition {
source: Option<ImmutableString>,
pos: Position,
enabled: bool,
},
AtFunctionName {
name: ImmutableString,
enabled: bool,
},
AtFunctionCall {
name: ImmutableString,
args: usize,
enabled: bool,
},
AtProperty {
name: ImmutableString,
enabled: bool,
},
}
Expand description
A break-point for debugging.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
AtPosition
Fields
§
source: Option<ImmutableString>
Source (empty if not available) of the break-point.
Break at a particular position under a particular source.
Not available under no_position
.
AtFunctionName
Break at a particular function call.
AtFunctionCall
Fields
§
name: ImmutableString
Function name.
Break at a particular function call with a particular number of arguments.
AtProperty
Break at a particular property .
Not available under no_object
.
Implementations§
source§impl BreakPoint
impl BreakPoint
sourcepub const fn is_enabled(&self) -> bool
pub const fn is_enabled(&self) -> bool
Is this BreakPoint
enabled?
sourcepub fn enable(&mut self, value: bool)
pub fn enable(&mut self, value: bool)
Enable/disable this BreakPoint
.
Trait Implementations§
source§impl Clone for BreakPoint
impl Clone for BreakPoint
source§fn clone(&self) -> BreakPoint
fn clone(&self) -> BreakPoint
Returns a copy 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 Display for BreakPoint
impl Display for BreakPoint
source§impl Hash for BreakPoint
impl Hash for BreakPoint
source§impl PartialEq<BreakPoint> for BreakPoint
impl PartialEq<BreakPoint> 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 StructuralEq for BreakPoint
impl StructuralPartialEq for BreakPoint
Auto Trait Implementations§
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