pub struct PythonParser { /* private fields */ }
Expand description
Python parser
Implementations§
Source§impl PythonParser
impl PythonParser
Sourcepub fn detect_language(path: &Path) -> Language
pub fn detect_language(path: &Path) -> Language
Get the language for a file based on its extension
Sourcepub fn parse(&mut self, context: &ParseContext) -> Result<ParseResult>
pub fn parse(&mut self, context: &ParseContext) -> Result<ParseResult>
Parse a Python file
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PythonParser
impl RefUnwindSafe for PythonParser
impl Send for PythonParser
impl Sync for PythonParser
impl Unpin for PythonParser
impl UnwindSafe for PythonParser
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