Struct libafl::corpus::testcase::Testcase[][src]

pub struct Testcase<I> where
    I: Input
{ /* fields omitted */ }
Expand description

An entry in the Testcase Corpus

Implementations

Impl of a testcase

Returns this testcase with a loaded input

Store the input to disk if possible

Get the input, if any

Get the input, if any (mutable)

Set the input

Get the filename, if any

Get the filename, if any (mutable)

Set the filename

Get the execution time of the testcase

Get the execution time of the testcase (mut)

Create a new Testcase instace given an input

Create a new Testcase instance given an Input and a filename

Create a new, empty, Testcase.

Impl of a testcase when the input has len

Get the cached len

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Create a testcase from an input

Performs the conversion.

Get all the metadata into an hashbrown::HashMap

Get all the metadata into an hashbrown::HashMap (mutable)

Add a metadata to the metadata map

Check for a metadata

Serialize this value into the given Serde serializer. 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

Performs the conversion.

Performs the conversion.

Performs the conversion.

The Resulting TupleList, of an Prepend::prepend() call, including the prepended entry. Read more

Prepend a value to this tuple, returning a new tuple with prepended value.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.