pub struct Entry<K, V, D = NoDiff> {
pub key: K,
pub value: Value<V>,
pub deltas: Vec<Delta<D>>,
}
Expand description
Entry type, describe a single {key,value}
entry within indexed data-set.
Fields§
§key: K
§value: Value<V>
§deltas: Vec<Delta<D>>
Implementations§
Source§impl<K, V, D> Entry<K, V, D>
impl<K, V, D> Entry<K, V, D>
Source§impl<K, V, D> Entry<K, V, D>
impl<K, V, D> Entry<K, V, D>
pub fn to_seqno(&self) -> u64
pub fn to_key(&self) -> Kwhere
K: Clone,
pub fn to_value(&self) -> Option<V>where
V: Clone,
pub fn as_key(&self) -> &K
pub fn borrow_key<Q>(&self) -> &Qwhere
K: Borrow<Q>,
pub fn is_deleted(&self) -> bool
pub fn to_values(&self) -> Vec<Value<V>>
pub fn contains(&self, other: &Self) -> bool
pub fn merge(&self, other: &Self) -> Self
pub fn purge(self, cutoff: Cutoff) -> Option<Self>where
Self: Sized,
Trait Implementations§
impl<K: Eq, V: Eq, D: Eq> Eq for Entry<K, V, D>
impl<K, V, D> StructuralPartialEq for Entry<K, V, D>
Auto Trait Implementations§
impl<K, V, D> Freeze for Entry<K, V, D>
impl<K, V, D> RefUnwindSafe for Entry<K, V, D>
impl<K, V, D> Send for Entry<K, V, D>
impl<K, V, D> Sync for Entry<K, V, D>
impl<K, V, D> Unpin for Entry<K, V, D>
impl<K, V, D> UnwindSafe for Entry<K, V, D>
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