pub struct FastDrop<T>where
T: Send + 'static,{ /* private fields */ }
Expand description
Utility type to deallocate memory in another thread.
If ths feature enable
is turned on, the value will be deallocated in other
thread.
This type uses [rayon::spawn]
Implementations§
Trait Implementations§
Source§impl<T> Ord for FastDrop<T>
impl<T> Ord for FastDrop<T>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T> PartialOrd for FastDrop<T>where
T: Send + 'static + PartialOrd,
impl<T> PartialOrd for FastDrop<T>where
T: Send + 'static + PartialOrd,
impl<T> Eq for FastDrop<T>
impl<T> StructuralPartialEq for FastDrop<T>where
T: Send + 'static,
Auto Trait Implementations§
impl<T> Freeze for FastDrop<T>where
T: Freeze,
impl<T> RefUnwindSafe for FastDrop<T>where
T: RefUnwindSafe,
impl<T> Send for FastDrop<T>
impl<T> Sync for FastDrop<T>where
T: Sync,
impl<T> Unpin for FastDrop<T>where
T: Unpin,
impl<T> UnwindSafe for FastDrop<T>where
T: UnwindSafe,
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