pub struct RhaiContextGuard;Expand description
Resource Acquisition Is Initialization (RAII) guard for automatic Rhai context cleanup.
This guard ensures that Rhai execution contexts are automatically removed from the stack when they go out of scope, providing exception-safe context management even if panics occur during script execution.
Trait Implementations§
Source§impl Debug for RhaiContextGuard
impl Debug for RhaiContextGuard
Auto Trait Implementations§
impl Freeze for RhaiContextGuard
impl RefUnwindSafe for RhaiContextGuard
impl Send for RhaiContextGuard
impl Sync for RhaiContextGuard
impl Unpin for RhaiContextGuard
impl UnsafeUnpin for RhaiContextGuard
impl UnwindSafe for RhaiContextGuard
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