Struct crossbeam_epoch::deferred::Deferred
source · pub(crate) struct Deferred {
call: unsafe fn(_: *mut u8),
data: MaybeUninit<[usize; 3]>,
_marker: PhantomData<*mut ()>,
}
Expand description
A FnOnce()
that is stored inline if small, or otherwise boxed on the heap.
This is a handy way of keeping an unsized FnOnce()
within a sized structure.
Fields§
§call: unsafe fn(_: *mut u8)
§data: MaybeUninit<[usize; 3]>
§_marker: PhantomData<*mut ()>
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Deferred
impl !Send for Deferred
impl !Sync for Deferred
impl Unpin for Deferred
impl UnwindSafe for Deferred
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