Struct rayon_core::scope::ScopePtr
source · struct ScopePtr<T>(*const T);
Expand description
Used to capture a scope &Self
pointer in jobs, without faking a lifetime.
Unsafe code is still required to dereference the pointer, but that’s fine in scope jobs that are guaranteed to execute before the scope ends.
Tuple Fields§
§0: *const T
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for ScopePtr<T>
impl<T> RefUnwindSafe for ScopePtr<T>where
T: RefUnwindSafe,
impl<T> Unpin for ScopePtr<T>
impl<T> UnwindSafe for ScopePtr<T>where
T: RefUnwindSafe,
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