Struct libafl::corpus::inmemory::InMemoryCorpus[][src]

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

A corpus handling all in memory.

Implementations

Creates a new InMemoryCorpus, keeping all Testcases in memory. This is the simplest and fastest option, however test progress will be lost on exit or on OOM.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Returns the number of elements

Add an entry to the corpus and return its index

Replaces the testcase at the given idx

Removes an entry from the corpus, returning it if it was present.

Get by id

Current testcase scheduled

Current testcase scheduled (mut)

Returns true, if no elements are in this corpus yet

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

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.

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.