Struct pancake_engine_ssi::lsm::unit::commit_info::ReplacementNum
source · pub struct ReplacementNum(u64);Expand description
The ordered number that disambiguates 2+ CommitInfo instances.
In case 2+ CommitInfos overlap in their CommitVer intervals,
this number indicates the new-ness of each CommitInfo.
When loading a collection of overlapping CommitInfos,
all among them with the largest ReplacementNum should be retained,
and all other others should be ignored and discarded.
Tuple Fields§
§0: u64Implementations§
source§impl ReplacementNum
impl ReplacementNum
pub const FOR_NEW_COMMIT_VER_INTERVAL: Self = _
pub fn max(vals: impl Iterator<Item = Self>) -> Option<Self>
pub fn new_larger_than_all_of(vals: impl Iterator<Item = Self>) -> Self
Trait Implementations§
source§impl Clone for ReplacementNum
impl Clone for ReplacementNum
source§fn clone(&self) -> ReplacementNum
fn clone(&self) -> ReplacementNum
Returns a copy 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 Ord for ReplacementNum
impl Ord for ReplacementNum
source§fn cmp(&self, other: &ReplacementNum) -> Ordering
fn cmp(&self, other: &ReplacementNum) -> Ordering
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 PartialEq for ReplacementNum
impl PartialEq for ReplacementNum
source§fn eq(&self, other: &ReplacementNum) -> bool
fn eq(&self, other: &ReplacementNum) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for ReplacementNum
impl PartialOrd for ReplacementNum
source§fn partial_cmp(&self, other: &ReplacementNum) -> Option<Ordering>
fn partial_cmp(&self, other: &ReplacementNum) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for ReplacementNum
impl Eq for ReplacementNum
impl StructuralEq for ReplacementNum
impl StructuralPartialEq for ReplacementNum
Auto Trait Implementations§
impl RefUnwindSafe for ReplacementNum
impl Send for ReplacementNum
impl Sync for ReplacementNum
impl Unpin for ReplacementNum
impl UnwindSafe for ReplacementNum
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