pub struct GeneratedAttrs(/* private fields */);Expand description
Typed rule-attribute storage attached to a ParserRuleContext.
Generated parsers keep each rule’s returns/locals/argument attributes
in a generated per-rule struct and seal a shared snapshot onto the finished
context, so a parent rule (or a listener) can read $child.attr /
ctx.attr with its real Rust type — the analog of ANTLR’s attribute
fields on generated context classes.
Implementations§
Trait Implementations§
Source§impl Clone for GeneratedAttrs
impl Clone for GeneratedAttrs
Source§fn clone(&self) -> GeneratedAttrs
fn clone(&self) -> GeneratedAttrs
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 GeneratedAttrs
impl Debug for GeneratedAttrs
impl Eq for GeneratedAttrs
Auto Trait Implementations§
impl !RefUnwindSafe for GeneratedAttrs
impl !Send for GeneratedAttrs
impl !Sync for GeneratedAttrs
impl !UnwindSafe for GeneratedAttrs
impl Freeze for GeneratedAttrs
impl Unpin for GeneratedAttrs
impl UnsafeUnpin for GeneratedAttrs
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