pub enum IdentifierMode {
JS,
JSX,
Flow,
}Expand description
The identifier-scanning mode, port of JSLexer::IdentifierMode. Affects
which extra characters are accepted as identifier parts: JSX accepts -,
Flow accepts @.
Variants§
JS
Standard JavaScript identifiers only.
JSX
JavaScript identifiers and ‘-’.
Flow
JavaScript identifiers and identifiers which begin with ‘@’.
Trait Implementations§
Source§impl Clone for IdentifierMode
impl Clone for IdentifierMode
Source§fn clone(&self) -> IdentifierMode
fn clone(&self) -> IdentifierMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for IdentifierMode
Source§impl Debug for IdentifierMode
impl Debug for IdentifierMode
impl Eq for IdentifierMode
Source§impl PartialEq for IdentifierMode
impl PartialEq for IdentifierMode
impl StructuralPartialEq for IdentifierMode
Auto Trait Implementations§
impl Freeze for IdentifierMode
impl RefUnwindSafe for IdentifierMode
impl Send for IdentifierMode
impl Sync for IdentifierMode
impl Unpin for IdentifierMode
impl UnsafeUnpin for IdentifierMode
impl UnwindSafe for IdentifierMode
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