[−][src]Struct racer::FileCache
Caches file contents for re-use between sessions.
The file cache is an opaque blob outside of racer which contains maps of loaded and masked files.
Methods
impl FileCache
[src]
pub fn new<L: FileLoader + 'static>(loader: L) -> FileCache
[src]
Create a new file cache
In order to load files into the cache, please see
Session::cache_file_contents()
pub fn remove_file<P: AsRef<Path>>(&self, path: &P) -> bool
[src]
Remove specific files from the cache
Returns true if a file was removed
Trait Implementations
Auto Trait Implementations
impl Unpin for FileCache
impl !Sync for FileCache
impl !Send for FileCache
impl !UnwindSafe for FileCache
impl !RefUnwindSafe for FileCache
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<E> SpecializationError for E
[src]
default fn not_found<S, T>(
trait_name: &'static str,
method_name: &'static str
) -> E where
T: ?Sized,
[src]
trait_name: &'static str,
method_name: &'static str
) -> E where
T: ?Sized,