pub struct ParserRuntimeOptions<'a> {
pub init_action_rules: &'a [usize],
pub track_alt_numbers: bool,
pub predicates: &'a [(usize, usize, ParserPredicate)],
pub rule_args: &'a [ParserRuleArg],
pub member_actions: &'a [ParserMemberAction],
pub return_actions: &'a [ParserReturnAction],
}Expand description
Optional generated-runtime metadata for metadata-driven parser execution.
Fields§
§init_action_rules: &'a [usize]Rule indexes whose @init actions should be replayed.
track_alt_numbers: boolWhether generated parse-tree contexts should retain alternative numbers.
predicates: &'a [(usize, usize, ParserPredicate)]Semantic predicate table keyed by serialized (rule_index, pred_index).
rule_args: &'a [ParserRuleArg]Rule-call integer argument table keyed by ATN source state.
member_actions: &'a [ParserMemberAction]Integer member mutations keyed by ATN action source state.
return_actions: &'a [ParserReturnAction]Integer return assignments keyed by ATN action source state.
Trait Implementations§
Source§impl<'a> Clone for ParserRuntimeOptions<'a>
impl<'a> Clone for ParserRuntimeOptions<'a>
Source§fn clone(&self) -> ParserRuntimeOptions<'a>
fn clone(&self) -> ParserRuntimeOptions<'a>
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<'a> Debug for ParserRuntimeOptions<'a>
impl<'a> Debug for ParserRuntimeOptions<'a>
Source§impl<'a> Default for ParserRuntimeOptions<'a>
impl<'a> Default for ParserRuntimeOptions<'a>
Source§fn default() -> ParserRuntimeOptions<'a>
fn default() -> ParserRuntimeOptions<'a>
Returns the “default value” for a type. Read more
impl<'a> Copy for ParserRuntimeOptions<'a>
Auto Trait Implementations§
impl<'a> Freeze for ParserRuntimeOptions<'a>
impl<'a> RefUnwindSafe for ParserRuntimeOptions<'a>
impl<'a> Send for ParserRuntimeOptions<'a>
impl<'a> Sync for ParserRuntimeOptions<'a>
impl<'a> Unpin for ParserRuntimeOptions<'a>
impl<'a> UnsafeUnpin for ParserRuntimeOptions<'a>
impl<'a> UnwindSafe for ParserRuntimeOptions<'a>
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