pub struct CorpusDelta {
    pub path: PathBuf,
    pub add: bool,
    pub remove: Vec<PoolStorageIndex>,
}
Expand description

A CorpusDelta describes how to reflect a change in the pool’s content to the corpus on the file system.

It is used as the return type to pool.process(..) where a test case along with its associated sensor observations is given to the pool. Thus, it is always implicitly associated with a specific pool and test case.

Fields

path: PathBuf

The common path to the subfolder inside the main corpus where the test cases (added or removed) reside

add: bool

Whether the test case was added to the pool

remove: Vec<PoolStorageIndex>

A list of test cases that were removed

Implementations

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.