Struct ra_ap_base_db::FileSet
source · [−]pub struct FileSet { /* private fields */ }Implementations
sourceimpl 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
sourceimpl PartialEq<FileSet> for FileSet
impl PartialEq<FileSet> 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key and return true if they are equal.