pub struct Resolver<'db> {
    pub module_file_id: ModuleFileId,
    pub lookback: ResolvedLookback,
    /* private fields */
}
Expand description

Resolves paths semantically.

Fields§

§module_file_id: ModuleFileId§lookback: ResolvedLookback

Implementations§

Resolves a concrete item, given a path. Guaranteed to result in at most one diagnostic.

Resolves a path segment’s identifier and generic args.

Resolves a generic item, given a path. Guaranteed to result in at most one diagnostic.

Given a concrete trait (with possible type variables in generic args), resolves it to its implementation.

Retrieve an impl lookup context for finding impls for a trait in the current context.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.