Enum armnod::SeedChoice
source · pub enum SeedChoice {
StopIterating,
SkipSeeding,
Seed(u64),
}Expand description
SeedChoice chooses the string to be generated from one of three possibilities. The first could be to not generate anything and stop iterating. This is useful, e.g., when the SeedChoice generates each string exactly once for purposes of loading data. The second choice is to skip seeding. This will avoid a seek at the lower level random number generator, but it means the data generated will truly span the domain of Guacamole.
Variants§
StopIterating
Do not return a string. Stop work instead.
SkipSeeding
Use the existing guacamole for generating strings. You get what you get.
Seed(u64)
Seed guacamole before generating strings. If the u64 is drawn from a consistent set, the
set of strings generated will also be consistent and of equal cardinality.
Auto Trait Implementations§
impl RefUnwindSafe for SeedChoice
impl Send for SeedChoice
impl Sync for SeedChoice
impl Unpin for SeedChoice
impl UnwindSafe for SeedChoice
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