pub enum Export {
Var(Ident, Span),
Type(Ident, Option<Vec<Ident>>, Span),
Module(ModuleName, Span),
Pattern(Ident, Span),
}Expand description
An export specification.
Variants§
Var(Ident, Span)
Export a value: foo
Type(Ident, Option<Vec<Ident>>, Span)
Export a type with optional constructors: Foo(..) or Foo(A, B)
Module(ModuleName, Span)
Export a module: module Data.List
Pattern(Ident, Span)
Export a pattern synonym: pattern Foo
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