Skip to main content

SyntaxKind

Enum SyntaxKind 

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

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

§

YAML_DOCUMENT_START = 14

§

YAML_DOCUMENT_END = 15

§

BLOCK_QUOTE_MARKER = 16

§

ALERT_MARKER = 17

§

LIST_MARKER = 19

§

TASK_CHECKBOX = 20

§

COMMENT_START = 21

§

COMMENT_END = 22

§

ATTRIBUTE = 23

§

HORIZONTAL_RULE = 24

§

BLANK_LINE = 25

§

IMAGE_ALT = 35

§

IMAGE_ALT_END = 36

§

IMAGE_DEST_START = 37

§

IMAGE_DEST_END = 38

§

REFERENCE_DEFINITION = 41

§

FOOTNOTE_DEFINITION = 42

§

FOOTNOTE_REFERENCE = 43

§

FOOTNOTE_LABEL_START = 44

§

FOOTNOTE_LABEL_ID = 45

§

FOOTNOTE_LABEL_END = 46

§

FOOTNOTE_LABEL_COLON = 47

§

REFERENCE_LABEL = 48

§

REFERENCE_URL = 49

§

REFERENCE_TITLE = 50

§

INLINE_MATH_MARKER = 51

§

DISPLAY_MATH_MARKER = 52

§

INLINE_MATH = 53

§

DISPLAY_MATH = 54

§

MATH_CONTENT = 55

§

INLINE_FOOTNOTE_START = 56

§

INLINE_FOOTNOTE_END = 57

§

INLINE_FOOTNOTE = 58

§

CITATION = 59

§

CITATION_MARKER = 60

§

CITATION_KEY = 61

§

CITATION_BRACE_OPEN = 62

§

CITATION_BRACE_CLOSE = 63

§

CITATION_CONTENT = 64

§

CITATION_SEPARATOR = 65

§

CROSSREF = 66

§

CROSSREF_MARKER = 67

§

CROSSREF_KEY = 68

§

CROSSREF_BRACE_OPEN = 69

§

CROSSREF_BRACE_CLOSE = 70

§

CROSSREF_BOOKDOWN_OPEN = 71

§

CROSSREF_BOOKDOWN_CLOSE = 72

§

BRACKETED_SPAN = 73

§

SPAN_CONTENT = 74

§

SPAN_ATTRIBUTES = 75

§

SPAN_BRACKET_OPEN = 76

§

SPAN_BRACKET_CLOSE = 77

§

SHORTCODE = 78

§

SHORTCODE_MARKER_OPEN = 79

§

SHORTCODE_MARKER_CLOSE = 80

§

SHORTCODE_CONTENT = 81

§

INLINE_CODE = 82

§

INLINE_CODE_MARKER = 83

§

INLINE_CODE_CONTENT = 84

§

INLINE_EXEC = 85

§

INLINE_EXEC_MARKER = 86

§

INLINE_EXEC_LANG = 87

§

INLINE_EXEC_CONTENT = 88

§

CODE_FENCE_MARKER = 89

§

CODE_BLOCK = 90

§

RAW_INLINE = 91

§

RAW_INLINE_MARKER = 92

§

RAW_INLINE_FORMAT = 93

§

RAW_INLINE_CONTENT = 94

§

EMPHASIS = 95

§

STRONG = 96

§

STRIKEOUT = 97

§

MARK = 98

§

SUPERSCRIPT = 99

§

SUBSCRIPT = 100

§

EMPHASIS_MARKER = 101

§

STRONG_MARKER = 102

§

STRIKEOUT_MARKER = 103

§

MARK_MARKER = 104

§

SUPERSCRIPT_MARKER = 105

§

SUBSCRIPT_MARKER = 106

§

DOCUMENT = 107

§

YAML_METADATA = 108

§

YAML_METADATA_CONTENT = 109

§

YAML_BLOCK_MAP = 110

§

YAML_BLOCK_MAP_ENTRY = 111

§

YAML_BLOCK_MAP_KEY = 112

§

YAML_BLOCK_MAP_VALUE = 113

§

YAML_FLOW_MAP = 114

§

YAML_FLOW_MAP_ENTRY = 115

§

YAML_FLOW_MAP_KEY = 116

§

YAML_FLOW_MAP_VALUE = 117

§

YAML_FLOW_SEQUENCE = 118

§

YAML_FLOW_SEQUENCE_ITEM = 119

§

YAML_BLOCK_SEQUENCE = 120

§

YAML_BLOCK_SEQUENCE_ITEM = 121

§

YAML_BLOCK_SEQ_ENTRY = 122

§

PANDOC_TITLE_BLOCK = 123

§

MMD_TITLE_BLOCK = 124

§

FENCED_DIV = 125

§

PARAGRAPH = 126

§

PLAIN = 127

§

BLOCK_QUOTE = 128

§

ALERT = 129

§

LIST = 130

§

LIST_ITEM = 131

§

DEFINITION_LIST = 132

§

DEFINITION_ITEM = 133

§

TERM = 134

§

DEFINITION = 135

§

DEFINITION_MARKER = 136

§

LINE_BLOCK = 137

§

LINE_BLOCK_LINE = 138

§

LINE_BLOCK_MARKER = 139

§

COMMENT = 140

§

FIGURE = 141

§

HTML_BLOCK = 142

§

HTML_BLOCK_TAG = 143

§

HTML_BLOCK_CONTENT = 144

§

TEX_BLOCK = 145

§

HEADING = 146

§

HEADING_CONTENT = 147

§

ATX_HEADING_MARKER = 148

§

SETEXT_HEADING_UNDERLINE = 149

§

LATEX_COMMAND = 150

§

SIMPLE_TABLE = 151

§

MULTILINE_TABLE = 152

§

PIPE_TABLE = 153

§

GRID_TABLE = 154

§

TABLE_HEADER = 155

§

TABLE_SEPARATOR = 157

§

TABLE_ROW = 158

§

TABLE_CELL = 159

§

TABLE_CAPTION = 160

§

TABLE_CAPTION_PREFIX = 161

§

CODE_FENCE_OPEN = 162

§

CODE_FENCE_CLOSE = 163

§

CODE_INFO = 164

§

CODE_LANGUAGE = 165

§

CHUNK_OPTIONS = 166

§

CHUNK_OPTION = 167

§

CHUNK_OPTION_KEY = 168

§

CHUNK_OPTION_VALUE = 169

§

CHUNK_OPTION_QUOTE = 170

§

CHUNK_LABEL = 171

§

HASHPIPE_YAML_PREAMBLE = 172

§

HASHPIPE_YAML_CONTENT = 173

§

HASHPIPE_PREFIX = 174

§

CODE_CONTENT = 175

§

DIV_FENCE_OPEN = 176

§

DIV_FENCE_CLOSE = 177

§

DIV_INFO = 178

§

DIV_CONTENT = 179

§

EMOJI = 180

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.