pub struct ReExportInfo {
pub source: String,
pub imported_name: String,
pub exported_name: String,
pub is_type_only: bool,
pub span: Span,
pub statement_span: Span,
pub source_span: Span,
pub visibility: VisibilityTag,
pub expected_unused_reason: Option<String>,
}Expand description
A re-export declaration.
Fields§
§source: StringThe module being re-exported from.
imported_name: StringThe name imported from the source module (or * for star re-exports).
exported_name: StringThe name exported from this module.
is_type_only: boolWhether this is a type-only re-export.
span: SpanSource span of the re-export declaration on this module.
statement_span: SpanSpan of the whole re-export statement. A multi-binding statement
yields one ReExportInfo per binding, each with a per-binding
span; this field lets consumers reason about the enclosing
statement (e.g. suppression coverage). Empty (start == end) for
synthesized re-exports that have no single owning statement.
source_span: SpanSpan of the source string literal (the specifier in quotes), used to
anchor unresolved-import findings on the specifier. Empty
(start == end) when no literal exists in the statement.
visibility: VisibilityTagVisibility tag from the JSDoc block on the re-export statement, such
as /** @public */ export { a } from './a'.
expected_unused_reason: Option<String>Reason text after -- in an @expected-unused tag on the re-export
statement, such as @expected-unused -- kept for the next major.
Trait Implementations§
Source§impl Clone for ReExportInfo
impl Clone for ReExportInfo
Source§fn clone(&self) -> ReExportInfo
fn clone(&self) -> ReExportInfo
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ReExportInfo
impl Debug for ReExportInfo
Source§impl Default for ReExportInfo
impl Default for ReExportInfo
Source§fn default() -> ReExportInfo
fn default() -> ReExportInfo
Source§impl From<&ReExportInfo> for CachedReExportInfo
impl From<&ReExportInfo> for CachedReExportInfo
Source§fn from(info: &ReExportInfo) -> CachedReExportInfo
fn from(info: &ReExportInfo) -> CachedReExportInfo
Source§impl From<CachedReExportInfo> for ReExportInfo
impl From<CachedReExportInfo> for ReExportInfo
Source§fn from(info: CachedReExportInfo) -> ReExportInfo
fn from(info: CachedReExportInfo) -> ReExportInfo
Auto Trait Implementations§
impl Forget for ReExportInfo
impl Freeze for ReExportInfo
impl Move for ReExportInfo
impl RefUnwindSafe for ReExportInfo
impl Send for ReExportInfo
impl Sync for ReExportInfo
impl Unpin for ReExportInfo
impl UnsafeUnpin for ReExportInfo
impl UnwindSafe for ReExportInfo
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
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> ⓘ
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