[][src]Trait racer::FileLoader

pub trait FileLoader {
    fn load_file(&self, path: &Path) -> Result<String>;
}

Used by the FileCache for loading files

Implement one of these and pass it to FileCache::new() to override Racer's file loading behavior.

Required methods

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

Load a single file

Loading content...

Implementations on Foreign Types

impl<T: FileLoader> FileLoader for Arc<T>[src]

Provide a blanket impl for Arc since Rls uses that

Loading content...

Implementors

Loading content...