Crate racer[][src]

Structs

Coordinate

Line and Column position in a file

FileCache

Caches file contents for re-use between sessions.

Match

Context, source, and etc. for detected completion or definition

PathSearch

Information about generic types in a match

Session

Context for a Racer operation

Enums

Location

The cursor position used by public search methods

MatchType

Within a Match, specifies what was matched

RustSrcPathError

Error type returned from validate_rust_src_path()

Traits

FileLoader

Used by the FileCache for loading files

Functions

complete_from_file

Search for completion at position in a file

complete_fully_qualified_name

Find completions for a fully qualified name like std::io::

expand_ident

Given a string and index, return span of identifier

find_definition

Find the definition for item at given a file, source, and cursor index

get_rust_src_path

Get the path for Rust standard library source code. Checks first the paths in the RUST_SRC_PATH environment variable.

snippet_for_match

Returns completion snippets usable by some editors

to_coords

Get the racer point of a line/character number pair for a file.

to_point

Get the racer point of a line/character number pair for a file.

Type Definitions

Point

A byte offset in a file.

SourceByteRange

A range of text between two positions.