pub enum Export {
Function(Arc<FunctionDef>),
TypeAlias(Arc<TypeAliasDef>),
Annotation(Arc<AnnotationDef>),
Value(KindedSlot),
}Expand description
An exported item from a module
Per ADR-006 §2.7.1.2, Export::Value is a GENERIC_CARRIER single-
value site: the kind of an exported value is not statically known
at the module-loader layer (different exports from the same module
can carry different NativeKinds), so the carrier is KindedSlot.
Variants§
Function(Arc<FunctionDef>)
TypeAlias(Arc<TypeAliasDef>)
Annotation(Arc<AnnotationDef>)
Value(KindedSlot)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Export
impl RefUnwindSafe for Export
impl Send for Export
impl Sync for Export
impl Unpin for Export
impl UnsafeUnpin for Export
impl UnwindSafe for Export
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