Enum contrafact::MutationError
source · pub enum MutationError {
Check(Failure),
Arbitrary(Error),
Internal(ContrafactError),
User(String),
}
Expand description
Errors which can occur during a mutate()
call
Variants§
Check(Failure)
When running check, this is a failure which was generated instead of mutating the data
Arbitrary(Error)
arbitrary failed to produce new data, which means we can’t go on
Internal(ContrafactError)
Contrafact experienced a problem
User(String)
There was some other bug in the Fact implementation
Trait Implementations§
source§impl Clone for MutationError
impl Clone for MutationError
source§fn clone(&self) -> MutationError
fn clone(&self) -> MutationError
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 MutationError
impl Debug for MutationError
source§impl From<ContrafactError> for MutationError
impl From<ContrafactError> for MutationError
source§fn from(original: ContrafactError) -> MutationError
fn from(original: ContrafactError) -> MutationError
Converts to this type from the input type.
source§impl From<Error> for MutationError
impl From<Error> for MutationError
source§fn from(original: Error) -> MutationError
fn from(original: Error) -> MutationError
Converts to this type from the input type.
source§impl PartialEq<MutationError> for MutationError
impl PartialEq<MutationError> for MutationError
Auto Trait Implementations§
impl RefUnwindSafe for MutationError
impl Send for MutationError
impl Sync for MutationError
impl Unpin for MutationError
impl UnwindSafe for MutationError
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