#[non_exhaustive]pub struct ExportDeclaration {
pub package: String,
pub kind: ExportDeclarationKind,
pub tag_name: Option<String>,
pub symbols: Vec<String>,
pub range: SourceLocation,
pub declaration_item: Option<HirId>,
pub provenance: StashProvenance,
pub confidence: StashConfidence,
}Expand description
Static Exporter-style declaration observed in a package stash.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.package: StringPackage declaring the export list.
kind: ExportDeclarationKindExport declaration category.
tag_name: Option<String>Tag name for %EXPORT_TAGS entries.
symbols: Vec<String>Static exported symbols.
range: SourceLocationSource range for the declaration.
declaration_item: Option<HirId>HIR item that produced this declaration, when available.
provenance: StashProvenanceHow this export declaration was produced.
confidence: StashConfidenceConfidence in this export declaration.
Trait Implementations§
Source§impl Clone for ExportDeclaration
impl Clone for ExportDeclaration
Source§fn clone(&self) -> ExportDeclaration
fn clone(&self) -> ExportDeclaration
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 ExportDeclaration
impl Debug for ExportDeclaration
Source§impl PartialEq for ExportDeclaration
impl PartialEq for ExportDeclaration
Source§fn eq(&self, other: &ExportDeclaration) -> bool
fn eq(&self, other: &ExportDeclaration) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ExportDeclaration
impl StructuralPartialEq for ExportDeclaration
Auto Trait Implementations§
impl Freeze for ExportDeclaration
impl RefUnwindSafe for ExportDeclaration
impl Send for ExportDeclaration
impl Sync for ExportDeclaration
impl Unpin for ExportDeclaration
impl UnsafeUnpin for ExportDeclaration
impl UnwindSafe for ExportDeclaration
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