pub struct ExportedDecl {
pub stmt: StmtId,
pub export_span: Span,
}Expand description
A top-level declaration marked export (Form 1: export function …,
export const …, etc.). The declaration itself stays a plain node in
top_level; this side record only tracks which ones are export-marked, so
the inference passes need no export awareness.
Fields§
§stmt: StmtId§export_span: SpanSpan of the export keyword — used for diagnostics and ExportEntry.
Trait Implementations§
Source§impl Clone for ExportedDecl
impl Clone for ExportedDecl
Auto Trait Implementations§
impl Freeze for ExportedDecl
impl RefUnwindSafe for ExportedDecl
impl Send for ExportedDecl
impl Sync for ExportedDecl
impl Unpin for ExportedDecl
impl UnsafeUnpin for ExportedDecl
impl UnwindSafe for ExportedDecl
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