pub struct Expander<'a> { /* private fields */ }
Implementations§
Source§impl<'a> Expander<'a>
impl<'a> Expander<'a>
pub fn new(parser: Parser) -> Self
Sourcepub fn get_source(&self) -> &str
pub fn get_source(&self) -> &str
Get underlying source-code of the active parser for current unit.
pub fn expand_node( &'a self, node: ParseNode<'a>, ) -> Result<ParseTree<'a>, ExpansionError<'a>>
pub fn expand_nodes( &'a self, tree: Box<[ParseNode<'a>]>, ) -> Result<ParseTree<'a>, ExpansionError<'a>>
pub fn expand(&'a self) -> Result<ParseTree<'a>, Box<dyn Error + 'a>>
Trait Implementations§
Auto Trait Implementations§
impl<'a> !Freeze for Expander<'a>
impl<'a> !RefUnwindSafe for Expander<'a>
impl<'a> !Send for Expander<'a>
impl<'a> !Sync for Expander<'a>
impl<'a> Unpin for Expander<'a>
impl<'a> UnwindSafe for Expander<'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