pub struct GenError(/* private fields */);Expand description
An opaque error from a strategy that could not produce a value.
It wraps the backend’s own generation error so callers do not depend on the
backend’s type. In practice the simple strategies a property test uses
(any::<T>(), numeric ranges) never fail to generate; this surfaces only
for heavily filtered strategies that exhaust their rejection budget.
Trait Implementations§
Source§impl Error for GenError
impl Error for GenError
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 Freeze for GenError
impl RefUnwindSafe for GenError
impl Send for GenError
impl Sync for GenError
impl Unpin for GenError
impl UnsafeUnpin for GenError
impl UnwindSafe for GenError
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