Enum libyml::yaml::YamlParserStateT
source · #[non_exhaustive]#[repr(u32)]pub enum YamlParserStateT {
Show 24 variants
YamlParseStreamStartState = 0,
YamlParseImplicitDocumentStartState = 1,
YamlParseDocumentStartState = 2,
YamlParseDocumentContentState = 3,
YamlParseDocumentEndState = 4,
YamlParseBlockNodeState = 5,
YamlParseBlockNodeOrIndentlessSequenceState = 6,
YamlParseFlowNodeState = 7,
YamlParseBlockSequenceFirstEntryState = 8,
YamlParseBlockSequenceEntryState = 9,
YamlParseIndentlessSequenceEntryState = 10,
YamlParseBlockMappingFirstKeyState = 11,
YamlParseBlockMappingKeyState = 12,
YamlParseBlockMappingValueState = 13,
YamlParseFlowSequenceFirstEntryState = 14,
YamlParseFlowSequenceEntryState = 15,
YamlParseFlowSequenceEntryMappingKeyState = 16,
YamlParseFlowSequenceEntryMappingValueState = 17,
YamlParseFlowSequenceEntryMappingEndState = 18,
YamlParseFlowMappingFirstKeyState = 19,
YamlParseFlowMappingKeyState = 20,
YamlParseFlowMappingValueState = 21,
YamlParseFlowMappingEmptyValueState = 22,
YamlParseEndState = 23,
}
Expand description
The states of the parser.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
YamlParseStreamStartState = 0
Expect stream-start.
YamlParseImplicitDocumentStartState = 1
Expect the beginning of an implicit document.
YamlParseDocumentStartState = 2
Expect document-start.
YamlParseDocumentContentState = 3
Expect the content of a document.
YamlParseDocumentEndState = 4
Expect document-end.
YamlParseBlockNodeState = 5
Expect a block node.
YamlParseBlockNodeOrIndentlessSequenceState = 6
Expect a block node or indentless sequence.
YamlParseFlowNodeState = 7
Expect a flow node.
YamlParseBlockSequenceFirstEntryState = 8
Expect the first entry of a block sequence.
YamlParseBlockSequenceEntryState = 9
Expect an entry of a block sequence.
YamlParseIndentlessSequenceEntryState = 10
Expect an entry of an indentless sequence.
YamlParseBlockMappingFirstKeyState = 11
Expect the first key of a block mapping.
YamlParseBlockMappingKeyState = 12
Expect a block mapping key.
YamlParseBlockMappingValueState = 13
Expect a block mapping value.
YamlParseFlowSequenceFirstEntryState = 14
Expect the first entry of a flow sequence.
YamlParseFlowSequenceEntryState = 15
Expect an entry of a flow sequence.
YamlParseFlowSequenceEntryMappingKeyState = 16
Expect a key of an ordered mapping.
YamlParseFlowSequenceEntryMappingValueState = 17
Expect a value of an ordered mapping.
YamlParseFlowSequenceEntryMappingEndState = 18
Expect the and of an ordered mapping entry.
YamlParseFlowMappingFirstKeyState = 19
Expect the first key of a flow mapping.
YamlParseFlowMappingKeyState = 20
Expect a key of a flow mapping.
YamlParseFlowMappingValueState = 21
Expect a value of a flow mapping.
YamlParseFlowMappingEmptyValueState = 22
Expect an empty value of a flow mapping.
YamlParseEndState = 23
Expect nothing.
Trait Implementations§
source§impl Clone for YamlParserStateT
impl Clone for YamlParserStateT
source§fn clone(&self) -> YamlParserStateT
fn clone(&self) -> YamlParserStateT
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for YamlParserStateT
impl Debug for YamlParserStateT
source§impl Default for YamlParserStateT
impl Default for YamlParserStateT
source§impl Hash for YamlParserStateT
impl Hash for YamlParserStateT
source§impl Ord for YamlParserStateT
impl Ord for YamlParserStateT
source§fn cmp(&self, other: &YamlParserStateT) -> Ordering
fn cmp(&self, other: &YamlParserStateT) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for YamlParserStateT
impl PartialEq for YamlParserStateT
source§fn eq(&self, other: &YamlParserStateT) -> bool
fn eq(&self, other: &YamlParserStateT) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for YamlParserStateT
impl PartialOrd for YamlParserStateT
source§fn partial_cmp(&self, other: &YamlParserStateT) -> Option<Ordering>
fn partial_cmp(&self, other: &YamlParserStateT) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moreimpl Copy for YamlParserStateT
impl Eq for YamlParserStateT
impl StructuralPartialEq for YamlParserStateT
Auto Trait Implementations§
impl Freeze for YamlParserStateT
impl RefUnwindSafe for YamlParserStateT
impl Send for YamlParserStateT
impl Sync for YamlParserStateT
impl Unpin for YamlParserStateT
impl UnwindSafe for YamlParserStateT
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)