pub trait Input: Clone + Serialize + DeserializeOwned + Debug {
    fn generate_name(&self, idx: usize) -> String;

    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>
, { ... } }
Expand description

An input for the target

Required methods

Generate a name for this input

Provided methods

Write this input to the file

Load the contents of this input from a file

Implementors