pub enum Exportable {
Class(ClassDeclaration<StatementPosition>),
Function(StatementFunction),
Variable(VariableDeclaration),
Interface(InterfaceDeclaration),
TypeAlias(TypeAlias),
EnumDeclaration(EnumDeclaration),
Parts(Vec<ImportExportPart<ExportDeclaration>>),
ImportAll {
as: Option<VariableIdentifier>,
from: ImportLocation,
},
ImportParts {
parts: Vec<ImportExportPart<ImportDeclaration>>,
from: ImportLocation,
type_definitions_only: bool,
},
}
Variants§
Class(ClassDeclaration<StatementPosition>)
Function(StatementFunction)
Variable(VariableDeclaration)
Interface(InterfaceDeclaration)
TypeAlias(TypeAlias)
EnumDeclaration(EnumDeclaration)
Parts(Vec<ImportExportPart<ExportDeclaration>>)
ImportAll
ImportParts
Trait Implementations§
Source§impl Clone for Exportable
impl Clone for Exportable
Source§fn clone(&self) -> Exportable
fn clone(&self) -> Exportable
Returns a copy 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 Exportable
impl Debug for Exportable
Source§impl PartialEq for Exportable
impl PartialEq for Exportable
Source§impl SelfRustTokenize for Exportable
impl SelfRustTokenize for Exportable
fn append_to_token_stream(&self, token_stream: &mut TokenStream)
Source§fn to_tokens(&self) -> TokenStream
fn to_tokens(&self) -> TokenStream
Returns the tokens used to construct self
Source§impl Serialize for Exportable
impl Serialize for Exportable
Source§impl Visitable for Exportable
impl Visitable for Exportable
fn visit<TData>( &self, visitors: &mut (impl VisitorReceiver<TData> + ?Sized), data: &mut TData, options: &VisitOptions, chain: &mut Annex<'_, Chain>, )
fn visit_mut<TData>( &mut self, visitors: &mut (impl VisitorMutReceiver<TData> + ?Sized), data: &mut TData, options: &VisitOptions, chain: &mut Annex<'_, Chain>, )
impl StructuralPartialEq for Exportable
Auto Trait Implementations§
impl Freeze for Exportable
impl RefUnwindSafe for Exportable
impl Send for Exportable
impl Sync for Exportable
impl Unpin for Exportable
impl UnwindSafe for Exportable
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