pub struct ParserSemantics {
pub ir: SemIr,
pub predicates: Vec<ParserSemanticPredicate>,
pub actions: Vec<ParserSemanticAction>,
}Expand description
Data-driven semantic tables emitted by generated parsers.
This is the runtime representation for issue #9’s SemIR path. Existing
ParserPredicate, ParserMemberAction, and ParserReturnAction tables
remain accepted as deprecated adapters for generated code produced before
this table existed.
Fields§
§ir: SemIr§predicates: Vec<ParserSemanticPredicate>§actions: Vec<ParserSemanticAction>Trait Implementations§
Source§impl Clone for ParserSemantics
impl Clone for ParserSemantics
Source§fn clone(&self) -> ParserSemantics
fn clone(&self) -> ParserSemantics
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 ParserSemantics
impl Debug for ParserSemantics
Source§impl Default for ParserSemantics
impl Default for ParserSemantics
Source§fn default() -> ParserSemantics
fn default() -> ParserSemantics
Returns the “default value” for a type. Read more
impl Eq for ParserSemantics
Source§impl PartialEq for ParserSemantics
impl PartialEq for ParserSemantics
impl StructuralPartialEq for ParserSemantics
Auto Trait Implementations§
impl Freeze for ParserSemantics
impl RefUnwindSafe for ParserSemantics
impl Send for ParserSemantics
impl Sync for ParserSemantics
impl Unpin for ParserSemantics
impl UnsafeUnpin for ParserSemantics
impl UnwindSafe for ParserSemantics
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