pub struct RuleInfo {
pub name: String,
pub name_span: (usize, usize),
pub full_span: (usize, usize),
pub rhs_text: String,
pub references: Vec<ReferenceInfo>,
}Expand description
Information about a single production rule.
Fields§
§name: StringThe rule name (LHS nonterminal).
name_span: (usize, usize)Byte offset range of the LHS name.
full_span: (usize, usize)Byte offset range of the entire rule (LHS = RHS ;).
rhs_text: StringPretty-printed RHS for hover display.
references: Vec<ReferenceInfo>All nonterminal references in the RHS.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RuleInfo
impl RefUnwindSafe for RuleInfo
impl Send for RuleInfo
impl Sync for RuleInfo
impl Unpin for RuleInfo
impl UnsafeUnpin for RuleInfo
impl UnwindSafe for RuleInfo
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