pub enum JavaScript {
Identifier,
Literal,
Glyph,
GlyphCtx,
Keyword,
KeywordCtx,
Special,
Comment,
None,
}Variants§
Trait Implementations§
Source§impl Clone for JavaScript
impl Clone for JavaScript
Source§fn clone(&self) -> JavaScript
fn clone(&self) -> JavaScript
Returns a duplicate 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 JavaScript
impl Debug for JavaScript
Source§impl Highlight for JavaScript
impl Highlight for JavaScript
Source§impl<'s> Logos<'s> for JavaScript
impl<'s> Logos<'s> for JavaScript
Source§type Error = ()
type Error = ()
Error type returned by the lexer. This can be set using
#[logos(error = MyError)]. Defaults to () if not set.Source§type Extras = ()
type Extras = ()
Associated type
Extras for the particular lexer. This can be set using
#[logos(extras = MyExtras)] and accessed inside callbacks.Source§type Source = str
type Source = str
Source type this token can be lexed from. This will default to
str,
unless one of the defined patterns explicitly uses non-unicode byte values
or byte slices, in which case that implementation will use [u8].Source§fn lex(lex: &mut Lexer<'s, Self>)
fn lex(lex: &mut Lexer<'s, Self>)
The heart of Logos. Called by the
Lexer. The implementation for this function
is generated by the logos-derive crate.Source§impl PartialEq for JavaScript
impl PartialEq for JavaScript
impl Copy for JavaScript
impl Eq for JavaScript
impl StructuralPartialEq for JavaScript
Auto Trait Implementations§
impl Freeze for JavaScript
impl RefUnwindSafe for JavaScript
impl Send for JavaScript
impl Sync for JavaScript
impl Unpin for JavaScript
impl UnwindSafe for JavaScript
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