pub struct DistributionFactory {
pub base_seed: u64,
pub next_seed: u64,
}Expand description
Factory for creating Distribution instances based on a DistributionConfig. For random distributions, creates SmallRng instances seeded with an incrementing seed value.
Fields§
§base_seed: u64§next_seed: u64Implementations§
Source§impl DistributionFactory
impl DistributionFactory
pub fn new(base_seed: u64) -> Self
pub fn create( &mut self, config: DistributionConfig, ) -> Result<Distribution, DistributionParametersError>
Auto Trait Implementations§
impl Freeze for DistributionFactory
impl RefUnwindSafe for DistributionFactory
impl Send for DistributionFactory
impl Sync for DistributionFactory
impl Unpin for DistributionFactory
impl UnsafeUnpin for DistributionFactory
impl UnwindSafe for DistributionFactory
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