Skip to main content

SyntaxKind

Enum SyntaxKind 

Source
#[repr(u16)]
pub enum SyntaxKind {
Show 168 variants WHITESPACE = 0, NEWLINE = 1, TEXT = 2, BACKSLASH = 3, ESCAPED_CHAR = 4, NONBREAKING_SPACE = 5, HARD_LINE_BREAK = 6, DIV_MARKER = 7, YAML_METADATA_DELIM = 8, YAML_KEY = 9, YAML_COLON = 10, YAML_TAG = 11, YAML_SCALAR = 12, YAML_COMMENT = 13, BLOCK_QUOTE_MARKER = 14, ALERT_MARKER = 15, IMAGE_LINK_START = 16, LIST_MARKER = 17, TASK_CHECKBOX = 18, COMMENT_START = 19, COMMENT_END = 20, ATTRIBUTE = 21, HORIZONTAL_RULE = 22, BLANK_LINE = 23, LINK_START = 24, LINK = 25, LINK_TEXT = 26, LINK_TEXT_END = 27, LINK_DEST_START = 28, LINK_DEST = 29, LINK_DEST_END = 30, LINK_REF = 31, IMAGE_LINK = 32, IMAGE_ALT = 33, IMAGE_ALT_END = 34, IMAGE_DEST_START = 35, IMAGE_DEST_END = 36, AUTO_LINK = 37, AUTO_LINK_MARKER = 38, REFERENCE_DEFINITION = 39, FOOTNOTE_DEFINITION = 40, FOOTNOTE_REFERENCE = 41, FOOTNOTE_LABEL_START = 42, FOOTNOTE_LABEL_ID = 43, FOOTNOTE_LABEL_END = 44, FOOTNOTE_LABEL_COLON = 45, REFERENCE_LABEL = 46, REFERENCE_URL = 47, REFERENCE_TITLE = 48, INLINE_MATH_MARKER = 49, DISPLAY_MATH_MARKER = 50, INLINE_MATH = 51, DISPLAY_MATH = 52, MATH_CONTENT = 53, INLINE_FOOTNOTE_START = 54, INLINE_FOOTNOTE_END = 55, INLINE_FOOTNOTE = 56, CITATION = 57, CITATION_MARKER = 58, CITATION_KEY = 59, CITATION_BRACE_OPEN = 60, CITATION_BRACE_CLOSE = 61, CITATION_CONTENT = 62, CITATION_SEPARATOR = 63, CROSSREF = 64, CROSSREF_MARKER = 65, CROSSREF_KEY = 66, CROSSREF_BRACE_OPEN = 67, CROSSREF_BRACE_CLOSE = 68, CROSSREF_BOOKDOWN_OPEN = 69, CROSSREF_BOOKDOWN_CLOSE = 70, BRACKETED_SPAN = 71, SPAN_CONTENT = 72, SPAN_ATTRIBUTES = 73, SPAN_BRACKET_OPEN = 74, SPAN_BRACKET_CLOSE = 75, SHORTCODE = 76, SHORTCODE_MARKER_OPEN = 77, SHORTCODE_MARKER_CLOSE = 78, SHORTCODE_CONTENT = 79, INLINE_CODE = 80, INLINE_CODE_MARKER = 81, INLINE_CODE_CONTENT = 82, INLINE_EXEC = 83, INLINE_EXEC_MARKER = 84, INLINE_EXEC_LANG = 85, INLINE_EXEC_CONTENT = 86, CODE_FENCE_MARKER = 87, CODE_BLOCK = 88, RAW_INLINE = 89, RAW_INLINE_MARKER = 90, RAW_INLINE_FORMAT = 91, RAW_INLINE_CONTENT = 92, EMPHASIS = 93, STRONG = 94, STRIKEOUT = 95, SUPERSCRIPT = 96, SUBSCRIPT = 97, EMPHASIS_MARKER = 98, STRONG_MARKER = 99, STRIKEOUT_MARKER = 100, SUPERSCRIPT_MARKER = 101, SUBSCRIPT_MARKER = 102, DOCUMENT = 103, YAML_METADATA = 104, YAML_METADATA_CONTENT = 105, YAML_BLOCK_MAP = 106, YAML_BLOCK_MAP_ENTRY = 107, YAML_BLOCK_MAP_KEY = 108, YAML_BLOCK_MAP_VALUE = 109, PANDOC_TITLE_BLOCK = 110, MMD_TITLE_BLOCK = 111, FENCED_DIV = 112, PARAGRAPH = 113, PLAIN = 114, BLOCK_QUOTE = 115, ALERT = 116, LIST = 117, LIST_ITEM = 118, DEFINITION_LIST = 119, DEFINITION_ITEM = 120, TERM = 121, DEFINITION = 122, DEFINITION_MARKER = 123, LINE_BLOCK = 124, LINE_BLOCK_LINE = 125, LINE_BLOCK_MARKER = 126, COMMENT = 127, FIGURE = 128, HTML_BLOCK = 129, HTML_BLOCK_TAG = 130, HTML_BLOCK_CONTENT = 131, TEX_BLOCK = 132, HEADING = 133, HEADING_CONTENT = 134, ATX_HEADING_MARKER = 135, SETEXT_HEADING_UNDERLINE = 136, LATEX_COMMAND = 137, SIMPLE_TABLE = 138, MULTILINE_TABLE = 139, PIPE_TABLE = 140, GRID_TABLE = 141, TABLE_HEADER = 142, TABLE_FOOTER = 143, TABLE_SEPARATOR = 144, TABLE_ROW = 145, TABLE_CELL = 146, TABLE_CAPTION = 147, TABLE_CAPTION_PREFIX = 148, CODE_FENCE_OPEN = 149, CODE_FENCE_CLOSE = 150, CODE_INFO = 151, CODE_LANGUAGE = 152, CHUNK_OPTIONS = 153, CHUNK_OPTION = 154, CHUNK_OPTION_KEY = 155, CHUNK_OPTION_VALUE = 156, CHUNK_OPTION_QUOTE = 157, CHUNK_LABEL = 158, HASHPIPE_YAML_PREAMBLE = 159, HASHPIPE_YAML_CONTENT = 160, HASHPIPE_PREFIX = 161, CODE_CONTENT = 162, DIV_FENCE_OPEN = 163, DIV_FENCE_CLOSE = 164, DIV_INFO = 165, DIV_CONTENT = 166, EMOJI = 167,
}

