pub struct Parser<'a> { /* private fields */ }Implementations§
Source§impl<'a> Parser<'a>
impl<'a> Parser<'a>
pub fn new( source_map: Arc<SourceMap>, nodes: &'a mut AstNodeArena, strings: &'a mut StringInterner, ) -> Self
pub fn with_config(self, config: ParserConfig) -> Self
pub fn into_errors(self) -> ErrorReporter
pub fn parse(&mut self) -> ModuleMap
pub fn parse_file(&mut self) -> NodeId
Auto Trait Implementations§
impl<'a> !UnwindSafe for Parser<'a>
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> UnsafeUnpin 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