pub enum DomainType {
Pos,
Weblog,
}Expand description
available domain types for data generation
Variants§
Implementations§
Source§impl DomainType
impl DomainType
Sourcepub fn generate_records<T>(&self, count: usize) -> Vec<T>where
T: Record,
pub fn generate_records<T>(&self, count: usize) -> Vec<T>where
T: Record,
generate random records for the specified domain type
Trait Implementations§
Source§impl Clone for DomainType
impl Clone for DomainType
Source§fn clone(&self) -> DomainType
fn clone(&self) -> DomainType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DomainType
impl Debug for DomainType
Source§impl PartialEq for DomainType
impl PartialEq for DomainType
Source§fn eq(&self, other: &DomainType) -> bool
fn eq(&self, other: &DomainType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl ValueEnum for DomainType
impl ValueEnum for DomainType
impl Copy for DomainType
impl Eq for DomainType
impl StructuralPartialEq for DomainType
Auto Trait Implementations§
impl Freeze for DomainType
impl RefUnwindSafe for DomainType
impl Send for DomainType
impl Sync for DomainType
impl Unpin for DomainType
impl UnsafeUnpin for DomainType
impl UnwindSafe for DomainType
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