Enum resast::decl::NamedExportDecl
source · [−]pub enum NamedExportDecl<'a> {
Decl(Decl<'a>),
Specifier(Vec<ExportSpecifier<'a>>, Option<Lit<'a>>),
}
Expand description
An export that has a name
export function thing() {}
export {stuff} from 'place';
Variants
Decl(Decl<'a>)
Specifier(Vec<ExportSpecifier<'a>>, Option<Lit<'a>>)
Trait Implementations
sourceimpl<'a> Clone for NamedExportDecl<'a>
impl<'a> Clone for NamedExportDecl<'a>
sourcefn clone(&self) -> NamedExportDecl<'a>
fn clone(&self) -> NamedExportDecl<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'a> Debug for NamedExportDecl<'a>
impl<'a> Debug for NamedExportDecl<'a>
sourceimpl<'a> From<NamedExportDecl<'a>> for NamedExportDecl<'a>
impl<'a> From<NamedExportDecl<'a>> for NamedExportDecl<'a>
sourcefn from(other: NamedExportDecl<'a>) -> Self
fn from(other: NamedExportDecl<'a>) -> Self
Converts to this type from the input type.
sourceimpl<'a> PartialEq<NamedExportDecl<'a>> for NamedExportDecl<'a>
impl<'a> PartialEq<NamedExportDecl<'a>> for NamedExportDecl<'a>
sourcefn eq(&self, other: &NamedExportDecl<'a>) -> bool
fn eq(&self, other: &NamedExportDecl<'a>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl<'a> StructuralPartialEq for NamedExportDecl<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for NamedExportDecl<'a>
impl<'a> Send for NamedExportDecl<'a>
impl<'a> Sync for NamedExportDecl<'a>
impl<'a> Unpin for NamedExportDecl<'a>
impl<'a> UnwindSafe for NamedExportDecl<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more