Struct crossbeam_epoch::epoch::Epoch
source · pub(crate) struct Epoch {
data: usize,
}
Expand description
An epoch that can be marked as pinned or unpinned.
Internally, the epoch is represented as an integer that wraps around at some unspecified point and a flag that represents whether it is pinned or unpinned.
Fields§
§data: usize
The least significant bit is set if pinned. The rest of the bits hold the epoch.
Implementations§
Trait Implementations§
impl Copy for Epoch
impl Eq for Epoch
impl StructuralPartialEq for Epoch
Auto Trait Implementations§
impl Freeze for Epoch
impl RefUnwindSafe for Epoch
impl Send for Epoch
impl Sync for Epoch
impl Unpin for Epoch
impl UnwindSafe for Epoch
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)