pub enum InsertResult {
Inserted,
Replaced,
Skipped,
}Expand description
Result of a CS insert operation.
Variants§
Inserted
Entry was stored.
Replaced
Entry replaced an existing entry for the same name.
Skipped
Entry was not stored (e.g., CS is disabled or at capacity with no eviction).
Trait Implementations§
Source§impl Clone for InsertResult
impl Clone for InsertResult
Source§fn clone(&self) -> InsertResult
fn clone(&self) -> InsertResult
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 InsertResult
impl Debug for InsertResult
Source§impl PartialEq for InsertResult
impl PartialEq for InsertResult
impl Copy for InsertResult
impl Eq for InsertResult
impl StructuralPartialEq for InsertResult
Auto Trait Implementations§
impl Freeze for InsertResult
impl RefUnwindSafe for InsertResult
impl Send for InsertResult
impl Sync for InsertResult
impl Unpin for InsertResult
impl UnwindSafe for InsertResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more