Enum petitset::SuccesfulMapInsertion
source · [−]Expand description
The Ok
result of a successful PetitMap
insertion operation
Variants
NovelKey(usize)
This is a new key: the key-value pair is stored at the provided index
ExtantKey(V, usize)
The key already existed, so the old value and the index were returned
Trait Implementations
sourceimpl<V: Clone> Clone for SuccesfulMapInsertion<V>
impl<V: Clone> Clone for SuccesfulMapInsertion<V>
sourcefn clone(&self) -> SuccesfulMapInsertion<V>
fn clone(&self) -> SuccesfulMapInsertion<V>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<V: Debug> Debug for SuccesfulMapInsertion<V>
impl<V: Debug> Debug for SuccesfulMapInsertion<V>
sourceimpl<V: PartialEq> PartialEq<SuccesfulMapInsertion<V>> for SuccesfulMapInsertion<V>
impl<V: PartialEq> PartialEq<SuccesfulMapInsertion<V>> for SuccesfulMapInsertion<V>
sourcefn eq(&self, other: &SuccesfulMapInsertion<V>) -> bool
fn eq(&self, other: &SuccesfulMapInsertion<V>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SuccesfulMapInsertion<V>) -> bool
fn ne(&self, other: &SuccesfulMapInsertion<V>) -> bool
This method tests for !=
.
impl<V: Copy> Copy for SuccesfulMapInsertion<V>
impl<V: Eq> Eq for SuccesfulMapInsertion<V>
impl<V> StructuralEq for SuccesfulMapInsertion<V>
impl<V> StructuralPartialEq for SuccesfulMapInsertion<V>
Auto Trait Implementations
impl<V> RefUnwindSafe for SuccesfulMapInsertion<V> where
V: RefUnwindSafe,
impl<V> Send for SuccesfulMapInsertion<V> where
V: Send,
impl<V> Sync for SuccesfulMapInsertion<V> where
V: Sync,
impl<V> Unpin for SuccesfulMapInsertion<V> where
V: Unpin,
impl<V> UnwindSafe for SuccesfulMapInsertion<V> where
V: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more