Struct racer::Session [] [src]

pub struct Session<'c> { /* fields omitted */ }

Context for a Racer operation

Methods

impl<'c> Session<'c>
[src]

Create a Session for use in Racer operations

  • cache is a reference to a FileCache. It's take by reference for use across racer operations.

Examples

extern crate racer;

let cache = racer::FileCache::default();
let session = racer::Session::new(&cache);

Specify the contents of a file to be used in completion operations

The path to the file and the file's contents must both be specified.

Examples

extern crate racer;

let cache = racer::FileCache::default();
let session = racer::Session::new(&cache);

session.cache_file_contents("foo.rs", "pub struct Foo;\\n");

Trait Implementations

impl<'c> Debug for Session<'c>
[src]

Formats the value using the given formatter.