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§
Sourcefn generate_name(&self, _id: Option<CorpusId>) -> String
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§
impl Input for EncodedInput
impl Input for GramatronInput
impl Input for NautilusInput
impl Input for NopInput
impl Input for ValueInput<i8>
impl Input for ValueInput<i16>
impl Input for ValueInput<i32>
impl Input for ValueInput<i64>
impl Input for ValueInput<i128>
impl Input for ValueInput<isize>
impl Input for ValueInput<u8>
impl Input for ValueInput<u16>
impl Input for ValueInput<u32>
impl Input for ValueInput<u64>
impl Input for ValueInput<u128>
impl Input for ValueInput<usize>
impl Input for ValueInput<Vec<u8>>
manually implemented because files can be written more efficiently