Enum invariant::InvariantError
[−]
[src]
pub enum InvariantError<E> { InvariantFailure, OtherError(E), }
Variants
InvariantFailure
OtherError(E)
Trait Implementations
impl<E: Debug> Debug for InvariantError<E>
[src]
impl<E: Hash> Hash for InvariantError<E>
[src]
fn hash<__HE: Hasher>(&self, __arg_0: &mut __HE)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<E: PartialEq> PartialEq for InvariantError<E>
[src]
fn eq(&self, __arg_0: &InvariantError<E>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &InvariantError<E>) -> bool
This method tests for !=
.
impl<E: Eq> Eq for InvariantError<E>
[src]
impl<E: Clone> Clone for InvariantError<E>
[src]
fn clone(&self) -> InvariantError<E>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<E: Copy> Copy for InvariantError<E>
[src]
impl<E> Default for InvariantError<E>
[src]
fn default() -> InvariantError<E>
Returns the "default value" for a type. Read more
impl<E> Into<Option<E>> for InvariantError<E>
[src]
impl<E: Display> Display for InvariantError<E>
[src]
fn fmt(&self, formatter: &mut Formatter) -> Result
Formats the value using the given formatter. Read more