Enum rhai::debugger::DebuggerEvent
source · [−]#[non_exhaustive]
pub enum DebuggerEvent<'a> {
Start,
Step,
BreakPoint(usize),
FunctionExitWithValue(&'a Dynamic),
FunctionExitWithError(&'a EvalAltResult),
End,
}
Expand description
A event that triggers the debugger.
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.
Start
Script evaluation starts.
Step
Break on next step.
BreakPoint(usize)
Break on break-point.
FunctionExitWithValue(&'a Dynamic)
Return from a function with a value.
FunctionExitWithError(&'a EvalAltResult)
Return from a function with a value.
End
Script evaluation ends.
Trait Implementations
sourceimpl<'a> Clone for DebuggerEvent<'a>
impl<'a> Clone for DebuggerEvent<'a>
sourcefn clone(&self) -> DebuggerEvent<'a>
fn clone(&self) -> DebuggerEvent<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<'a> Debug for DebuggerEvent<'a>
impl<'a> Debug for DebuggerEvent<'a>
impl<'a> Copy for DebuggerEvent<'a>
Auto Trait Implementations
impl<'a> !RefUnwindSafe for DebuggerEvent<'a>
impl<'a> !Send for DebuggerEvent<'a>
impl<'a> !Sync for DebuggerEvent<'a>
impl<'a> Unpin for DebuggerEvent<'a>
impl<'a> !UnwindSafe for DebuggerEvent<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more