pub enum VariableDeclarationKeyword {
Const(Keyword<Const>),
Let(Keyword<Let>),
}
Variants§
Implementations§
source§impl VariableDeclarationKeyword
impl VariableDeclarationKeyword
pub fn is_token_variable_keyword(token: &TSXToken) -> bool
pub fn as_str(&self) -> &str
pub fn get_position(&self) -> &Span
Trait Implementations§
source§impl Clone for VariableDeclarationKeyword
impl Clone for VariableDeclarationKeyword
source§fn clone(&self) -> VariableDeclarationKeyword
fn clone(&self) -> VariableDeclarationKeyword
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 VariableDeclarationKeyword
impl Debug for VariableDeclarationKeyword
source§impl PartialEq for VariableDeclarationKeyword
impl PartialEq for VariableDeclarationKeyword
source§fn eq(&self, other: &VariableDeclarationKeyword) -> bool
fn eq(&self, other: &VariableDeclarationKeyword) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl SelfRustTokenize for VariableDeclarationKeyword
impl SelfRustTokenize for VariableDeclarationKeyword
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 Visitable for VariableDeclarationKeyword
impl Visitable for VariableDeclarationKeyword
fn visit<TData>( &self, visitors: &mut (impl VisitorReceiver<TData> + ?Sized), data: &mut TData, settings: &VisitSettings, chain: &mut Annex<'_, Chain> )
fn visit_mut<TData>( &mut self, visitors: &mut (impl VisitorMutReceiver<TData> + ?Sized), data: &mut TData, settings: &VisitSettings, chain: &mut Annex<'_, Chain> )
impl Eq for VariableDeclarationKeyword
impl StructuralEq for VariableDeclarationKeyword
impl StructuralPartialEq for VariableDeclarationKeyword
Auto Trait Implementations§
impl RefUnwindSafe for VariableDeclarationKeyword
impl Send for VariableDeclarationKeyword
impl Sync for VariableDeclarationKeyword
impl Unpin for VariableDeclarationKeyword
impl UnwindSafe for VariableDeclarationKeyword
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