pub struct Scope<'a, 'd> { /* private fields */ }Expand description
One lexical view of the hidden owner for an exact driver generation.
Implementations§
Source§impl<'a, 'd> Scope<'a, 'd>
impl<'a, 'd> Scope<'a, 'd>
pub fn context(&mut self) -> Context<'_, 'd>
pub fn token(&mut self) -> &mut Token<Identity<'d>>
Sourcepub fn with_turn<R>(
&mut self,
run: impl for<'scope> FnOnce(&'scope mut Token<Identity<'d>>, Context<'scope, 'd>, Scope<'scope, 'd>) -> R,
) -> R
pub fn with_turn<R>( &mut self, run: impl for<'scope> FnOnce(&'scope mut Token<Identity<'d>>, Context<'scope, 'd>, Scope<'scope, 'd>) -> R, ) -> R
Runs with the sole schedule authority for this driver scope.
Sourcepub fn with_driver<R>(
&mut self,
run: impl for<'scope> FnOnce(Context<'scope, 'd>, Scope<'scope, 'd>) -> R,
) -> R
pub fn with_driver<R>( &mut self, run: impl for<'scope> FnOnce(Context<'scope, 'd>, Scope<'scope, 'd>) -> R, ) -> R
Runs a driver turn that performs no branded application projection.
pub fn driver_ref(&self) -> Reference<'d>
Auto Trait Implementations§
impl<'a, 'd> !RefUnwindSafe for Scope<'a, 'd>
impl<'a, 'd> !Send for Scope<'a, 'd>
impl<'a, 'd> !Sync for Scope<'a, 'd>
impl<'a, 'd> !UnwindSafe for Scope<'a, 'd>
impl<'a, 'd> Freeze for Scope<'a, 'd>
impl<'a, 'd> Unpin for Scope<'a, 'd>
impl<'a, 'd> UnsafeUnpin for Scope<'a, 'd>
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