Trait Input

Source
pub trait Input:
    Clone
    + Serialize
    + DeserializeOwned
    + Debug
    + Hash {
    // Provided methods
    fn to_file<P>(&self, path: P) -> Result<(), Error>
       where P: AsRef<Path> { ... }
    fn from_file<P>(path: P) -> Result<Self, Error>
       where P: AsRef<Path> { ... }
    fn generate_name(&self, _id: Option<CorpusId>) -> String { ... }
}
Expand description

An input for the target

Provided Methods§

Source

fn to_file<P>(&self, path: P) -> Result<(), Error>
where P: AsRef<Path>,

Write this input to the file

Source

fn from_file<P>(path: P) -> Result<Self, Error>
where P: AsRef<Path>,

Load the content of this input from a file

Source

fn generate_name(&self, _id: Option<CorpusId>) -> String

Generate a name for this input, the user is responsible for making each name of testcase unique.

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§