pub struct MemberMatch {
pub matcher: NodeMatch,
pub required: bool,
}Expand description
One slot in a parse rule’s correlated input member-set (CFM-83).
A member-match is a NodeMatch plus whether the slot must be filled for a
group to form. The ordered member list of a ParseDescriptor is its
input anchor (always a required size-1 member) followed by any
extra_members. A single-input parser declares no extra members, so its
member-set is exactly [{ input, required: true }] — the size-1 degenerate
case the engine still drives through the same enumeration path.
Fields§
§matcher: NodeMatch§required: boolImplementations§
Trait Implementations§
Source§impl Clone for MemberMatch
impl Clone for MemberMatch
Source§fn clone(&self) -> MemberMatch
fn clone(&self) -> MemberMatch
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 moreSource§impl Debug for MemberMatch
impl Debug for MemberMatch
Source§impl<'de> Deserialize<'de> for MemberMatch
impl<'de> Deserialize<'de> for MemberMatch
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<NodeMatch> for MemberMatch
A plain NodeMatch is the size-1 required member: the ergonomic single-input
case promised by CFM-83’s ADR.
impl From<NodeMatch> for MemberMatch
A plain NodeMatch is the size-1 required member: the ergonomic single-input
case promised by CFM-83’s ADR.
Source§impl PartialEq for MemberMatch
impl PartialEq for MemberMatch
Source§fn eq(&self, other: &MemberMatch) -> bool
fn eq(&self, other: &MemberMatch) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MemberMatch
impl Serialize for MemberMatch
impl Eq for MemberMatch
impl StructuralPartialEq for MemberMatch
Auto Trait Implementations§
impl Freeze for MemberMatch
impl RefUnwindSafe for MemberMatch
impl Send for MemberMatch
impl Sync for MemberMatch
impl Unpin for MemberMatch
impl UnsafeUnpin for MemberMatch
impl UnwindSafe for MemberMatch
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