pub struct DefaultVersion(/* private fields */);Expand description
The default versioning strategy, that’s backed by a u32, that avoids the
ABA problem
This can track up to 2^31 insertion-deletion pairs before exhaustion
Trait Implementations§
Source§impl Clone for DefaultVersion
impl Clone for DefaultVersion
Source§fn clone(&self) -> DefaultVersion
fn clone(&self) -> DefaultVersion
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DefaultVersion
impl Debug for DefaultVersion
Source§impl PartialEq for DefaultVersion
impl PartialEq for DefaultVersion
Source§impl Version for DefaultVersion
impl Version for DefaultVersion
Source§type Save = SavedDefaultVersion
type Save = SavedDefaultVersion
Represents a full version
Source§unsafe fn mark_empty(self) -> Result<Self, Self>
unsafe fn mark_empty(self) -> Result<Self, Self>
Convert an full version to a empty version Read more
Source§fn is_exhausted(&self) -> bool
fn is_exhausted(&self) -> bool
Check if the version is exhausted
impl Copy for DefaultVersion
impl Eq for DefaultVersion
impl StructuralPartialEq for DefaultVersion
Auto Trait Implementations§
impl Freeze for DefaultVersion
impl RefUnwindSafe for DefaultVersion
impl Send for DefaultVersion
impl Sync for DefaultVersion
impl Unpin for DefaultVersion
impl UnsafeUnpin for DefaultVersion
impl UnwindSafe for DefaultVersion
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