pub struct PartSuppGenerator<'a> { /* private fields */ }Expand description
Generator for PartSupp table data
Implementations§
Source§impl<'a> PartSuppGenerator<'a>
impl<'a> PartSuppGenerator<'a>
Sourcepub fn new(
scale_factor: f64,
part: i32,
part_count: i32,
) -> PartSuppGenerator<'static>
pub fn new( scale_factor: f64, part: i32, part_count: i32, ) -> PartSuppGenerator<'static>
Creates a new PartSuppGenerator with the given scale factor
Note the generator’s lifetime is &'static. See NationGenerator for
more details.
Sourcepub fn new_with_text_pool(
scale_factor: f64,
part: i32,
part_count: i32,
text_pool: &TextPool,
) -> PartSuppGenerator<'_>
pub fn new_with_text_pool( scale_factor: f64, part: i32, part_count: i32, text_pool: &TextPool, ) -> PartSuppGenerator<'_>
Creates a PartSuppGenerator with specified text pool
Sourcepub fn calculate_row_count(scale_factor: f64, part: i32, part_count: i32) -> i64
pub fn calculate_row_count(scale_factor: f64, part: i32, part_count: i32) -> i64
Return the row count for the given scale factor and generator part count
Sourcepub fn iter(&self) -> PartSuppGeneratorIterator<'a> ⓘ
pub fn iter(&self) -> PartSuppGeneratorIterator<'a> ⓘ
Returns an iterator over the part supplier rows
Trait Implementations§
Source§impl<'a> Clone for PartSuppGenerator<'a>
impl<'a> Clone for PartSuppGenerator<'a>
Source§fn clone(&self) -> PartSuppGenerator<'a>
fn clone(&self) -> PartSuppGenerator<'a>
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<'a> Debug for PartSuppGenerator<'a>
impl<'a> Debug for PartSuppGenerator<'a>
Source§impl<'a> IntoIterator for PartSuppGenerator<'a>
impl<'a> IntoIterator for PartSuppGenerator<'a>
Auto Trait Implementations§
impl<'a> Freeze for PartSuppGenerator<'a>
impl<'a> RefUnwindSafe for PartSuppGenerator<'a>
impl<'a> Send for PartSuppGenerator<'a>
impl<'a> Sync for PartSuppGenerator<'a>
impl<'a> Unpin for PartSuppGenerator<'a>
impl<'a> UnwindSafe for PartSuppGenerator<'a>
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