struct Slots {
values: BTreeMap<Arc<[String]>, BTreeMap<String, Vec<usize>>>,
modules: BTreeMap<Arc<[String]>, BTreeMap<String, Vec<usize>>>,
toolchain: BTreeMap<*const SourceRustUse, String>,
associated: BTreeMap<(Arc<[String]>, String, String), Vec<usize>>,
}Expand description
Preindexed source slots avoid a whole-file scan for every call.
Fields§
§values: BTreeMap<Arc<[String]>, BTreeMap<String, Vec<usize>>>Value declaration ordinals by actual inline owner and name.
modules: BTreeMap<Arc<[String]>, BTreeMap<String, Vec<usize>>>Module ordinals by actual inline owner and name.
toolchain: BTreeMap<*const SourceRustUse, String>Shadow-checked toolchain identity indexed by the shared use occurrence.
associated: BTreeMap<(Arc<[String]>, String, String), Vec<usize>>Inherent method ordinals grouped by actual module, type and method name.
Trait Implementations§
Auto Trait Implementations§
impl !Send for Slots
impl !Sync for Slots
impl Freeze for Slots
impl RefUnwindSafe for Slots
impl Unpin for Slots
impl UnsafeUnpin for Slots
impl UnwindSafe for Slots
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
§impl<'a, T> FromIn<'a, T> for T
impl<'a, T> FromIn<'a, T> for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more