[][src]Struct rslint_cli::FileWalker

pub struct FileWalker {
    pub files: HashMap<usize, JsFile>,
}

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, JsFile>

Implementations

impl FileWalker[src]

pub fn empty() -> Self[src]

pub fn from_glob(paths: Paths) -> Self[src]

Make a new file walker from a compiled glob pattern. This also skips any unreadable files/dirs

pub fn line_start(&self, id: usize, line_index: usize) -> Option<usize>[src]

pub fn maybe_update_file_src(&mut self, path: PathBuf)[src]

try loading a file's source code and updating the correspoding file in the walker

Trait Implementations

impl Clone for FileWalker[src]

impl Debug for FileWalker[src]

impl Eq for FileWalker[src]

impl Files for FileWalker[src]

impl PartialEq<FileWalker> for FileWalker[src]

impl StructuralEq for FileWalker[src]

impl StructuralPartialEq for FileWalker[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DynClone for T where
    T: Clone
[src]

impl<T> Erasable for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.