pub struct Set<S: State = Parsed> { /* private fields */ }Expand description
Set of characters, one of which is chosen at random, as in [a-z]. A character that is
listed more than once is more likely. With a single character there is nothing to choose,
which uses no randomness.
Implementations§
Source§impl Set
impl Set
Sourcepub fn insert(&mut self, range: RangeInclusive<char>, count: usize)
pub fn insert(&mut self, range: RangeInclusive<char>, count: usize)
Adds a range of characters to the set. Characters that are in the set already become more likely.
Source§impl Set<Prepared>
impl Set<Prepared>
Trait Implementations§
impl<S: PartialEq + State> StructuralPartialEq for Set<S>where
S::Characters: PartialEq,
Auto Trait Implementations§
impl<S> Forget for Set<S>
impl<S> Freeze for Set<S>
impl<S> Move for Set<S>
impl<S> RefUnwindSafe for Set<S>
impl<S> Send for Set<S>
impl<S> Sync for Set<S>
impl<S> Unpin for Set<S>
impl<S> UnsafeUnpin for Set<S>
impl<S> UnwindSafe for Set<S>
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