Trait racer::FileLoader[][src]

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

Load a single file

Implementations on Foreign Types

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

Provide a blanket impl for Arc since Rls uses that

Implementors