pub struct RustParser;Expand description
Rust language parser.
Implementations§
Source§impl RustParser
impl RustParser
Trait Implementations§
Source§impl Default for RustParser
impl Default for RustParser
Source§impl LanguageParser for RustParser
impl LanguageParser for RustParser
Source§fn extract_units(
&self,
tree: &Tree,
source: &str,
file_path: &Path,
) -> AcbResult<Vec<RawCodeUnit>>
fn extract_units( &self, tree: &Tree, source: &str, file_path: &Path, ) -> AcbResult<Vec<RawCodeUnit>>
Extract code units from a parsed tree.
Auto Trait Implementations§
impl Freeze for RustParser
impl RefUnwindSafe for RustParser
impl Send for RustParser
impl Sync for RustParser
impl Unpin for RustParser
impl UnsafeUnpin 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