pub struct RealGenerator { /* private fields */ }Expand description
The generator with generate DataValue::Real value with range of generated value.
Trait Implementations§
Source§impl Clone for RealGenerator
impl Clone for RealGenerator
Source§fn clone(&self) -> RealGenerator
fn clone(&self) -> RealGenerator
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 Debug for RealGenerator
impl Debug for RealGenerator
Source§impl<R: Randomizer + ?Sized> GeneratorBase<R> for RealGenerator
impl<R: Randomizer + ?Sized> GeneratorBase<R> for RealGenerator
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 PartialEq for RealGenerator
impl PartialEq for RealGenerator
impl StructuralPartialEq for RealGenerator
Auto Trait Implementations§
impl Freeze for RealGenerator
impl RefUnwindSafe for RealGenerator
impl Send for RealGenerator
impl Sync for RealGenerator
impl Unpin for RealGenerator
impl UnwindSafe for RealGenerator
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