Struct ra_ap_base_db::FileSet [−][src]
pub struct FileSet { /* fields omitted */ }
Implementations
impl FileSet
[src]
impl FileSet
[src]pub fn resolve_path(&self, path: AnchoredPath<'_>) -> Option<FileId>
[src]
pub fn resolve_path(&self, path: AnchoredPath<'_>) -> Option<FileId>
[src]pub fn file_for_path(&self, path: &VfsPath) -> Option<&FileId>
[src]
pub fn file_for_path(&self, path: &VfsPath) -> Option<&FileId>
[src]Get the id corresponding to path
if it exists in the set.
pub fn path_for_file(&self, file: &FileId) -> Option<&VfsPath>
[src]
pub fn path_for_file(&self, file: &FileId) -> Option<&VfsPath>
[src]Get the path corresponding to file
if it exists in the set.
Trait Implementations
impl Eq for FileSet
[src]
impl StructuralEq for FileSet
[src]
impl StructuralPartialEq for FileSet
[src]
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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
pub fn equivalent(&self, key: &K) -> bool
[src]Compare self to key
and return true
if they are equal.
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more