pub struct EvalGenerator<T> { /* private fields */ }Expand description
The generator with generate value as a type by specified script with evaluating by Evaluator
Trait Implementations§
Source§impl<T: Clone> Clone for EvalGenerator<T>
impl<T: Clone> Clone for EvalGenerator<T>
Source§fn clone(&self) -> EvalGenerator<T>
fn clone(&self) -> EvalGenerator<T>
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 moreSource§impl<T: Debug> Debug for EvalGenerator<T>
impl<T: Debug> Debug for EvalGenerator<T>
Source§impl<R: Randomizer + ?Sized, F: ForEvalGeneratorType> GeneratorBase<R> for EvalGenerator<F>
impl<R: Randomizer + ?Sized, F: ForEvalGeneratorType> GeneratorBase<R> for EvalGenerator<F>
Source§fn create(builder: GeneratorBuilder) -> Result<Self, BuildError>where
Self: Sized,
fn create(builder: GeneratorBuilder) -> Result<Self, BuildError>where
Self: Sized,
Create generator from builder
Source§fn is_nullable(&self) -> bool
fn is_nullable(&self) -> bool
Can generate null flag
Source§fn generate_without_null(
&self,
_rng: &mut R,
context: &DataValueMap<&str>,
) -> Result<DataValue, GenerateError>
fn generate_without_null( &self, _rng: &mut R, context: &DataValueMap<&str>, ) -> Result<DataValue, GenerateError>
Generate dummy data not considering nullable
Source§fn is_required(&self) -> bool
fn is_required(&self) -> bool
Cannot generate null flag
Source§fn generate(
&self,
rng: &mut R,
context: &DataValueMap<&str>,
) -> Result<DataValue, GenerateError>
fn generate( &self, rng: &mut R, context: &DataValueMap<&str>, ) -> Result<DataValue, GenerateError>
Generate dummy data considering nullable
Source§impl<T: PartialEq> PartialEq for EvalGenerator<T>
impl<T: PartialEq> PartialEq for EvalGenerator<T>
impl<T> StructuralPartialEq for EvalGenerator<T>
Auto Trait Implementations§
impl<T> Freeze for EvalGenerator<T>
impl<T> RefUnwindSafe for EvalGenerator<T>where
T: RefUnwindSafe,
impl<T> Send for EvalGenerator<T>where
T: Send,
impl<T> Sync for EvalGenerator<T>where
T: Sync,
impl<T> Unpin for EvalGenerator<T>where
T: Unpin,
impl<T> UnwindSafe for EvalGenerator<T>where
T: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more