#[non_exhaustive]#[repr(u32)]pub enum yaml_parser_state_t {
Show 24 variants
YAML_PARSE_STREAM_START_STATE = 0,
YAML_PARSE_IMPLICIT_DOCUMENT_START_STATE = 1,
YAML_PARSE_DOCUMENT_START_STATE = 2,
YAML_PARSE_DOCUMENT_CONTENT_STATE = 3,
YAML_PARSE_DOCUMENT_END_STATE = 4,
YAML_PARSE_BLOCK_NODE_STATE = 5,
YAML_PARSE_BLOCK_NODE_OR_INDENTLESS_SEQUENCE_STATE = 6,
YAML_PARSE_FLOW_NODE_STATE = 7,
YAML_PARSE_BLOCK_SEQUENCE_FIRST_ENTRY_STATE = 8,
YAML_PARSE_BLOCK_SEQUENCE_ENTRY_STATE = 9,
YAML_PARSE_INDENTLESS_SEQUENCE_ENTRY_STATE = 10,
YAML_PARSE_BLOCK_MAPPING_FIRST_KEY_STATE = 11,
YAML_PARSE_BLOCK_MAPPING_KEY_STATE = 12,
YAML_PARSE_BLOCK_MAPPING_VALUE_STATE = 13,
YAML_PARSE_FLOW_SEQUENCE_FIRST_ENTRY_STATE = 14,
YAML_PARSE_FLOW_SEQUENCE_ENTRY_STATE = 15,
YAML_PARSE_FLOW_SEQUENCE_ENTRY_MAPPING_KEY_STATE = 16,
YAML_PARSE_FLOW_SEQUENCE_ENTRY_MAPPING_VALUE_STATE = 17,
YAML_PARSE_FLOW_SEQUENCE_ENTRY_MAPPING_END_STATE = 18,
YAML_PARSE_FLOW_MAPPING_FIRST_KEY_STATE = 19,
YAML_PARSE_FLOW_MAPPING_KEY_STATE = 20,
YAML_PARSE_FLOW_MAPPING_VALUE_STATE = 21,
YAML_PARSE_FLOW_MAPPING_EMPTY_VALUE_STATE = 22,
YAML_PARSE_END_STATE = 23,
}
Expand description
The states of the parser.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
YAML_PARSE_STREAM_START_STATE = 0
Expect STREAM-START.
YAML_PARSE_IMPLICIT_DOCUMENT_START_STATE = 1
Expect the beginning of an implicit document.
YAML_PARSE_DOCUMENT_START_STATE = 2
Expect DOCUMENT-START.
YAML_PARSE_DOCUMENT_CONTENT_STATE = 3
Expect the content of a document.
YAML_PARSE_DOCUMENT_END_STATE = 4
Expect DOCUMENT-END.
YAML_PARSE_BLOCK_NODE_STATE = 5
Expect a block node.
YAML_PARSE_BLOCK_NODE_OR_INDENTLESS_SEQUENCE_STATE = 6
Expect a block node or indentless sequence.
YAML_PARSE_FLOW_NODE_STATE = 7
Expect a flow node.
YAML_PARSE_BLOCK_SEQUENCE_FIRST_ENTRY_STATE = 8
Expect the first entry of a block sequence.
YAML_PARSE_BLOCK_SEQUENCE_ENTRY_STATE = 9
Expect an entry of a block sequence.
YAML_PARSE_INDENTLESS_SEQUENCE_ENTRY_STATE = 10
Expect an entry of an indentless sequence.
YAML_PARSE_BLOCK_MAPPING_FIRST_KEY_STATE = 11
Expect the first key of a block mapping.
YAML_PARSE_BLOCK_MAPPING_KEY_STATE = 12
Expect a block mapping key.
YAML_PARSE_BLOCK_MAPPING_VALUE_STATE = 13
Expect a block mapping value.
YAML_PARSE_FLOW_SEQUENCE_FIRST_ENTRY_STATE = 14
Expect the first entry of a flow sequence.
YAML_PARSE_FLOW_SEQUENCE_ENTRY_STATE = 15
Expect an entry of a flow sequence.
YAML_PARSE_FLOW_SEQUENCE_ENTRY_MAPPING_KEY_STATE = 16
Expect a key of an ordered mapping.
YAML_PARSE_FLOW_SEQUENCE_ENTRY_MAPPING_VALUE_STATE = 17
Expect a value of an ordered mapping.
YAML_PARSE_FLOW_SEQUENCE_ENTRY_MAPPING_END_STATE = 18
Expect the and of an ordered mapping entry.
YAML_PARSE_FLOW_MAPPING_FIRST_KEY_STATE = 19
Expect the first key of a flow mapping.
YAML_PARSE_FLOW_MAPPING_KEY_STATE = 20
Expect a key of a flow mapping.
YAML_PARSE_FLOW_MAPPING_VALUE_STATE = 21
Expect a value of a flow mapping.
YAML_PARSE_FLOW_MAPPING_EMPTY_VALUE_STATE = 22
Expect an empty value of a flow mapping.
YAML_PARSE_END_STATE = 23
Expect nothing.
Trait Implementations§
Source§impl Clone for yaml_parser_state_t
impl Clone for yaml_parser_state_t
Source§fn clone(&self) -> yaml_parser_state_t
fn clone(&self) -> yaml_parser_state_t
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more