Struct libafl::generators::RandPrintablesGenerator
source · pub struct RandPrintablesGenerator<S>where
S: HasRand,{ /* private fields */ }
Expand description
Generates random printable characters
Implementations§
source§impl<S> RandPrintablesGenerator<S>where
S: HasRand,
impl<S> RandPrintablesGenerator<S>where
S: HasRand,
sourcepub fn new(max_size: usize) -> Self
pub fn new(max_size: usize) -> Self
Creates a new RandPrintablesGenerator
, generating up to max_size
random printable characters.
Trait Implementations§
source§impl<S> Clone for RandPrintablesGenerator<S>where
S: HasRand + Clone,
impl<S> Clone for RandPrintablesGenerator<S>where
S: HasRand + Clone,
source§fn clone(&self) -> RandPrintablesGenerator<S>
fn clone(&self) -> RandPrintablesGenerator<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<S> Generator<BytesInput, S> for RandPrintablesGenerator<S>where
S: HasRand,
impl<S> Generator<BytesInput, S> for RandPrintablesGenerator<S>where
S: HasRand,
source§fn generate_dummy(&self, _state: &mut S) -> BytesInput
fn generate_dummy(&self, _state: &mut S) -> BytesInput
Generates up to DUMMY_BYTES_MAX
non-random dummy bytes (0)
Auto Trait Implementations§
impl<S> RefUnwindSafe for RandPrintablesGenerator<S>where
S: RefUnwindSafe,
impl<S> Send for RandPrintablesGenerator<S>where
S: Send,
impl<S> Sync for RandPrintablesGenerator<S>where
S: Sync,
impl<S> Unpin for RandPrintablesGenerator<S>where
S: Unpin,
impl<S> UnwindSafe for RandPrintablesGenerator<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.