pub struct ExportInfo {
pub default_export: HashSet<String>,
pub optional_export: HashSet<String>,
pub export_tags: HashMap<String, Vec<String>>,
}Expand description
Information extracted from an Exporter-based module.
Fields§
§default_export: HashSet<String>Symbols exported via @EXPORT (default exports)
optional_export: HashSet<String>Symbols exported via @EXPORT_OK (optional exports)
Tag-based exports via %EXPORT_TAGS (tag name -> symbols)
Implementations§
Source§impl ExportInfo
impl ExportInfo
Sourcepub fn to_export_set(&self) -> ExportSet
pub fn to_export_set(&self) -> ExportSet
Convert extracted Exporter data into canonical semantic export facts.
Trait Implementations§
Source§impl Clone for ExportInfo
impl Clone for ExportInfo
Source§fn clone(&self) -> ExportInfo
fn clone(&self) -> ExportInfo
Returns a duplicate of the value. Read more
1.0.0 · 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 ExportInfo
impl Debug for ExportInfo
Source§impl Default for ExportInfo
impl Default for ExportInfo
Source§fn default() -> ExportInfo
fn default() -> ExportInfo
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ExportInfo
impl RefUnwindSafe for ExportInfo
impl Send for ExportInfo
impl Sync for ExportInfo
impl Unpin for ExportInfo
impl UnsafeUnpin for ExportInfo
impl UnwindSafe for ExportInfo
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