pub enum ExportOptions<'a> {
None,
Spread(SourceSpan),
Rename(ExternName<'a>),
}
Expand description
Represents an item being exported in the AST.
Variants§
None
No options for the export.
Spread(SourceSpan)
Spread export the exports of an instance.
Rename(ExternName<'a>)
Exporting with the provided name.
Trait Implementations§
Source§impl<'a> Clone for ExportOptions<'a>
impl<'a> Clone for ExportOptions<'a>
Source§fn clone(&self) -> ExportOptions<'a>
fn clone(&self) -> ExportOptions<'a>
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<'a> Debug for ExportOptions<'a>
impl<'a> Debug for ExportOptions<'a>
Auto Trait Implementations§
impl<'a> Freeze for ExportOptions<'a>
impl<'a> RefUnwindSafe for ExportOptions<'a>
impl<'a> Send for ExportOptions<'a>
impl<'a> Sync for ExportOptions<'a>
impl<'a> Unpin for ExportOptions<'a>
impl<'a> UnwindSafe for ExportOptions<'a>
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