pub struct Parser<'source> { /* private fields */ }Implementations§
Source§impl<'source> Parser<'source>
impl<'source> Parser<'source>
pub fn new(tokens: Vec<Token<'source>>, source: &'source str) -> Parser<'source>
pub fn lex_and_parse_file(source: &str, file_id: u32) -> ParseResult
pub fn lex_and_parse_imports(source: &str, file_id: u32) -> ParseResult
pub fn parse(self) -> ParseResult
Auto Trait Implementations§
impl<'source> Forget for Parser<'source>
impl<'source> Freeze for Parser<'source>where
*const u8 is !null: Freeze,
PhantomData<Token<'source>>: Freeze,
PhantomData<ParseError>: Freeze,
&'source str: Freeze,
impl<'source> Move for Parser<'source>
impl<'source> RefUnwindSafe for Parser<'source>
impl<'source> Send for Parser<'source>
impl<'source> Sync for Parser<'source>where
RawVecInner: Sync,
impl<'source> Unpin for Parser<'source>
impl<'source> UnsafeUnpin for Parser<'source>where
*const u8 is !null: UnsafeUnpin,
PhantomData<Token<'source>>: UnsafeUnpin,
PhantomData<ParseError>: UnsafeUnpin,
&'source str: UnsafeUnpin,
impl<'source> UnwindSafe for Parser<'source>
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