Struct racer::Session[][src]

pub struct Session<'c> {
    pub generic_impls: RefCell<HashMap<(PathBuf, usize), Rc<Vec<(usize, String, GenericsVisitor, ImplVisitor)>>>>,
    // some fields omitted
}

Context for a Racer operation

Fields

Cache for generic impls

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. Read more

Auto Trait Implementations

impl<'c> !Send for Session<'c>

impl<'c> !Sync for Session<'c>