[−][src]Struct rslint_cli::FileWalker
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]
fn clone(&self) -> FileWalker
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for FileWalker
[src]
impl Eq for FileWalker
[src]
impl Files for FileWalker
[src]
fn name(&self, id: FileId) -> Option<&str>
[src]
fn source(&self, id: FileId) -> Option<&str>
[src]
fn line_index(&self, id: FileId, byte_index: usize) -> Option<usize>
[src]
fn line_range(&self, file_id: FileId, line_index: usize) -> Option<Range<usize>>
[src]
impl PartialEq<FileWalker> for FileWalker
[src]
fn eq(&self, other: &FileWalker) -> bool
[src]
fn ne(&self, other: &FileWalker) -> bool
[src]
impl StructuralEq for FileWalker
[src]
impl StructuralPartialEq for FileWalker
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DynClone for T where
T: Clone,
[src]
T: Clone,
fn __clone_box(&self, Private) -> *mut ()
[src]
impl<T> Erasable for T
unsafe fn unerase(this: NonNull<Erased>) -> NonNull<T>
const ACK_1_1_0: bool
fn erase(this: NonNull<Self>) -> NonNull<Erased>
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,