pub struct ResolvedSemanticPath {
pub package: String,
pub crate_name: String,
pub module_path: Vec<String>,
pub item: String,
}Expand description
Normalized semantic identity obtained from an authoritative defining-item resolver.
Callers must populate this from rustc/object metadata reached through the defining relocation. Legacy token paths are diagnostic data and are never a valid source for this value.
Fields§
§package: StringDeclared Cargo package namespace.
crate_name: StringNormalized Rust crate name.
module_path: Vec<String>Rust-resolved module segments containing the item.
item: StringRust-resolved defining item name.
Implementations§
Trait Implementations§
Source§impl Clone for ResolvedSemanticPath
impl Clone for ResolvedSemanticPath
Source§impl Debug for ResolvedSemanticPath
impl Debug for ResolvedSemanticPath
impl Eq for ResolvedSemanticPath
Source§impl From<&LinkedSemanticIdentity> for ResolvedSemanticPath
impl From<&LinkedSemanticIdentity> for ResolvedSemanticPath
Source§fn from(identity: &LinkedSemanticIdentity) -> Self
fn from(identity: &LinkedSemanticIdentity) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ResolvedSemanticPath
impl PartialEq for ResolvedSemanticPath
impl StructuralPartialEq for ResolvedSemanticPath
Auto Trait Implementations§
impl Freeze for ResolvedSemanticPath
impl RefUnwindSafe for ResolvedSemanticPath
impl Send for ResolvedSemanticPath
impl Sync for ResolvedSemanticPath
impl Unpin for ResolvedSemanticPath
impl UnsafeUnpin for ResolvedSemanticPath
impl UnwindSafe for ResolvedSemanticPath
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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