pub struct Group<S: State = Parsed> {
pub segments: Vec<Segment<S>>,
}Expand description
Segments, one of which is chosen at random according to their weights, as in (a|b). A
pattern itself is a group as well.
With a single segment there is nothing to choose, which uses no randomness. A group without segments generates nothing.
Fields§
§segments: Vec<Segment<S>>The segments to choose from.
Trait Implementations§
impl<S: PartialEq + State> StructuralPartialEq for Group<S>
Auto Trait Implementations§
impl<S> Forget for Group<S>
impl<S> Freeze for Group<S>
impl<S> Move for Group<S>
impl<S> RefUnwindSafe for Group<S>
impl<S> Send for Group<S>
impl<S> Sync for Group<S>
impl<S> Unpin for Group<S>
impl<S> UnsafeUnpin for Group<S>
impl<S> UnwindSafe for Group<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