pub struct Parser<'a> {
pub pool: NodePool<'a>,
pub targets: HashMap<&'a str, Rc<str>>,
pub macros: HashMap<&'a str, MacroDef<'a>>,
pub keywords: HashMap<&'a str, &'a str>,
pub footnotes: HashMap<&'a str, NodeID>,
pub source: &'a str,
/* private fields */
}
Expand description
Fields§
§pool: NodePool<'a>
The contents of the AST represented as Node
s.
targets: HashMap<&'a str, Rc<str>>
A map of target names to their unique uuids.
macros: HashMap<&'a str, MacroDef<'a>>
A map of macro names to their corresponding MacroDef
s
keywords: HashMap<&'a str, &'a str>
A map storing basic the key/val content of Keyword
s.
Allows for quick access to possible values while exporting/manipulating the AST.
footnotes: HashMap<&'a str, NodeID>
A map of footnote labels to FootnoteDef
s.
source: &'a str
The original source text
Useful for referencing the captured area of a Node
, since it stores spans.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Parser<'a>
impl<'a> RefUnwindSafe for Parser<'a>
impl<'a> !Send for Parser<'a>
impl<'a> !Sync for Parser<'a>
impl<'a> Unpin for Parser<'a>
impl<'a> UnwindSafe for Parser<'a>
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