pub struct AnalysisHost<L: AnalysisLoader = CargoAnalysisLoader> { /* private fields */ }

Implementations

Reloads given data passed in analysis. This will first check and read on-disk data (just like reload). It then imports the data we’re passing in directly.

Reloads the entire project’s analysis data.

Note that self.has_def() =/> self.goto_def().is_ok(), since if the Def is in an api crate, there is no reasonable Span to jump to.

Returns the name of each crate in the program and the id of the root module of that crate.

Like id, but will only return a value if it is in the same crate as span.

Finds Defs with names that starting with (ignoring case) stem

Search for a symbol name, returns a list of spans matching defs and refs for that name.

Search for a symbol name, returning a list of def_ids for that name.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.