pub struct ResolvedLookback {
pub concrete: UnorderedHashMap<TerminalIdentifierPtr, ResolvedConcreteItem>,
pub generic: UnorderedHashMap<TerminalIdentifierPtr, ResolvedGenericItem>,
}
Expand description
Lookback maps for item resolving. Can be used to quickly check what is the semantic resolution of any path segment.
Fields§
§concrete: UnorderedHashMap<TerminalIdentifierPtr, ResolvedConcreteItem>
§generic: UnorderedHashMap<TerminalIdentifierPtr, ResolvedGenericItem>
Implementations§
source§impl ResolvedLookback
impl ResolvedLookback
pub fn mark_concrete(
&mut self,
db: &dyn SemanticGroup,
segment: &PathSegment,
resolved_item: ResolvedConcreteItem
) -> ResolvedConcreteItem
pub fn mark_generic(
&mut self,
db: &dyn SemanticGroup,
segment: &PathSegment,
resolved_item: ResolvedGenericItem
) -> ResolvedGenericItem
Trait Implementations§
source§impl Clone for ResolvedLookback
impl Clone for ResolvedLookback
source§fn clone(&self) -> ResolvedLookback
fn clone(&self) -> ResolvedLookback
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ResolvedLookback
impl Debug for ResolvedLookback
source§impl<'a, T: ?Sized + Upcast<dyn SemanticGroup + 'static>> DebugWithDb<T> for ResolvedLookback
impl<'a, T: ?Sized + Upcast<dyn SemanticGroup + 'static>> DebugWithDb<T> for ResolvedLookback
source§impl Default for ResolvedLookback
impl Default for ResolvedLookback
source§fn default() -> ResolvedLookback
fn default() -> ResolvedLookback
Returns the “default value” for a type. Read more
source§impl PartialEq<ResolvedLookback> for ResolvedLookback
impl PartialEq<ResolvedLookback> for ResolvedLookback
source§fn eq(&self, other: &ResolvedLookback) -> bool
fn eq(&self, other: &ResolvedLookback) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ResolvedLookback
impl StructuralEq for ResolvedLookback
impl StructuralPartialEq for ResolvedLookback
Auto Trait Implementations§
impl RefUnwindSafe for ResolvedLookback
impl Send for ResolvedLookback
impl Sync for ResolvedLookback
impl Unpin for ResolvedLookback
impl UnwindSafe for ResolvedLookback
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.