Skip to main content

FileContentProvider

Trait FileContentProvider 

Source
pub trait FileContentProvider: Send + Sync {
    // Required method
    fn read_to_string(&self, path: &Path) -> Result<Arc<String>>;

    // Provided methods
    fn invalidate(&self, _path: &Path) { ... }
    fn clear(&self) { ... }
}
Expand description

Provides file contents for features that need full-text context.

Required Methods§

Source

fn read_to_string(&self, path: &Path) -> Result<Arc<String>>

Provided Methods§

Source

fn invalidate(&self, _path: &Path)

Source

fn clear(&self)

Implementors§