#[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
Break at a particular position under a particular source.
Not available under no_position.
Fields
§
source: Option<ImmutableString>Source (empty if not available) of the break-point.
AtFunctionName
Break at a particular function call.
AtFunctionCall
Break at a particular function call with a particular number of arguments.
Fields
§
name: ImmutableStringFunction name.
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 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 moreSource§impl Debug for BreakPoint
impl Debug for BreakPoint
Source§impl Display for BreakPoint
impl Display for BreakPoint
impl Eq 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
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BreakPoint
Auto Trait Implementations§
impl !Send for BreakPoint
impl !Sync for BreakPoint
impl Freeze for BreakPoint
impl RefUnwindSafe for BreakPoint
impl Unpin for BreakPoint
impl UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> Variant for T
impl<T> Variant for T
Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert this
Variant trait object to &mut dyn Any.Source§fn as_boxed_any(self: Box<T>) -> Box<dyn Any>
fn as_boxed_any(self: Box<T>) -> Box<dyn Any>
Convert this
Variant trait object to Box<dyn Any>.