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,
}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.
Trait Implementations§
Source§impl Clone for ReExportInfo
impl Clone for ReExportInfo
Auto Trait Implementations§
impl Freeze 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
Mutably borrows from an owned value. Read more