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§
Source§impl CorpusDelta
impl CorpusDelta
pub fn fuzzer_event(deltas: &[CorpusDelta]) -> FuzzerEvent
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CorpusDelta
impl RefUnwindSafe for CorpusDelta
impl Send for CorpusDelta
impl Sync for CorpusDelta
impl Unpin for CorpusDelta
impl UnwindSafe for CorpusDelta
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more