[−][src]Function racer::complete_fully_qualified_name
pub fn complete_fully_qualified_name<'c, S, P>(
query: S,
path: P,
session: &'c Session
) -> MatchIter<'c> where
S: AsRef<str>,
P: AsRef<Path>,
Find completions for a fully qualified name like std::io::
Searchs are started relative to path
.
query
- is the fqn to search forpath
- the directory to start searching insession
- reference to a racer::Session
extern crate racer; let path = std::path::Path::new("."); let cache = racer::FileCache::default(); let session = racer::Session::new(&cache, Some(path)); let m = racer::complete_fully_qualified_name( "std::fs::canon", &path, &session ).next().unwrap(); assert_eq!(&m.matchstr[..], "canonicalize"); assert_eq!(m.mtype, racer::MatchType::Function);