pub struct Group {
pub parts: Vec<Rule>,
pub kind: GroupKind,
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>§kind: GroupKind§span: SpanImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Group
impl RefUnwindSafe for Group
impl Send for Group
impl Sync for Group
impl Unpin for Group
impl UnwindSafe for Group
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