pub struct ImportExportPart<T: ImportOrExport> {
pub just_type: bool,
pub name: VariableIdentifier,
pub alias: Option<ImportExportName>,
pub position: Span,
pub _marker: PhantomData<T>,
}
Expand description
Fields§
§just_type: bool
§name: VariableIdentifier
§alias: Option<ImportExportName>
§position: Span
§_marker: PhantomData<T>
Trait Implementations§
Source§impl<U: ImportOrExport> ASTNode for ImportExportPart<U>
impl<U: ImportOrExport> ASTNode for ImportExportPart<U>
Source§fn get_position(&self) -> Span
fn get_position(&self) -> Span
Returns position of node as span AS IT WAS PARSED. May be
Span::NULL
if AST was doesn’t match anything in sourcefn from_reader( reader: &mut impl TokenReader<TSXToken, TokenStart>, state: &mut ParsingState, options: &ParseOptions, ) -> ParseResult<Self>
fn to_string_from_buffer<T: ToString>( &self, buf: &mut T, options: &ToStringOptions, local: LocalToStringInformation, )
Source§fn from_string(script: String, options: ParseOptions) -> ParseResult<Self>
fn from_string(script: String, options: ParseOptions) -> ParseResult<Self>
From string, with default impl to call abstract method
from_reader
fn from_string_with_options( script: String, options: ParseOptions, offset: Option<u32>, ) -> ParseResult<(Self, ParsingState)>
Source§fn to_string(&self, options: &ToStringOptions) -> String
fn to_string(&self, options: &ToStringOptions) -> String
Returns structure as valid string
Source§impl<T: Clone + ImportOrExport> Clone for ImportExportPart<T>
impl<T: Clone + ImportOrExport> Clone for ImportExportPart<T>
Source§fn clone(&self) -> ImportExportPart<T>
fn clone(&self) -> ImportExportPart<T>
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<T: Debug + ImportOrExport> Debug for ImportExportPart<T>
impl<T: Debug + ImportOrExport> Debug for ImportExportPart<T>
Source§impl<T: ImportOrExport> GetFieldByType<BaseSpan<()>> for ImportExportPart<T>
impl<T: ImportOrExport> GetFieldByType<BaseSpan<()>> for ImportExportPart<T>
Source§impl<T: ImportOrExport> ListItem for ImportExportPart<T>
impl<T: ImportOrExport> ListItem for ImportExportPart<T>
type LAST = ()
const LAST_PREFIX: Option<TSXToken> = None
const EMPTY: Option<Self> = None
fn parse_last_item( reader: &mut impl TokenReader<TSXToken, TokenStart>, state: &mut ParsingState, options: &ParseOptions, ) -> ParseResult<Self::LAST>
Source§impl<T: PartialEq + ImportOrExport> PartialEq for ImportExportPart<T>
impl<T: PartialEq + ImportOrExport> PartialEq for ImportExportPart<T>
Source§impl<U: ImportOrExport> SelfRustTokenize for ImportExportPart<U>
impl<U: ImportOrExport> SelfRustTokenize for ImportExportPart<U>
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<T: ImportOrExport> Serialize for ImportExportPart<T>
impl<T: ImportOrExport> Serialize for ImportExportPart<T>
Source§impl<T: ImportOrExport> Visitable for ImportExportPart<T>
impl<T: ImportOrExport> Visitable for ImportExportPart<T>
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<T: ImportOrExport> StructuralPartialEq for ImportExportPart<T>
Auto Trait Implementations§
impl<T> Freeze for ImportExportPart<T>
impl<T> RefUnwindSafe for ImportExportPart<T>where
T: RefUnwindSafe,
impl<T> Send for ImportExportPart<T>
impl<T> Sync for ImportExportPart<T>
impl<T> Unpin for ImportExportPart<T>where
T: Unpin,
impl<T> UnwindSafe for ImportExportPart<T>where
T: UnwindSafe,
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