Struct libafl::generators::gramatron::GramatronGenerator
source · pub struct GramatronGenerator<'a, S>where
S: HasRand,{ /* private fields */ }
Expand description
Generates random inputs from a grammar automaton
Implementations§
source§impl<'a, S> GramatronGenerator<'a, S>where
S: HasRand,
impl<'a, S> GramatronGenerator<'a, S>where
S: HasRand,
sourcepub fn new(automaton: &'a Automaton) -> Self
pub fn new(automaton: &'a Automaton) -> Self
Returns a new GramatronGenerator
sourcepub fn append_generated_terminals(
&self,
input: &mut GramatronInput,
state: &mut S
) -> usize
pub fn append_generated_terminals(
&self,
input: &mut GramatronInput,
state: &mut S
) -> usize
Append the generated terminals
Trait Implementations§
source§impl<'a, S> Clone for GramatronGenerator<'a, S>where
S: HasRand + Clone,
impl<'a, S> Clone for GramatronGenerator<'a, S>where
S: HasRand + Clone,
source§fn clone(&self) -> GramatronGenerator<'a, S>
fn clone(&self) -> GramatronGenerator<'a, S>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a, S> Generator<GramatronInput, S> for GramatronGenerator<'a, S>where
S: HasRand,
impl<'a, S> Generator<GramatronInput, S> for GramatronGenerator<'a, S>where
S: HasRand,
source§fn generate_dummy(&self, _state: &mut S) -> GramatronInput
fn generate_dummy(&self, _state: &mut S) -> GramatronInput
Generate a new dummy input
Auto Trait Implementations§
impl<'a, S> RefUnwindSafe for GramatronGenerator<'a, S>where
S: RefUnwindSafe,
impl<'a, S> Send for GramatronGenerator<'a, S>where
S: Send,
impl<'a, S> Sync for GramatronGenerator<'a, S>where
S: Sync,
impl<'a, S> Unpin for GramatronGenerator<'a, S>where
S: Unpin,
impl<'a, S> UnwindSafe for GramatronGenerator<'a, S>where
S: UnwindSafe,
Blanket Implementations§
source§impl<Tail, T> Prepend<T> for Tail
impl<Tail, T> Prepend<T> for Tail
§type PreprendResult = Tail
type PreprendResult = Tail
The Resulting
TupleList
, of an Prepend::prepend()
call,
including the prepended entry.source§fn prepend(self, value: T) -> (T, <Tail as Prepend<T>>::PreprendResult)
fn prepend(self, value: T) -> (T, <Tail as Prepend<T>>::PreprendResult)
Prepend a value to this tuple, returning a new tuple with prepended value.