Enum splitmut::SplitMutError
source · pub enum SplitMutError {
NoValue,
SameValue,
}
Expand description
Error returned from get*_mut functions.
Variants§
NoValue
No value was found for the specified key (like when get_mut would return None)
SameValue
The same value has already been returned (earlier in the same tuple)
Trait Implementations§
source§impl Clone for SplitMutError
impl Clone for SplitMutError
source§fn clone(&self) -> SplitMutError
fn clone(&self) -> SplitMutError
Returns a copy 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 SplitMutError
impl Debug for SplitMutError
source§impl Display for SplitMutError
impl Display for SplitMutError
source§impl Error for SplitMutError
impl Error for SplitMutError
source§fn description(&self) -> &'static str
fn description(&self) -> &'static str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
source§impl Ord for SplitMutError
impl Ord for SplitMutError
source§fn cmp(&self, other: &SplitMutError) -> Ordering
fn cmp(&self, other: &SplitMutError) -> 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 SplitMutError
impl PartialEq for SplitMutError
source§fn eq(&self, other: &SplitMutError) -> bool
fn eq(&self, other: &SplitMutError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SplitMutError
impl PartialOrd for SplitMutError
source§fn partial_cmp(&self, other: &SplitMutError) -> Option<Ordering>
fn partial_cmp(&self, other: &SplitMutError) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for SplitMutError
impl Eq for SplitMutError
impl StructuralEq for SplitMutError
impl StructuralPartialEq for SplitMutError
Auto Trait Implementations§
impl RefUnwindSafe for SplitMutError
impl Send for SplitMutError
impl Sync for SplitMutError
impl Unpin for SplitMutError
impl UnwindSafe for SplitMutError
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