pub struct CompiledRule { /* private fields */ }Expand description
A precompiled generator for a whole rule (sequence of fields).
Implementations§
Source§impl CompiledRule
impl CompiledRule
Sourcepub fn gen_one(&self) -> WplCodeResult<FmtFieldVec>
pub fn gen_one(&self) -> WplCodeResult<FmtFieldVec>
Generate one record (Vec of fields).
Sourcepub fn gen_batch(
&self,
_idx_begin: usize,
count: usize,
) -> WplCodeResult<Vec<FmtFieldVec>>
pub fn gen_batch( &self, _idx_begin: usize, count: usize, ) -> WplCodeResult<Vec<FmtFieldVec>>
Generate count records; start index is unused but kept for API parity.
Auto Trait Implementations§
impl Freeze for CompiledRule
impl !RefUnwindSafe for CompiledRule
impl Send for CompiledRule
impl Sync for CompiledRule
impl Unpin for CompiledRule
impl UnsafeUnpin for CompiledRule
impl !UnwindSafe for CompiledRule
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