Trait racer::FileLoader[][src]

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

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

Load a single file

Implementations on Foreign Types

Provide a blanket impl for Arc since Rls uses that

Implementors