pub struct FuzzerState {
pub rng: SmallRng,
pub conf: FuzzerConf,
}
Fields§
§rng: SmallRng
§conf: FuzzerConf
Implementations§
Source§impl FuzzerState
impl FuzzerState
pub fn gen_ratio(&mut self, numerator: Option<u32>) -> bool
pub fn gen_flips(&mut self, max_size: usize) -> usize
pub fn flip_bits(&mut self, data: &mut u8)
pub fn flip_bytes(&mut self, data: &mut [u8])
pub fn extend_random(&mut self, data: &[u8]) -> Vec<u8> ⓘ
pub fn extend_copy(&mut self, data: &[u8]) -> Vec<u8> ⓘ
pub fn shrink(&mut self, data: &[u8]) -> Vec<u8> ⓘ
Trait Implementations§
Source§impl Clone for FuzzerState
impl Clone for FuzzerState
Source§fn clone(&self) -> FuzzerState
fn clone(&self) -> FuzzerState
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for FuzzerState
impl RefUnwindSafe for FuzzerState
impl Send for FuzzerState
impl Sync for FuzzerState
impl Unpin for FuzzerState
impl UnwindSafe for FuzzerState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more