pub struct LocalDefMap { /* private fields */ }
Expand description
Parts of the def map that are only needed when analyzing code in the same crate.
There are some data in the def map (e.g. extern prelude) that is only needed when analyzing
things in the same crate (and maybe in the IDE layer), e.g. the extern prelude. If we put
it in the DefMap dependant DefMaps will be invalidated when they change (e.g. when we add
a dependency to the crate). Instead we split them out of the DefMap into a LocalDefMap struct.
crate_local_def_map()
returns both, and crate_def_map()
returns only the external-relevant
DefMap.
Trait Implementations§
Source§impl Debug for LocalDefMap
impl Debug for LocalDefMap
Source§impl Default for LocalDefMap
impl Default for LocalDefMap
Source§fn default() -> LocalDefMap
fn default() -> LocalDefMap
Returns the “default value” for a type. Read more
Source§impl PartialEq for LocalDefMap
impl PartialEq for LocalDefMap
impl Eq for LocalDefMap
impl StructuralPartialEq for LocalDefMap
Auto Trait Implementations§
impl Freeze for LocalDefMap
impl !RefUnwindSafe for LocalDefMap
impl Send for LocalDefMap
impl Sync for LocalDefMap
impl Unpin for LocalDefMap
impl !UnwindSafe for LocalDefMap
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§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