Struct rayon::slice::quicksort::CopyOnDrop
source · struct CopyOnDrop<'a, T> {
src: *const T,
dest: *mut T,
marker: PhantomData<&'a mut T>,
}
Expand description
When dropped, copies from src
into dest
.
Fields§
§src: *const T
§dest: *mut T
§marker: PhantomData<&'a mut T>
src
is often a local pointer here, make sure we have appropriate
PhantomData so that dropck can protect us.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> Freeze for CopyOnDrop<'a, T>
impl<'a, T> RefUnwindSafe for CopyOnDrop<'a, T>where
T: RefUnwindSafe,
impl<'a, T> !Send for CopyOnDrop<'a, T>
impl<'a, T> !Sync for CopyOnDrop<'a, T>
impl<'a, T> Unpin for CopyOnDrop<'a, T>
impl<'a, T> !UnwindSafe for CopyOnDrop<'a, T>
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more