pub struct ParseGroup {
pub anchor: ItemRef,
pub members: Vec<Option<ItemRef>>,
}Expand description
A resolved group of member nodes handed to a multi-input ParseRule.
The anchor is the required defining node (always present). members holds
the resolved ItemRef for every slot in descriptor order, None for an
unfilled optional slot. Index 0 is always the anchor (Some). A single-input
parse sees a group with just the anchor.
Fields§
§anchor: ItemRef§members: Vec<Option<ItemRef>>Implementations§
Trait Implementations§
Source§impl Clone for ParseGroup
impl Clone for ParseGroup
Source§fn clone(&self) -> ParseGroup
fn clone(&self) -> ParseGroup
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ParseGroup
impl RefUnwindSafe for ParseGroup
impl Send for ParseGroup
impl Sync for ParseGroup
impl Unpin for ParseGroup
impl UnsafeUnpin for ParseGroup
impl UnwindSafe for ParseGroup
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