Enum bridgetree::Retention
source · pub enum Retention<C> {
Ephemeral,
Checkpoint {
id: C,
is_marked: bool,
},
Marked,
}
Expand description
A type for metadata that is used to determine when and how a leaf can be pruned from a tree.
Variants§
Implementations§
Trait Implementations§
source§impl<C> Ord for Retention<C>where
C: Ord,
impl<C> Ord for Retention<C>where C: Ord,
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<C> PartialEq<Retention<C>> for Retention<C>where
C: PartialEq<C>,
impl<C> PartialEq<Retention<C>> for Retention<C>where C: PartialEq<C>,
source§impl<C> PartialOrd<Retention<C>> for Retention<C>where
C: PartialOrd<C>,
impl<C> PartialOrd<Retention<C>> for Retention<C>where C: PartialOrd<C>,
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<C> Copy for Retention<C>where C: Copy,
impl<C> Eq for Retention<C>where C: Eq,
impl<C> StructuralEq for Retention<C>
impl<C> StructuralPartialEq for Retention<C>
Auto Trait Implementations§
impl<C> RefUnwindSafe for Retention<C>where C: RefUnwindSafe,
impl<C> Send for Retention<C>where C: Send,
impl<C> Sync for Retention<C>where C: Sync,
impl<C> Unpin for Retention<C>where C: Unpin,
impl<C> UnwindSafe for Retention<C>where C: UnwindSafe,
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