pub struct Testcase { /* private fields */ }
Expand description
Represents the input executed during one iteration of the fuzzer.
Implementations
sourceimpl Testcase
impl Testcase
sourcepub fn from_file(filepath: impl AsRef<Path>) -> Result<Self>
pub fn from_file(filepath: impl AsRef<Path>) -> Result<Self>
Loads a testcase from the file located at filepath
.
sourcepub fn to_file(&self, dir: impl AsRef<Path>) -> Result<()>
pub fn to_file(&self, dir: impl AsRef<Path>) -> Result<()>
Writes a testcase into the dir
directory.
sourcepub fn get_data_mut(&mut self) -> &mut Vec<u8> ⓘ
pub fn get_data_mut(&mut self) -> &mut Vec<u8> ⓘ
Returns a mutable reference to the testcase data.
Trait Implementations
impl Eq for Testcase
impl StructuralEq for Testcase
impl StructuralPartialEq for Testcase
Auto Trait Implementations
impl RefUnwindSafe for Testcase
impl Send for Testcase
impl Sync for Testcase
impl Unpin for Testcase
impl UnwindSafe for Testcase
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more