Struct armnod::SetStringChooser
source · pub struct SetStringChooser { /* private fields */ }Expand description
Choose strings from a set of strings with uniform probability.
Implementations§
source§impl SetStringChooser
impl SetStringChooser
sourcepub fn new(cardinality: u64) -> Self
pub fn new(cardinality: u64) -> Self
Create a new SetStringChooser with cardinality. Strings are on [0, cardinality) and
will be generated using two levels of Guacamole.
Trait Implementations§
source§impl SeedChooser for SetStringChooser
impl SeedChooser for SetStringChooser
source§fn which_seed(&mut self, guac: &mut Guacamole) -> SeedChoice
fn which_seed(&mut self, guac: &mut Guacamole) -> SeedChoice
Endlessly return the next seed for strings on [0, cardinality). Note that the SeedChoice
will not be over the same interval, but over the complete u64.
Auto Trait Implementations§
impl RefUnwindSafe for SetStringChooser
impl Send for SetStringChooser
impl Sync for SetStringChooser
impl Unpin for SetStringChooser
impl UnwindSafe for SetStringChooser
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