pub struct Group<'i> {
pub parts: Vec<Rule<'i>>,
pub kind: GroupKind<'i>,
pub span: Span,
}
Expand description
A group, i.e. sequence of rules. A group is either capturing or non-capturing.
If it is capturing, it must be wrapped in parentheses, and can have a name. If it is non-capturing, the parentheses can be omitted in same cases.
Fields§
§parts: Vec<Rule<'i>>
§kind: GroupKind<'i>
§span: Span
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'i> Freeze for Group<'i>
impl<'i> RefUnwindSafe for Group<'i>
impl<'i> Send for Group<'i>
impl<'i> Sync for Group<'i>
impl<'i> Unpin for Group<'i>
impl<'i> UnwindSafe for Group<'i>
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