#[non_exhaustive]pub struct Reexport {
pub path: String,
pub written: String,
pub item: Option<ItemId>,
pub file: RelPath,
pub line: usize,
pub doc_hidden: bool,
}Expand description
A public re-export of a target that names nothing the target itself defines as an item of the index: an item of another crate of the workspace, a crate outside the workspace or one of its items, an enum variant (variants are not items of the index), or a path the index cannot follow, such as an item a macro generates. A public glob carries such a re-export of a module it reaches into the module that reads it, under the reader’s path.
The struct is #[non_exhaustive]: adding a field is not a breaking change.
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 exported path from the crate root, starting with the target’s
crate path; <module>::* for a glob.
written: StringThe path the declaration names, as written (serde::Serialize,
serde::*, or the crate of an extern crate item).
item: Option<ItemId>The item it names, when the index sees one: an item of another crate
of the workspace, or that crate’s root. None for a crate outside the
workspace and for a path the index cannot follow.
file: RelPathThe file of the declaration.
line: usizeThe 1-based line of the declaration.
True when #[doc(hidden)] hides the re-export, on the declaration or
on a module of its path.
Trait Implementations§
impl Eq for Reexport
impl StructuralPartialEq for Reexport
Auto Trait Implementations§
impl Forget for Reexport
impl Freeze for Reexport
impl Move for Reexport
impl RefUnwindSafe for Reexport
impl Send for Reexport
impl Sync for Reexport
impl Unpin for Reexport
impl UnsafeUnpin for Reexport
impl UnwindSafe for Reexport
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