pub struct AstParser;
Implementations§
Source§impl AstParser
impl AstParser
pub fn parse( rule: Rule, raw_script: &str, ) -> Result<ParseResult<'static>, ParseError>
pub fn parse_module(&self, raw_script: &str) -> Result<Module, ParseError>
pub fn parse_parameters( &self, pair: &Pair<'_, Rule>, ) -> Result<Vec<Parameter>, ParseError>
pub fn parse_compound_assign_op( op_pair: &Pair<'_, Rule>, ) -> Result<CompoundOperatorKind, ParseError>
Auto Trait Implementations§
impl Freeze for AstParser
impl RefUnwindSafe for AstParser
impl Send for AstParser
impl Sync for AstParser
impl Unpin for AstParser
impl UnwindSafe for AstParser
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