#[non_exhaustive]pub enum ParserState {
Show 24 variants
StreamStart = 0,
ImplicitDocumentStart = 1,
DocumentStart = 2,
DocumentContent = 3,
DocumentEnd = 4,
BlockNode = 5,
BlockNodeOrIndentlessSequence = 6,
FlowNode = 7,
BlockSequenceFirstEntry = 8,
BlockSequenceEntry = 9,
IndentlessSequenceEntry = 10,
BlockMappingFirstKey = 11,
BlockMappingKey = 12,
BlockMappingValue = 13,
FlowSequenceFirstEntry = 14,
FlowSequenceEntry = 15,
FlowSequenceEntryMappingKey = 16,
FlowSequenceEntryMappingValue = 17,
FlowSequenceEntryMappingEnd = 18,
FlowMappingFirstKey = 19,
FlowMappingKey = 20,
FlowMappingValue = 21,
FlowMappingEmptyValue = 22,
End = 23,
}Expand description
The states of the parser.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
StreamStart = 0
Expect STREAM-START.
ImplicitDocumentStart = 1
Expect the beginning of an implicit document.
DocumentStart = 2
Expect DOCUMENT-START.
DocumentContent = 3
Expect the content of a document.
DocumentEnd = 4
Expect DOCUMENT-END.
BlockNode = 5
Expect a block node.
BlockNodeOrIndentlessSequence = 6
Expect a block node or indentless sequence.
FlowNode = 7
Expect a flow node.
BlockSequenceFirstEntry = 8
Expect the first entry of a block sequence.
BlockSequenceEntry = 9
Expect an entry of a block sequence.
IndentlessSequenceEntry = 10
Expect an entry of an indentless sequence.
BlockMappingFirstKey = 11
Expect the first key of a block mapping.
BlockMappingKey = 12
Expect a block mapping key.
BlockMappingValue = 13
Expect a block mapping value.
FlowSequenceFirstEntry = 14
Expect the first entry of a flow sequence.
FlowSequenceEntry = 15
Expect an entry of a flow sequence.
FlowSequenceEntryMappingKey = 16
Expect a key of an ordered mapping.
FlowSequenceEntryMappingValue = 17
Expect a value of an ordered mapping.
FlowSequenceEntryMappingEnd = 18
Expect the and of an ordered mapping entry.
FlowMappingFirstKey = 19
Expect the first key of a flow mapping.
FlowMappingKey = 20
Expect a key of a flow mapping.
FlowMappingValue = 21
Expect a value of a flow mapping.
FlowMappingEmptyValue = 22
Expect an empty value of a flow mapping.
End = 23
Expect nothing.
Trait Implementations§
Source§impl Clone for ParserState
impl Clone for ParserState
Source§fn clone(&self) -> ParserState
fn clone(&self) -> ParserState
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more