pub struct SizeGen;Expand description
Size generator for edge case testing.
Implementations§
Source§impl SizeGen
impl SizeGen
Sourcepub fn edge_cases() -> Vec<usize>
pub fn edge_cases() -> Vec<usize>
Standard edge case sizes covering block boundaries and common edge cases.
Sourcepub fn near_i32_max() -> Vec<usize>
pub fn near_i32_max() -> Vec<usize>
Sizes near 32-bit overflow boundary.
Sourcepub fn random(count: usize, min: usize, max: usize, seed: u64) -> Vec<usize>
pub fn random(count: usize, min: usize, max: usize, seed: u64) -> Vec<usize>
Random sizes within a range using deterministic RNG.
Warp-related sizes (multiples of 32, and off-by-one).
Block-related sizes (multiples of 256, and off-by-one).
Auto Trait Implementations§
impl Freeze for SizeGen
impl RefUnwindSafe for SizeGen
impl Send for SizeGen
impl Sync for SizeGen
impl Unpin for SizeGen
impl UnsafeUnpin for SizeGen
impl UnwindSafe for SizeGen
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