Enum cmark_syntax::languages::JavaScript
source · 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 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 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
§type Error = ()
type Error = ()
Error type returned by the lexer. This can be set using
#[logos(error = MyError)]. Defaults to () if not set.§type Extras = ()
type Extras = ()
Associated type
Extras for the particular lexer. This can be set using
#[logos(extras = MyExtras)] and accessed inside callbacks.§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§impl PartialEq for JavaScript
impl PartialEq for JavaScript
source§fn eq(&self, other: &JavaScript) -> bool
fn eq(&self, other: &JavaScript) -> bool
This method tests for
self and other values to be equal, and is used
by ==.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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)