struct SendPtr {
ptr: usize,
len: usize,
}Expand description
Wrapper to send a raw mutable pointer across threads. Stores as usize to avoid auto-trait issues with raw pointers. Safety: caller must guarantee non-overlapping access patterns.
Fields§
§ptr: usize§len: usizeImplementations§
Trait Implementations§
impl Copy for SendPtr
impl Send for SendPtr
Available on crate feature
parallel only.impl Sync for SendPtr
Available on crate feature
parallel only.Auto Trait Implementations§
impl Freeze for SendPtr
impl RefUnwindSafe for SendPtr
impl Unpin for SendPtr
impl UnsafeUnpin for SendPtr
impl UnwindSafe for SendPtr
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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