#[non_exhaustive]pub struct ExportedItem {
pub path: String,
pub item: ItemId,
pub kind: SymbolKind,
pub file: RelPath,
pub span: SpanFact,
pub doc_hidden: bool,
}Expand description
One item of a target’s public surface, under one path that another crate can name it by.
The struct is #[non_exhaustive]: adding a field is not a breaking change,
so a pattern names the fields it reads and ends in ...
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.path: StringThe path from the crate root, starting with the target’s crate path:
the exported name, which differs from the defining item’s own path for
a re-export (demo::run for pub use inner::go as run;).
item: ItemIdThe defining item, so a re-export maps back to it.
kind: SymbolKindWhat the defining item is.
file: RelPathThe file that defines the item.
span: SpanFactThe whole defining item, attributes included.
True when #[doc(hidden)] hides the path: on the item, on a module of
the path (on its declaration or as #![doc(hidden)] in its file), on
the use declaration that exports it, or on the type or trait whose
member it is.
Trait Implementations§
Source§impl Clone for ExportedItem
impl Clone for ExportedItem
Source§impl Debug for ExportedItem
impl Debug for ExportedItem
impl Eq for ExportedItem
Source§impl PartialEq for ExportedItem
impl PartialEq for ExportedItem
impl StructuralPartialEq for ExportedItem
Auto Trait Implementations§
impl Forget for ExportedItem
impl Freeze for ExportedItem
impl Move for ExportedItem
impl RefUnwindSafe for ExportedItem
impl Send for ExportedItem
impl Sync for ExportedItem
impl Unpin for ExportedItem
impl UnsafeUnpin for ExportedItem
impl UnwindSafe for ExportedItem
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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
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
key and return true if they are equal.impl<T> EvidenceLease for T
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> ⓘ
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> ⓘ
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