pub enum RelationshipDistribution {
Uniform,
Sequential,
Weighted,
Observed,
}Expand description
How a relationship distributes children across parent rows.
This is the value-assignment distribution (which parent each child points
to), distinct from the count distribution ([crate::synthetic::model:: ChildDistribution]) that decides how many children a table has. Weighted
and Observed both compile to a bounded histogram over parent row-index
buckets at run time; they never enumerate a per-value list.
Variants§
Uniform
Each child maps a uniformly random index into [0, parent_count).
Sequential
Child row r references parent r % parent_count.
Weighted
A bounded, seed-derived histogram concentrates children on some parents.
Observed
Same mechanism as Self::Weighted; named for provenance from an
observed source profile.
Trait Implementations§
Source§impl Clone for RelationshipDistribution
impl Clone for RelationshipDistribution
Source§fn clone(&self) -> RelationshipDistribution
fn clone(&self) -> RelationshipDistribution
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 moreimpl Copy for RelationshipDistribution
Source§impl Debug for RelationshipDistribution
impl Debug for RelationshipDistribution
Source§impl Default for RelationshipDistribution
impl Default for RelationshipDistribution
Source§fn default() -> RelationshipDistribution
fn default() -> RelationshipDistribution
Returns the “default value” for a type. Read more
impl Eq for RelationshipDistribution
Source§impl PartialEq for RelationshipDistribution
impl PartialEq for RelationshipDistribution
impl StructuralPartialEq for RelationshipDistribution
Auto Trait Implementations§
impl Freeze for RelationshipDistribution
impl RefUnwindSafe for RelationshipDistribution
impl Send for RelationshipDistribution
impl Sync for RelationshipDistribution
impl Unpin for RelationshipDistribution
impl UnsafeUnpin for RelationshipDistribution
impl UnwindSafe for RelationshipDistribution
Blanket Implementations§
impl<T> Allocation for T
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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