pub struct PythonParser<'config> { /* private fields */ }Expand description
Python parser.
Implementations§
Source§impl<'config> PythonParser<'config>
impl<'config> PythonParser<'config>
Sourcepub fn new(config: &'config PythonLanguage) -> Self
pub fn new(config: &'config PythonLanguage) -> Self
Create a new Python parser.
Trait Implementations§
Source§impl<'config> Parser<PythonLanguage> for PythonParser<'config>
impl<'config> Parser<PythonLanguage> for PythonParser<'config>
Source§fn parse<'a, S: Source + ?Sized>(
&self,
text: &'a S,
edits: &[TextEdit],
cache: &'a mut impl ParseCache<PythonLanguage>,
) -> ParseOutput<'a, PythonLanguage>
fn parse<'a, S: Source + ?Sized>( &self, text: &'a S, edits: &[TextEdit], cache: &'a mut impl ParseCache<PythonLanguage>, ) -> ParseOutput<'a, PythonLanguage>
The core parsing entry point. Read more
Auto Trait Implementations§
impl<'config> Freeze for PythonParser<'config>
impl<'config> RefUnwindSafe for PythonParser<'config>
impl<'config> Send for PythonParser<'config>
impl<'config> Sync for PythonParser<'config>
impl<'config> Unpin for PythonParser<'config>
impl<'config> UnsafeUnpin for PythonParser<'config>
impl<'config> UnwindSafe for PythonParser<'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