pub struct RustParser { /* private fields */ }Expand description
Parses Rust source files and extracts code structure information.
Implementations§
Source§impl RustParser
impl RustParser
Sourcepub fn include_private(self, include: bool) -> Self
pub fn include_private(self, include: bool) -> Self
Sets whether to include private items in the output.
Sourcepub fn parse_file<P: AsRef<Path>>(&self, path: P) -> ParseResult<CodeBase>
pub fn parse_file<P: AsRef<Path>>(&self, path: P) -> ParseResult<CodeBase>
Sourcepub fn parse_source(
&self,
source: &str,
file_path: String,
) -> ParseResult<CodeBase>
pub fn parse_source( &self, source: &str, file_path: String, ) -> ParseResult<CodeBase>
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