pub struct Scope<'scope, 'env: 'scope> { /* private fields */ }Expand description
Creusot’s replacement for Scope.
Implementations§
Source§impl<'scope, 'env: 'scope> Scope<'scope, 'env>
impl<'scope, 'env: 'scope> Scope<'scope, 'env>
Sourcepub fn spawn<F, T>(&mut self, f: F) -> ScopedJoinHandle<'scope, T>
pub fn spawn<F, T>(&mut self, f: F) -> ScopedJoinHandle<'scope, T>
requires
forall<t: Ghost<Tokens>> (forall<ns> t.contains(ns)) ==> f.precondition((t,))
ensures
exists<t: Ghost<Tokens>> (forall<ns> t.contains(ns)) && forall<r> result.valid_result(r) ==> f.postcondition_once((t,), r)
Auto Trait Implementations§
impl<'scope, 'env> Freeze for Scope<'scope, 'env>
impl<'scope, 'env> RefUnwindSafe for Scope<'scope, 'env>
impl<'scope, 'env> Send for Scope<'scope, 'env>
impl<'scope, 'env> Sync for Scope<'scope, 'env>
impl<'scope, 'env> Unpin for Scope<'scope, 'env>
impl<'scope, 'env> UnwindSafe for Scope<'scope, 'env>
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