[−][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]
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<'a> Files<'a> for FileWalker
[src]
type Name = Cow<'a, str>
The user-facing name of a file, to be displayed in diagnostics.
type Source = Cow<'a, str>
The source code of a file.
type FileId = usize
A unique identifier for files in the file provider. This will be used
for rendering diagnostic::Label
s in the corresponding source files. Read more
fn name(&'a self, id: Self::FileId) -> Option<Cow<'a, str>>
[src]
fn source(&'a self, id: Self::FileId) -> Option<Cow<'a, str>>
[src]
fn line_index(&self, id: Self::FileId, byte_index: usize) -> Option<usize>
[src]
fn line_range(
&self,
id: Self::FileId,
line_index: usize
) -> Option<Range<usize>>
[src]
&self,
id: Self::FileId,
line_index: usize
) -> Option<Range<usize>>
fn line_number(&'a self, id: Self::FileId, line_index: usize) -> Option<usize>
[src]
fn column_number(
&'a self,
id: Self::FileId,
line_index: usize,
byte_index: usize
) -> Option<usize>
[src]
&'a self,
id: Self::FileId,
line_index: usize,
byte_index: usize
) -> Option<usize>
fn location(&'a self, id: Self::FileId, byte_index: usize) -> Option<Location>
[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,
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>,