Enum cmark_syntax::languages::JavaScript
source · [−]pub enum JavaScript {
Error,
Identifier,
Literal,
Glyph,
GlyphCtx,
Keyword,
KeywordCtx,
Special,
Comment,
}Variants
Error
Identifier
Literal
Glyph
GlyphCtx
Keyword
KeywordCtx
Special
Comment
Trait Implementations
sourceimpl Clone for JavaScript
impl Clone for JavaScript
sourcefn clone(&self) -> JavaScript
fn clone(&self) -> JavaScript
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for JavaScript
impl Debug for JavaScript
sourceimpl Highlight for JavaScript
impl Highlight for JavaScript
sourceimpl<'s> Logos<'s> for JavaScript
impl<'s> Logos<'s> for JavaScript
type Extras = ()
type Extras = ()
Associated type Extras for the particular lexer. This can be set using
#[logos(extras = MyExtras)] and accessed inside callbacks. Read more
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]. Read more
sourceconst ERROR: Self = JavaScript {
#[error]
Error
const ERROR: Self = JavaScript { #[error] Error
Helper const of the variant marked as #[error].
sourcefn 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. Read more
sourceimpl PartialEq<JavaScript> for JavaScript
impl PartialEq<JavaScript> for JavaScript
impl Copy for JavaScript
impl Eq for JavaScript
impl StructuralEq for JavaScript
impl StructuralPartialEq for JavaScript
Auto Trait Implementations
impl RefUnwindSafe for JavaScript
impl Send for JavaScript
impl Sync for JavaScript
impl Unpin for JavaScript
impl UnwindSafe for JavaScript
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more