pub enum InvariantError<E> {
InvariantFailure,
OtherError(E),
}
Variants§
Trait Implementations§
Source§impl<E: Clone> Clone for InvariantError<E>
impl<E: Clone> Clone for InvariantError<E>
Source§fn clone(&self) -> InvariantError<E>
fn clone(&self) -> InvariantError<E>
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<E: Debug> Debug for InvariantError<E>
impl<E: Debug> Debug for InvariantError<E>
Source§impl<E> Default for InvariantError<E>
impl<E> Default for InvariantError<E>
Source§fn default() -> InvariantError<E>
fn default() -> InvariantError<E>
Returns the “default value” for a type. Read more
Source§impl<E: Display> Display for InvariantError<E>
impl<E: Display> Display for InvariantError<E>
Source§impl<E: Error> Error for InvariantError<E>
impl<E: Error> Error for InvariantError<E>
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§impl<E: Hash> Hash for InvariantError<E>
impl<E: Hash> Hash for InvariantError<E>
Source§impl<E> Into<Option<E>> for InvariantError<E>
impl<E> Into<Option<E>> for InvariantError<E>
Source§impl<E: PartialEq> PartialEq for InvariantError<E>
impl<E: PartialEq> PartialEq for InvariantError<E>
impl<E: Copy> Copy for InvariantError<E>
impl<E: Eq> Eq for InvariantError<E>
impl<E> StructuralPartialEq for InvariantError<E>
Auto Trait Implementations§
impl<E> Freeze for InvariantError<E>where
E: Freeze,
impl<E> RefUnwindSafe for InvariantError<E>where
E: RefUnwindSafe,
impl<E> Send for InvariantError<E>where
E: Send,
impl<E> Sync for InvariantError<E>where
E: Sync,
impl<E> Unpin for InvariantError<E>where
E: Unpin,
impl<E> UnwindSafe for InvariantError<E>where
E: 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