Variants§

§

WHITESPACE = 0

§

NEWLINE = 1

§

TEXT = 2

§

BACKSLASH = 3

§

ESCAPED_CHAR = 4

§

NONBREAKING_SPACE = 5

§

HARD_LINE_BREAK = 6

§

DIV_MARKER = 7

§

YAML_METADATA_DELIM = 8

§

YAML_KEY = 9

§

YAML_COLON = 10

§

YAML_TAG = 11

§

YAML_SCALAR = 12

§

YAML_COMMENT = 13

§

BLOCK_QUOTE_MARKER = 14

§

ALERT_MARKER = 15

§

LIST_MARKER = 17

§

TASK_CHECKBOX = 18

§

COMMENT_START = 19

§

COMMENT_END = 20

§

ATTRIBUTE = 21

§

HORIZONTAL_RULE = 22

§

BLANK_LINE = 23

§

IMAGE_ALT = 33

§

IMAGE_ALT_END = 34

§

IMAGE_DEST_START = 35

§

IMAGE_DEST_END = 36

§

REFERENCE_DEFINITION = 39

§

FOOTNOTE_DEFINITION = 40

§

FOOTNOTE_REFERENCE = 41

§

FOOTNOTE_LABEL_START = 42

§

FOOTNOTE_LABEL_ID = 43

§

FOOTNOTE_LABEL_END = 44

§

FOOTNOTE_LABEL_COLON = 45

§

REFERENCE_LABEL = 46

§

REFERENCE_URL = 47

§

REFERENCE_TITLE = 48

§

INLINE_MATH_MARKER = 49

§

DISPLAY_MATH_MARKER = 50

§

INLINE_MATH = 51

§

DISPLAY_MATH = 52

§

MATH_CONTENT = 53

§

INLINE_FOOTNOTE_START = 54

§

INLINE_FOOTNOTE_END = 55

§

INLINE_FOOTNOTE = 56

§

CITATION = 57

§

CITATION_MARKER = 58

§

CITATION_KEY = 59

§

CITATION_BRACE_OPEN = 60

§

CITATION_BRACE_CLOSE = 61

§

CITATION_CONTENT = 62

§

CITATION_SEPARATOR = 63

§

CROSSREF = 64

§

CROSSREF_MARKER = 65

§

CROSSREF_KEY = 66

§

CROSSREF_BRACE_OPEN = 67

§

CROSSREF_BRACE_CLOSE = 68

§

CROSSREF_BOOKDOWN_OPEN = 69

§

CROSSREF_BOOKDOWN_CLOSE = 70

§

BRACKETED_SPAN = 71

§

SPAN_CONTENT = 72

§

SPAN_ATTRIBUTES = 73

§

SPAN_BRACKET_OPEN = 74

§

SPAN_BRACKET_CLOSE = 75

§

