Skip to main content

SyntaxKind

Enum SyntaxKind 

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

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_ANCHOR = 12

§

YAML_ALIAS = 13

§

YAML_SCALAR = 14

§

YAML_COMMENT = 15

§

YAML_DOCUMENT_START = 16

§

YAML_DOCUMENT_END = 17

§

BLOCK_QUOTE_MARKER = 18

§

ALERT_MARKER = 19

§

LIST_MARKER = 21

§

TASK_CHECKBOX = 22

§

COMMENT_START = 23

§

COMMENT_END = 24

§

ATTRIBUTE = 25

§

ATTR_ID = 26

§

ATTR_CLASS = 27

§

ATTR_KEY_VALUE = 28

§

ATTR_KEY = 29

§

ATTR_VALUE = 30

§

HORIZONTAL_RULE = 31

§

BLANK_LINE = 32

§

IMAGE_ALT = 42

§

IMAGE_ALT_END = 43

§

IMAGE_DEST_START = 44

§

IMAGE_DEST_END = 45

§

REFERENCE_DEFINITION = 48

§

FOOTNOTE_DEFINITION = 49

§

FOOTNOTE_REFERENCE = 50

§

FOOTNOTE_LABEL_START = 51

§

FOOTNOTE_LABEL_ID = 52

§

FOOTNOTE_LABEL_END = 53

§

FOOTNOTE_LABEL_COLON = 54

§

REFERENCE_LABEL = 55

§

REFERENCE_URL = 56

§

REFERENCE_TITLE = 57

§

INLINE_MATH_MARKER = 58

§

DISPLAY_MATH_MARKER = 59

§

INLINE_MATH = 60

§

DISPLAY_MATH = 61

§

MATH_CONTENT = 62

§

INLINE_FOOTNOTE_START = 63

§

INLINE_FOOTNOTE_END = 64

§

INLINE_FOOTNOTE = 65

§

CITATION = 66

§

CITATION_MARKER = 67

§

CITATION_KEY = 68

§

CITATION_BRACE_OPEN = 69

§

CITATION_BRACE_CLOSE = 70

§

CITATION_CONTENT = 71

§

CITATION_SEPARATOR = 72

§

CROSSREF = 73

§

CROSSREF_MARKER = 74

§

CROSSREF_KEY = 75

§

CROSSREF_BRACE_OPEN = 76

§

CROSSREF_BRACE_CLOSE = 77

§

CROSSREF_BOOKDOWN_OPEN = 78

§

CROSSREF_BOOKDOWN_CLOSE = 79

§

BRACKETED_SPAN = 80

§

SPAN_CONTENT = 81

§

SPAN_ATTRIBUTES = 82

§

SPAN_BRACKET_OPEN = 83

§

SPAN_BRACKET_CLOSE = 84

§

SHORTCODE = 85

§

SHORTCODE_MARKER_OPEN = 86

§

SHORTCODE_MARKER_CLOSE = 87

§

SHORTCODE_CONTENT = 88

§

INLINE_CODE = 89

§

INLINE_CODE_MARKER = 90

§

INLINE_CODE_CONTENT = 91

§

INLINE_EXEC = 92

§

INLINE_EXEC_MARKER = 93

§

INLINE_EXEC_LANG = 94

§

INLINE_EXEC_CONTENT = 95

§

CODE_FENCE_MARKER = 96

§

CODE_BLOCK = 97

§

RAW_INLINE = 98

§

RAW_INLINE_MARKER = 99

§

RAW_INLINE_FORMAT = 100

§

RAW_INLINE_CONTENT = 101

§

EMPHASIS = 102

§

STRONG = 103

§

STRIKEOUT = 104

§

MARK = 105

§

SUPERSCRIPT = 106

§

SUBSCRIPT = 107

§

EMPHASIS_MARKER = 108

§

STRONG_MARKER = 109

§

STRIKEOUT_MARKER = 110

§

MARK_MARKER = 111

§

SUPERSCRIPT_MARKER = 112

§

SUBSCRIPT_MARKER = 113

§

DOCUMENT = 114

§

YAML_METADATA = 115

§

YAML_METADATA_CONTENT = 116

§

YAML_STREAM = 117

§

YAML_DOCUMENT = 118

§

YAML_BLOCK_MAP = 119

§

YAML_BLOCK_MAP_ENTRY = 120

§

YAML_BLOCK_MAP_KEY = 121

§

YAML_BLOCK_MAP_VALUE = 122

§

YAML_FLOW_MAP = 123

§

YAML_FLOW_MAP_ENTRY = 124

§

YAML_FLOW_MAP_KEY = 125

§

YAML_FLOW_MAP_VALUE = 126

§

YAML_FLOW_SEQUENCE = 127

§

YAML_FLOW_SEQUENCE_ITEM = 128

§

YAML_BLOCK_SEQUENCE = 129

§

YAML_BLOCK_SEQUENCE_ITEM = 130

§

YAML_BLOCK_SEQ_ENTRY = 131

§

PANDOC_TITLE_BLOCK = 132

§

MMD_TITLE_BLOCK = 133

§

FENCED_DIV = 134

§

PARAGRAPH = 135

§

PLAIN = 136

§

BLOCK_QUOTE = 137

§

ALERT = 138

§

LIST = 139

§

LIST_ITEM = 140

§

DEFINITION_LIST = 141

§

DEFINITION_ITEM = 142

§

TERM = 143

§

DEFINITION = 144

§

DEFINITION_MARKER = 145

§

LINE_BLOCK = 146

§

LINE_BLOCK_LINE = 147

§

LINE_BLOCK_MARKER = 148

§

COMMENT = 149

§

FIGURE = 150

§

HTML_BLOCK = 151

§

HTML_BLOCK_TAG = 152

§

HTML_BLOCK_CONTENT = 153

§

HTML_BLOCK_DIV = 154

§

HTML_ATTRS = 155

§

INLINE_HTML = 156

§

INLINE_HTML_CONTENT = 157

§

INLINE_HTML_SPAN = 158

§

TEX_BLOCK = 159

§

HEADING = 160

§

HEADING_CONTENT = 161

§

ATX_HEADING_MARKER = 162

§

SETEXT_HEADING_UNDERLINE = 163

§

LATEX_COMMAND = 164

§

SIMPLE_TABLE = 165

§

MULTILINE_TABLE = 166

§

PIPE_TABLE = 167

§

GRID_TABLE = 168

§

TABLE_HEADER = 169

§

TABLE_SEPARATOR = 171

§

TABLE_ROW = 172

§

TABLE_CELL = 173

§

TABLE_CAPTION = 174

§

TABLE_CAPTION_PREFIX = 175

§

CODE_FENCE_OPEN = 176

§

CODE_FENCE_CLOSE = 177

§

CODE_INFO = 178

§

CODE_LANGUAGE = 179

§

CHUNK_OPTIONS = 180

§

CHUNK_OPTION = 181

§

CHUNK_OPTION_KEY = 182

§

CHUNK_OPTION_VALUE = 183

§

CHUNK_OPTION_QUOTE = 184

§

CHUNK_LABEL = 185

§

HASHPIPE_YAML_PREAMBLE = 186

§

HASHPIPE_YAML_CONTENT = 187

§

HASHPIPE_PREFIX = 188

§

CODE_CONTENT = 189

§

DIV_FENCE_OPEN = 190

§

DIV_FENCE_CLOSE = 191

§

DIV_INFO = 192

§

DIV_CONTENT = 193

§

EMOJI = 194

§

UNRESOLVED_REFERENCE = 195

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.