Struct libafl::generators::RandPrintablesGenerator
source · [−]pub struct RandPrintablesGenerator<S> where
S: HasRand, { /* private fields */ }
Expand description
Generates random printable characters
Implementations
sourceimpl<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
sourceimpl<S: Clone> Clone for RandPrintablesGenerator<S> where
S: HasRand,
impl<S: Clone> Clone for RandPrintablesGenerator<S> where
S: HasRand,
sourcefn clone(&self) -> RandPrintablesGenerator<S>
fn clone(&self) -> RandPrintablesGenerator<S>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<S: Debug> Debug for RandPrintablesGenerator<S> where
S: HasRand,
impl<S: Debug> Debug for RandPrintablesGenerator<S> where
S: HasRand,
sourceimpl<S> Generator<BytesInput, S> for RandPrintablesGenerator<S> where
S: HasRand,
impl<S> Generator<BytesInput, S> for RandPrintablesGenerator<S> where
S: HasRand,
sourcefn 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<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. Read more
sourcefn 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.