pub(crate) struct PathInfo {
pub(crate) parts: Vec<Symbol>,
pub(crate) ty: ItemType,
pub(crate) alternatives: Vec<Vec<Symbol>>,
}Fields§
§parts: Vec<Symbol>Parts of the fully qualified path. So in foo::bar::bib, it will
be ["foo", "bar", "bib"].
ty: ItemType§alternatives: Vec<Vec<Symbol>>When a reexport inline an item, we can end up with the same DefId with multiple local
targets. So in case like:
/// Link to [`a2`].
pub use std::ffi::os_str::OsString as a1;
/// Link to [`a1`].
pub use std::ffi::os_str::OsString as a2;
/// Link to [`a2`].
pub use std::ffi::os_str::OsString as a3;To ensure that a1 and a2 links to a1 and a2 which have the same DefId, we need
to store both a1 and a2 paths.
The path stored in parts is not present in alternatives.
Implementations§
Auto Trait Implementations§
impl DynSend for PathInfo
impl DynSync for PathInfo
impl Freeze for PathInfo
impl RefUnwindSafe for PathInfo
impl Send for PathInfo
impl Sync for PathInfo
impl Unpin for PathInfo
impl UnsafeUnpin for PathInfo
impl UnwindSafe for PathInfo
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 56 bytes