pub struct DirectoryWalker { /* private fields */ }Expand description
Walks a directory tree and discovers Rust source files.
Implementations§
Source§impl DirectoryWalker
impl DirectoryWalker
Sourcepub fn new(config: WalkerConfig) -> Self
pub fn new(config: WalkerConfig) -> Self
Creates a new DirectoryWalker with the given configuration.
Sourcepub fn with_defaults() -> Self
pub fn with_defaults() -> Self
Creates a new DirectoryWalker with default configuration.
Sourcepub fn discover_rust_files<P: AsRef<Path>>(
&self,
root: P,
) -> ParseResult<Vec<PathBuf>>
pub fn discover_rust_files<P: AsRef<Path>>( &self, root: P, ) -> ParseResult<Vec<PathBuf>>
Sourcepub fn config(&self) -> &WalkerConfig
pub fn config(&self) -> &WalkerConfig
Returns a reference to the walker configuration.
Auto Trait Implementations§
impl Freeze for DirectoryWalker
impl RefUnwindSafe for DirectoryWalker
impl Send for DirectoryWalker
impl Sync for DirectoryWalker
impl Unpin for DirectoryWalker
impl UnwindSafe for DirectoryWalker
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