pub struct Terminal {
pub id: usize,
pub name: String,
pub value: String,
pub input_ref: InputReference,
pub nfa: NFA,
pub context: usize,
pub is_anonymous: bool,
pub is_fragment: bool,
pub terminal_references: Vec<TerminalReference>,
}Expand description
Represents a terminal symbol in a grammar
Fields§
§id: usizeThe unique indentifier (within a grammar) of this symbol
name: StringThe name of this symbol
value: StringThe inline value of this terminal
input_ref: InputReferenceThe input reference for the definition
nfa: NFAThe NFA that is used to match this terminal
context: usizeThe context of this terminal
is_anonymous: boolWhether the terminal is anonymous
is_fragment: boolWhether the terminal is a fragment
terminal_references: Vec<TerminalReference>The references to this terminal by others
Implementations§
Trait Implementations§
Source§impl Ord for Terminal
impl Ord for Terminal
Source§impl PartialOrd for Terminal
impl PartialOrd for Terminal
impl Eq for Terminal
Auto Trait Implementations§
impl Freeze for Terminal
impl RefUnwindSafe for Terminal
impl Send for Terminal
impl Sync for Terminal
impl Unpin for Terminal
impl UnwindSafe for Terminal
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