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
Source§fn clone(&self) -> ReExportInfo
fn clone(&self) -> ReExportInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReExportInfo
impl Debug for ReExportInfo
Source§impl From<CachedReExportInfo> for ReExportInfo
impl From<CachedReExportInfo> for ReExportInfo
Source§fn from(info: CachedReExportInfo) -> ReExportInfo
fn from(info: CachedReExportInfo) -> ReExportInfo
Converts to this type from the input type.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
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