pub struct NixParser<'a> {
pub language: &'a NixLanguage,
}Expand description
Parser for the Nix language.
Fields§
§language: &'a NixLanguageThe language configuration for this parser.
Implementations§
Trait Implementations§
Source§impl<'config> Parser<NixLanguage> for NixParser<'config>
impl<'config> Parser<NixLanguage> for NixParser<'config>
Source§fn parse<'a, S: Source + ?Sized>(
&self,
text: &'a S,
edits: &[TextEdit],
cache: &'a mut impl ParseCache<NixLanguage>,
) -> ParseOutput<'a, NixLanguage>
fn parse<'a, S: Source + ?Sized>( &self, text: &'a S, edits: &[TextEdit], cache: &'a mut impl ParseCache<NixLanguage>, ) -> ParseOutput<'a, NixLanguage>
The core parsing entry point for converting tokens into a syntax tree. Read more
Auto Trait Implementations§
impl<'a> Freeze for NixParser<'a>
impl<'a> RefUnwindSafe for NixParser<'a>
impl<'a> Send for NixParser<'a>
impl<'a> Sync for NixParser<'a>
impl<'a> Unpin for NixParser<'a>
impl<'a> UnsafeUnpin for NixParser<'a>
impl<'a> UnwindSafe for NixParser<'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