Crate racer[][src]

Macros

try_continue
try_vec

Structs

BytePos

0-based byte offset in a file.

ByteRange

0-based byte range in a file.

Coordinate

Row 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

Edition
Location

The cursor position used by public search methods

MatchType

Within a Match, specifies what was matched

PrimKind
RustSrcPathError

Error type returned from validate_rust_src_path()

Traits

FileLoader

Used by the FileCache for loading files

ProjectModelProvider

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.

is_use_stmt

Finds if the statement where cursor lies is a use statement.

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.