pub struct RhombusParser<'config> { /* private fields */ }Expand description
Parser for the Rhombus language.
Implementations§
Source§impl<'config> RhombusParser<'config>
impl<'config> RhombusParser<'config>
Sourcepub fn new(config: &'config RhombusLanguage) -> Self
pub fn new(config: &'config RhombusLanguage) -> Self
Creates a new RhombusParser with the given configuration.
Trait Implementations§
Source§impl<'config> Parser<RhombusLanguage> for RhombusParser<'config>
impl<'config> Parser<RhombusLanguage> for RhombusParser<'config>
Source§fn parse<'a, S: Source + ?Sized>(
&self,
text: &'a S,
edits: &[TextEdit],
cache: &'a mut impl ParseCache<RhombusLanguage>,
) -> ParseOutput<'a, RhombusLanguage>
fn parse<'a, S: Source + ?Sized>( &self, text: &'a S, edits: &[TextEdit], cache: &'a mut impl ParseCache<RhombusLanguage>, ) -> ParseOutput<'a, RhombusLanguage>
The core parsing entry point for converting tokens into a syntax tree. Read more
Auto Trait Implementations§
impl<'config> Freeze for RhombusParser<'config>
impl<'config> RefUnwindSafe for RhombusParser<'config>
impl<'config> Send for RhombusParser<'config>
impl<'config> Sync for RhombusParser<'config>
impl<'config> Unpin for RhombusParser<'config>
impl<'config> UnsafeUnpin for RhombusParser<'config>
impl<'config> UnwindSafe for RhombusParser<'config>
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