Struct rslint_cli::FileWalker [−][src]
Expand description
The structure for managing IO to and from the core runner. The walker uses multithreaded IO, spawning a thread for every file being loaded.
Fields
files: HashMap<usize, File>
Implementations
Make a new file walker from a compiled glob pattern. This also skips any unreadable files/dirs
pub fn load_files_parallel(
&mut self,
paths: impl Iterator<Item = PathBuf>,
num_threads: usize,
no_ignore: bool,
ignore_file: Option<PathBuf>,
use_gitignore: bool
)
try loading a file’s source code and updating the correspoding file in the walker
Trait Implementations
Returns the “default value” for a type. Read more
Returns the source of the file identified by the id.
The index of the line at the byte index. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for FileWalker
impl Send for FileWalker
impl Sync for FileWalker
impl Unpin for FileWalker
impl UnwindSafe for FileWalker
Blanket Implementations
Mutably borrows from an owned value. Read more
Whether this implementor has acknowledged the 1.1.0 update to
unerase
’s documented implementation requirements. Read more