pub struct FileSet { /* private fields */ }Implementations§
source§impl FileSet
impl FileSet
sourcepub fn resolve_path(&self, path: AnchoredPath<'_>) -> Option<FileId>
pub fn resolve_path(&self, path: AnchoredPath<'_>) -> Option<FileId>
sourcepub fn file_for_path(&self, path: &VfsPath) -> Option<&FileId>
pub fn file_for_path(&self, path: &VfsPath) -> Option<&FileId>
Get the id corresponding to path if it exists in the set.
sourcepub fn path_for_file(&self, file: &FileId) -> Option<&VfsPath>
pub fn path_for_file(&self, file: &FileId) -> Option<&VfsPath>
Get the path corresponding to file if it exists in the set.
Trait Implementations§
source§impl PartialEq for FileSet
impl PartialEq for FileSet
impl Eq for FileSet
impl StructuralEq for FileSet
impl StructuralPartialEq for FileSet
Auto Trait Implementations§
impl RefUnwindSafe for FileSet
impl Send for FileSet
impl Sync for FileSet
impl Unpin for FileSet
impl UnwindSafe for FileSet
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.