pub struct State { /* private fields */ }
Expand description
The external mutable state used during evaluation.
Implementations
sourceimpl State
impl State
sourcepub fn new(
row_num: u64,
rng: Box<dyn RngCore>,
variables_count: usize,
compile_context: CompileContext
) -> Self
pub fn new(
row_num: u64,
rng: Box<dyn RngCore>,
variables_count: usize,
compile_context: CompileContext
) -> Self
Creates a new state.
Parameters
row_num
: The starting row number in this state. The first file should have this set to 1, and the second torows_count * inserts_count + 1
, etc.rng
: The seeded random number generator.variables_count
: Number of local variables per row.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for State
impl !Send for State
impl !Sync for State
impl Unpin for State
impl !UnwindSafe for State
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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