Skip to main content

SyntaxKind

Enum SyntaxKind 

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

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

§

ATTR_ID = 24

§

ATTR_CLASS = 25

§

ATTR_KEY_VALUE = 26

§

ATTR_KEY = 27

§

ATTR_VALUE = 28

§

HORIZONTAL_RULE = 29

§

BLANK_LINE = 30

§

IMAGE_ALT = 40

§

IMAGE_ALT_END = 41

§

IMAGE_DEST_START = 42

§

IMAGE_DEST_END = 43

§

REFERENCE_DEFINITION = 46

§

FOOTNOTE_DEFINITION = 47

§

FOOTNOTE_REFERENCE = 48

§

FOOTNOTE_LABEL_START = 49

§

FOOTNOTE_LABEL_ID = 50

§

FOOTNOTE_LABEL_END = 51

§

FOOTNOTE_LABEL_COLON = 52

§

REFERENCE_LABEL = 53

§

REFERENCE_URL = 54

§

REFERENCE_TITLE = 55

§

INLINE_MATH_MARKER = 56

§

DISPLAY_MATH_MARKER = 57

§

INLINE_MATH = 58

§

DISPLAY_MATH = 59

§

MATH_CONTENT = 60

§

INLINE_FOOTNOTE_START = 61

§

INLINE_FOOTNOTE_END = 62

§

INLINE_FOOTNOTE = 63

§

CITATION = 64

§

CITATION_MARKER = 65

§

CITATION_KEY = 66

§

CITATION_BRACE_OPEN = 67

§

CITATION_BRACE_CLOSE = 68

§

CITATION_CONTENT = 69

§

CITATION_SEPARATOR = 70

§

CROSSREF = 71

§

CROSSREF_MARKER = 72

§

CROSSREF_KEY = 73

§

CROSSREF_BRACE_OPEN = 74

§

CROSSREF_BRACE_CLOSE = 75

§

CROSSREF_BOOKDOWN_OPEN = 76

§

CROSSREF_BOOKDOWN_CLOSE = 77

§

BRACKETED_SPAN = 78

§

SPAN_CONTENT = 79

§

SPAN_ATTRIBUTES = 80

§

SPAN_BRACKET_OPEN = 81

§

SPAN_BRACKET_CLOSE = 82

§

SHORTCODE = 83

§

SHORTCODE_MARKER_OPEN = 84

§

SHORTCODE_MARKER_CLOSE = 85

§

SHORTCODE_CONTENT = 86

§

INLINE_CODE = 87

§

INLINE_CODE_MARKER = 88

§

INLINE_CODE_CONTENT = 89

§

INLINE_EXEC = 90

§

INLINE_EXEC_MARKER = 91

§

INLINE_EXEC_LANG = 92

§

INLINE_EXEC_CONTENT = 93

§

CODE_FENCE_MARKER = 94

§

CODE_BLOCK = 95

§

RAW_INLINE = 96

§

RAW_INLINE_MARKER = 97

§

RAW_INLINE_FORMAT = 98

§

RAW_INLINE_CONTENT = 99

§

EMPHASIS = 100

§

STRONG = 101

§

STRIKEOUT = 102

§

MARK = 103

§

SUPERSCRIPT = 104

§

SUBSCRIPT = 105

§

EMPHASIS_MARKER = 106

§

STRONG_MARKER = 107

§

STRIKEOUT_MARKER = 108

§

MARK_MARKER = 109

§

SUPERSCRIPT_MARKER = 110

§

SUBSCRIPT_MARKER = 111

§

DOCUMENT = 112

§

YAML_METADATA = 113

§

YAML_METADATA_CONTENT = 114

§

YAML_STREAM = 115

§

YAML_DOCUMENT = 116

§

YAML_BLOCK_MAP = 117

§

YAML_BLOCK_MAP_ENTRY = 118

§

YAML_BLOCK_MAP_KEY = 119

§

YAML_BLOCK_MAP_VALUE = 120

§

YAML_FLOW_MAP = 121

§

YAML_FLOW_MAP_ENTRY = 122

§

YAML_FLOW_MAP_KEY = 123

§

YAML_FLOW_MAP_VALUE = 124

§

YAML_FLOW_SEQUENCE = 125

§

YAML_FLOW_SEQUENCE_ITEM = 126

§

YAML_BLOCK_SEQUENCE = 127

§

YAML_BLOCK_SEQUENCE_ITEM = 128

§

YAML_BLOCK_SEQ_ENTRY = 129

§

PANDOC_TITLE_BLOCK = 130

§

MMD_TITLE_BLOCK = 131

§

FENCED_DIV = 132

§

PARAGRAPH = 133

§

PLAIN = 134

§

BLOCK_QUOTE = 135

§

ALERT = 136

§

LIST = 137

§

LIST_ITEM = 138

§

DEFINITION_LIST = 139

§

DEFINITION_ITEM = 140

§

TERM = 141

§

DEFINITION = 142

§

DEFINITION_MARKER = 143

§

LINE_BLOCK = 144

§

LINE_BLOCK_LINE = 145

§

LINE_BLOCK_MARKER = 146

§

COMMENT = 147

§

FIGURE = 148

§

HTML_BLOCK = 149

§

HTML_BLOCK_TAG = 150

§

HTML_BLOCK_CONTENT = 151

§

HTML_BLOCK_DIV = 152

§

HTML_ATTRS = 153

§

INLINE_HTML = 154

§

INLINE_HTML_CONTENT = 155

§

INLINE_HTML_SPAN = 156

§

TEX_BLOCK = 157

§

HEADING = 158

§

HEADING_CONTENT = 159

§

ATX_HEADING_MARKER = 160

§

SETEXT_HEADING_UNDERLINE = 161

§

LATEX_COMMAND = 162

§

SIMPLE_TABLE = 163

§

MULTILINE_TABLE = 164

§

PIPE_TABLE = 165

§

GRID_TABLE = 166

§

TABLE_HEADER = 167

§

TABLE_SEPARATOR = 169

§

TABLE_ROW = 170

§

TABLE_CELL = 171

§

TABLE_CAPTION = 172

§

TABLE_CAPTION_PREFIX = 173

§

CODE_FENCE_OPEN = 174

§

CODE_FENCE_CLOSE = 175

§

CODE_INFO = 176

§

CODE_LANGUAGE = 177

§

CHUNK_OPTIONS = 178

§

CHUNK_OPTION = 179

§

CHUNK_OPTION_KEY = 180

§

CHUNK_OPTION_VALUE = 181

§

CHUNK_OPTION_QUOTE = 182

§

CHUNK_LABEL = 183

§

HASHPIPE_YAML_PREAMBLE = 184

§

HASHPIPE_YAML_CONTENT = 185

§

HASHPIPE_PREFIX = 186

§

CODE_CONTENT = 187

§

DIV_FENCE_OPEN = 188

§

DIV_FENCE_CLOSE = 189

§

DIV_INFO = 190

§

DIV_CONTENT = 191

§

EMOJI = 192

§

UNRESOLVED_REFERENCE = 193

Trait Implementations§

Source§

impl Clone for SyntaxKind

Source§

fn clone(&self) -> SyntaxKind

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 (const: unstable) · Source§

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

Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§

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

Compares and returns the minimum of two values. Read more
1.50.0 (const: unstable) · 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 (const: unstable) · 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 (const: unstable) · 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 (const: unstable) · 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 (const: unstable) · 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 (const: unstable) · 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.