SHORTCODE = 76

§

SHORTCODE_MARKER_OPEN = 77

§

SHORTCODE_MARKER_CLOSE = 78

§

SHORTCODE_CONTENT = 79

§

INLINE_CODE = 80

§

INLINE_CODE_MARKER = 81

§

INLINE_CODE_CONTENT = 82

§

INLINE_EXEC = 83

§

INLINE_EXEC_MARKER = 84

§

INLINE_EXEC_LANG = 85

§

INLINE_EXEC_CONTENT = 86

§

CODE_FENCE_MARKER = 87

§

CODE_BLOCK = 88

§

RAW_INLINE = 89

§

RAW_INLINE_MARKER = 90

§

RAW_INLINE_FORMAT = 91

§

RAW_INLINE_CONTENT = 92

§

EMPHASIS = 93

§

STRONG = 94

§

STRIKEOUT = 95

§

SUPERSCRIPT = 96

§

SUBSCRIPT = 97

§

EMPHASIS_MARKER = 98

§

STRONG_MARKER = 99

§

STRIKEOUT_MARKER = 100

§

SUPERSCRIPT_MARKER = 101

§

SUBSCRIPT_MARKER = 102

§

DOCUMENT = 103

§

YAML_METADATA = 104

§

YAML_METADATA_CONTENT = 105

§

YAML_BLOCK_MAP = 106

§

YAML_BLOCK_MAP_ENTRY = 107

§

YAML_BLOCK_MAP_KEY = 108

§

YAML_BLOCK_MAP_VALUE = 109

§

PANDOC_TITLE_BLOCK = 110

§

MMD_TITLE_BLOCK = 111

§

FENCED_DIV = 112

§

PARAGRAPH = 113

§

PLAIN = 114

§

BLOCK_QUOTE = 115

§

ALERT = 116

§

LIST = 117

§

LIST_ITEM = 118

§

DEFINITION_LIST = 119

§

DEFINITION_ITEM = 120

§

TERM = 121

§

DEFINITION = 122

§

DEFINITION_MARKER = 123

§

LINE_BLOCK = 124

§

LINE_BLOCK_LINE = 125

§

LINE_BLOCK_MARKER = 126

§

COMMENT = 127

§

FIGURE = 128

§

HTML_BLOCK = 129

§

HTML_BLOCK_TAG = 130

§

HTML_BLOCK_CONTENT = 131

§

TEX_BLOCK = 132

§

HEADING = 133

§

HEADING_CONTENT = 134

§

ATX_HEADING_MARKER = 135

§

SETEXT_HEADING_UNDERLINE = 136

§

LATEX_COMMAND = 137

§

SIMPLE_TABLE = 138

§

MULTILINE_TABLE = 139

§

PIPE_TABLE = 140

§

GRID_TABLE = 141

§

TABLE_HEADER = 142

§

TABLE_SEPARATOR = 144

§

TABLE_ROW = 145

§

TABLE_CELL = 146

§

TABLE_CAPTION = 147

§

TABLE_CAPTION_PREFIX = 148

§

CODE_FENCE_OPEN = 149

§

CODE_FENCE_CLOSE = 150

§

CODE_INFO = 151

§

CODE_LANGUAGE = 152

§

CHUNK_OPTIONS = 153

§

CHUNK_OPTION = 154

§

CHUNK_OPTION_KEY = 155

§

CHUNK_OPTION_VALUE = 156

§

CHUNK_OPTION_QUOTE = 157

§

CHUNK_LABEL = 158

§

HASHPIPE_YAML_PREAMBLE = 159

§

HASHPIPE_YAML_CONTENT = 160

§

HASHPIPE_PREFIX = 161

§

CODE_CONTENT = 162

§

DIV_FENCE_OPEN = 163

§

DIV_FENCE_CLOSE = 164

§

DIV_INFO = 165

§

DIV_CONTENT = 166

§

EMOJI = 167

Trait Implementations§

Source§

impl Clone for SyntaxKind

Source§

fn clone(&self) -> SyntaxKind

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SyntaxKind

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<SyntaxKind> for SyntaxKind

Source§

fn from(kind: SyntaxKind) -> Self

Converts to this type from the input type.
Source§

impl Hash for SyntaxKind

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for SyntaxKind

Source§

fn cmp(&self, other: &SyntaxKind) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for SyntaxKind

Source§

fn eq(&self, other: &SyntaxKind) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for SyntaxKind

Source§

fn partial_cmp(&self, other: &SyntaxKind) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Copy for SyntaxKind

Source§

impl Eq for SyntaxKind

Source§

impl StructuralPartialEq for SyntaxKind

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.