pub enum InsertOutcome {
Inserted,
Updated,
Rejected,
}Variants§
Implementations§
Source§impl InsertOutcome
impl InsertOutcome
pub const fn is_present(self) -> bool
pub const fn is_new(self) -> bool
pub const fn is_rejected(self) -> bool
Trait Implementations§
Source§impl Clone for InsertOutcome
impl Clone for InsertOutcome
Source§fn clone(&self) -> InsertOutcome
fn clone(&self) -> InsertOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 InsertOutcome
impl Debug for InsertOutcome
Source§impl PartialEq for InsertOutcome
impl PartialEq for InsertOutcome
Source§fn eq(&self, other: &InsertOutcome) -> bool
fn eq(&self, other: &InsertOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for InsertOutcome
impl Eq for InsertOutcome
impl StructuralPartialEq for InsertOutcome
Auto Trait Implementations§
impl Freeze for InsertOutcome
impl RefUnwindSafe for InsertOutcome
impl Send for InsertOutcome
impl Sync for InsertOutcome
impl Unpin for InsertOutcome
impl UnsafeUnpin for InsertOutcome
impl UnwindSafe for InsertOutcome
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