pub struct RustParser { /* private fields */ }
Expand description
Rust parser
Implementations§
Source§impl RustParser
impl RustParser
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 Rust file
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RustParser
impl RefUnwindSafe for RustParser
impl Send for RustParser
impl Sync for RustParser
impl Unpin for RustParser
impl UnwindSafe for RustParser
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