pub struct ParserRuleArg {
pub source_state: usize,
pub rule_index: usize,
pub value: i64,
pub inherit_local: bool,
}Expand description
Integer argument metadata for a generated parser rule invocation.
ANTLR’s serialized ATN does not retain Rust-target rule argument values, so the generator records the rule-transition source state and the value that should be visible to semantic predicates inside the callee.
Fields§
§source_state: usizeATN state containing the rule transition that receives this argument.
rule_index: usizeCallee rule index for the transition.
value: i64Literal fallback value to expose in the callee.
inherit_local: boolWhether the callee should inherit the caller’s current integer argument.
Trait Implementations§
Source§impl Clone for ParserRuleArg
impl Clone for ParserRuleArg
Source§fn clone(&self) -> ParserRuleArg
fn clone(&self) -> ParserRuleArg
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 ParserRuleArg
impl Debug for ParserRuleArg
Source§impl Ord for ParserRuleArg
impl Ord for ParserRuleArg
Source§fn cmp(&self, other: &ParserRuleArg) -> Ordering
fn cmp(&self, other: &ParserRuleArg) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ParserRuleArg
impl PartialEq for ParserRuleArg
Source§fn eq(&self, other: &ParserRuleArg) -> bool
fn eq(&self, other: &ParserRuleArg) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ParserRuleArg
impl PartialOrd for ParserRuleArg
impl Copy for ParserRuleArg
impl Eq for ParserRuleArg
impl StructuralPartialEq for ParserRuleArg
Auto Trait Implementations§
impl Freeze for ParserRuleArg
impl RefUnwindSafe for ParserRuleArg
impl Send for ParserRuleArg
impl Sync for ParserRuleArg
impl Unpin for ParserRuleArg
impl UnsafeUnpin for ParserRuleArg
impl UnwindSafe for ParserRuleArg
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