pub enum PutResult<'a, T> {
Inserted {
new: &'a T,
},
Replaced {
old: &'a T,
new: &'a T,
},
Exists {
current: &'a T,
not_inserted: Box<Linked<T>>,
},
}
Variants§
Trait Implementations§
impl<'a, T: Eq> Eq for PutResult<'a, T>
impl<'a, T> StructuralPartialEq for PutResult<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for PutResult<'a, T>
impl<'a, T> !RefUnwindSafe for PutResult<'a, T>
impl<'a, T> !Send for PutResult<'a, T>
impl<'a, T> !Sync for PutResult<'a, T>
impl<'a, T> Unpin for PutResult<'a, T>
impl<'a, T> UnwindSafe for PutResult<'a, T>where
T: RefUnwindSafe + 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