pub enum InsertResult {
Inserted,
Updated,
Replaced,
Dropped,
}
Expand description
The result of a PrioritySet::insert operation.
Variants§
Inserted
The item was inserted into an empty slot.
Updated
The item already exists in the set, and the priority was updated.
Replaced
We replaced an existing entry with a lower priority.
Dropped
There was no space for this item, and all other items had higher priority, so we dropped it.
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 Hash for InsertResult
impl Hash for InsertResult
Source§impl Ord for InsertResult
impl Ord for InsertResult
Source§fn cmp(&self, other: &InsertResult) -> Ordering
fn cmp(&self, other: &InsertResult) -> 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 InsertResult
impl PartialEq for InsertResult
Source§impl PartialOrd for InsertResult
impl PartialOrd 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