pub struct Resolved {
pub modules: Vec<ModuleInfo>,
pub defs: Vec<Def>,
pub locals: Vec<Local>,
pub res: BTreeMap<(FileId, NodeId), Res>,
pub local_decls: BTreeMap<Span, LocalId>,
pub members: BTreeMap<DefId, BTreeMap<String, DefId>>,
pub impls: BTreeMap<(ModuleId, usize, usize), DefId>,
pub diagnostics: Vec<Diagnostic>,
}Expand description
The result of name resolution.
Fields§
§modules: Vec<ModuleInfo>All modules, std included.
defs: Vec<Def>All declarations.
locals: Vec<Local>All locals.
res: BTreeMap<(FileId, NodeId), Res>What each resolved node names: Name and Field expressions, types, patterns, struct
literals and the shorthand fields of struct literals and patterns.
local_decls: BTreeMap<Span, LocalId>The local declared at each name span (let, var, parameters, loop variables, closure
parameters, pattern bindings).
members: BTreeMap<DefId, BTreeMap<String, DefId>>Members (variants and inherent functions) of each type.
impls: BTreeMap<(ModuleId, usize, usize), DefId>The type of each impl block, inherent or for an interface, keyed by module, section
index and item index. Blocks whose type did not resolve are missing.
diagnostics: Vec<Diagnostic>Diagnostics of chapter 6.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Resolved
impl RefUnwindSafe for Resolved
impl Send for Resolved
impl Sync for Resolved
impl Unpin for Resolved
impl UnsafeUnpin for Resolved
impl UnwindSafe for Resolved
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more