pub struct CallScope<'a> {
pub imports: &'a [String],
pub roots: &'a BTreeSet<String>,
}Expand description
What the calling file can see, beyond the symbol index itself.
Both halves are built by the caller from the working tree it already walked,
so resolve_call stays a pure function of its inputs.
Fields§
§imports: &'a [String]The calling file’s resolved import targets, as resolve_import
returned them and the File node stores them.
roots: &'a BTreeSet<String>Every name a path call may lead with: package, directory and module
names the tree holds, each also under the -/_ spelling a package
path uses. A leading segment that is not in here and is not a symbol
names a dependency, and a call into a dependency resolves to nothing.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for CallScope<'a>
impl<'a> RefUnwindSafe for CallScope<'a>
impl<'a> Send for CallScope<'a>
impl<'a> Sync for CallScope<'a>
impl<'a> Unpin for CallScope<'a>
impl<'a> UnsafeUnpin for CallScope<'a>
impl<'a> UnwindSafe for CallScope<'a>
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