pub struct ActiveScope;Expand description
Currently active scope.
Implementations§
Source§impl ActiveScope
impl ActiveScope
Sourcepub unsafe fn set(scope: &Scope)
pub unsafe fn set(scope: &Scope)
Sets the active scope pointer to the given scope.
§Safety
The caller must ensure that the provided scope reference is valid for
the duration in which it is set as the active scope, and that no data
races or aliasing violations occur.
Sourcepub fn set_global()
pub fn set_global()
Set the active scope to the global scope.
Auto Trait Implementations§
impl Freeze for ActiveScope
impl RefUnwindSafe for ActiveScope
impl Send for ActiveScope
impl Sync for ActiveScope
impl Unpin for ActiveScope
impl UnwindSafe for ActiveScope
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