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§
source§impl PartialEq for Epoch
impl PartialEq for Epoch
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