Struct sphinx::source::ParseContext
source · [−]pub struct ParseContext<'f, 's> { /* private fields */ }
Expand description
High-level Parsing Interface
Contains the state required for parsing, and deals with the separate code paths taken for different SourceTypes
Implementations
sourceimpl<'f, 's> ParseContext<'f, 's>
impl<'f, 's> ParseContext<'f, 's>
pub fn new(
lexer_factory: &'f LexerBuilder,
interner: &'s mut StringInterner
) -> Self
pub fn parse_ast(
&mut self,
source: SourceText
) -> Result<Vec<StmtMeta>, Vec<ParserError>>
Auto Trait Implementations
impl<'f, 's> !RefUnwindSafe for ParseContext<'f, 's>
impl<'f, 's> !Send for ParseContext<'f, 's>
impl<'f, 's> !Sync for ParseContext<'f, 's>
impl<'f, 's> Unpin for ParseContext<'f, 's>
impl<'f, 's> !UnwindSafe for ParseContext<'f, 's>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more