pub struct MutationError<T>(pub Option<T>);Expand description
The result of a failed invariant check at the end of mutation.
In the cases where it’s recoverable, this error contains the value that failed to uphold the invariant.
Tuple Fields§
§0: Option<T>Trait Implementations§
Source§impl<T> Debug for MutationError<T>
impl<T> Debug for MutationError<T>
Source§impl<T> Display for MutationError<T>
impl<T> Display for MutationError<T>
Source§impl<T> Error for MutationError<T>
impl<T> Error for MutationError<T>
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl<T> Freeze for MutationError<T>where
T: Freeze,
impl<T> RefUnwindSafe for MutationError<T>where
T: RefUnwindSafe,
impl<T> Send for MutationError<T>where
T: Send,
impl<T> Sync for MutationError<T>where
T: Sync,
impl<T> Unpin for MutationError<T>where
T: Unpin,
impl<T> UnwindSafe for MutationError<T>where
T: 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