partial_io::quickcheck_types

Trait GenError

Source
pub trait GenError:
    Clone
    + Default
    + Send {
    // Required method
    fn gen_error(&mut self, g: &mut Gen) -> Option<ErrorKind>;
}
Available on crate feature quickcheck1 only.
Expand description

Represents a way to generate io::ErrorKind instances.

See the module level documentation for more.

Required Methods§

Source

fn gen_error(&mut self, g: &mut Gen) -> Option<ErrorKind>

Optionally generate an io::ErrorKind instance.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§