pub struct RuleNode { /* private fields */ }Implementations§
Source§impl RuleNode
impl RuleNode
pub const fn new(context: ParserRuleContext) -> Self
pub const fn context(&self) -> &ParserRuleContext
pub const fn context_mut(&mut self) -> &mut ParserRuleContext
pub fn text(&self) -> String
pub fn to_string_tree(&self, rule_names: &[String]) -> String
Trait Implementations§
impl Eq for RuleNode
impl StructuralPartialEq for RuleNode
Auto Trait Implementations§
impl Freeze for RuleNode
impl RefUnwindSafe for RuleNode
impl Send for RuleNode
impl Sync for RuleNode
impl Unpin for RuleNode
impl UnsafeUnpin for RuleNode
impl UnwindSafe for RuleNode
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