pub struct FixtureGenerator;Expand description
批量数据生成器
Implementations§
Source§impl FixtureGenerator
impl FixtureGenerator
Sourcepub fn i32_numbers(count: usize, min: i32, max: i32) -> TestingResult<Vec<i32>>
pub fn i32_numbers(count: usize, min: i32, max: i32) -> TestingResult<Vec<i32>>
生成指定数量的随机 i32 数字
Sourcepub fn u64_numbers(count: usize, min: u64, max: u64) -> TestingResult<Vec<u64>>
pub fn u64_numbers(count: usize, min: u64, max: u64) -> TestingResult<Vec<u64>>
生成指定数量的随机 u64 数字
Auto Trait Implementations§
impl Freeze for FixtureGenerator
impl RefUnwindSafe for FixtureGenerator
impl Send for FixtureGenerator
impl Sync for FixtureGenerator
impl Unpin for FixtureGenerator
impl UnsafeUnpin for FixtureGenerator
impl UnwindSafe for FixtureGenerator
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