#[non_exhaustive]#[repr(u32)]pub enum yaml_emitter_state_t {
Show 18 variants
YAML_EMIT_STREAM_START_STATE = 0,
YAML_EMIT_FIRST_DOCUMENT_START_STATE = 1,
YAML_EMIT_DOCUMENT_START_STATE = 2,
YAML_EMIT_DOCUMENT_CONTENT_STATE = 3,
YAML_EMIT_DOCUMENT_END_STATE = 4,
YAML_EMIT_FLOW_SEQUENCE_FIRST_ITEM_STATE = 5,
YAML_EMIT_FLOW_SEQUENCE_ITEM_STATE = 6,
YAML_EMIT_FLOW_MAPPING_FIRST_KEY_STATE = 7,
YAML_EMIT_FLOW_MAPPING_KEY_STATE = 8,
YAML_EMIT_FLOW_MAPPING_SIMPLE_VALUE_STATE = 9,
YAML_EMIT_FLOW_MAPPING_VALUE_STATE = 10,
YAML_EMIT_BLOCK_SEQUENCE_FIRST_ITEM_STATE = 11,
YAML_EMIT_BLOCK_SEQUENCE_ITEM_STATE = 12,
YAML_EMIT_BLOCK_MAPPING_FIRST_KEY_STATE = 13,
YAML_EMIT_BLOCK_MAPPING_KEY_STATE = 14,
YAML_EMIT_BLOCK_MAPPING_SIMPLE_VALUE_STATE = 15,
YAML_EMIT_BLOCK_MAPPING_VALUE_STATE = 16,
YAML_EMIT_END_STATE = 17,
}
Expand description
The emitter states.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
YAML_EMIT_STREAM_START_STATE = 0
Expect STREAM-START.
YAML_EMIT_FIRST_DOCUMENT_START_STATE = 1
Expect the first DOCUMENT-START or STREAM-END.
YAML_EMIT_DOCUMENT_START_STATE = 2
Expect DOCUMENT-START or STREAM-END.
YAML_EMIT_DOCUMENT_CONTENT_STATE = 3
Expect the content of a document.
YAML_EMIT_DOCUMENT_END_STATE = 4
Expect DOCUMENT-END.
YAML_EMIT_FLOW_SEQUENCE_FIRST_ITEM_STATE = 5
Expect the first item of a flow sequence.
YAML_EMIT_FLOW_SEQUENCE_ITEM_STATE = 6
Expect an item of a flow sequence.
YAML_EMIT_FLOW_MAPPING_FIRST_KEY_STATE = 7
Expect the first key of a flow mapping.
YAML_EMIT_FLOW_MAPPING_KEY_STATE = 8
Expect a key of a flow mapping.
YAML_EMIT_FLOW_MAPPING_SIMPLE_VALUE_STATE = 9
Expect a value for a simple key of a flow mapping.
YAML_EMIT_FLOW_MAPPING_VALUE_STATE = 10
Expect a value of a flow mapping.
YAML_EMIT_BLOCK_SEQUENCE_FIRST_ITEM_STATE = 11
Expect the first item of a block sequence.
YAML_EMIT_BLOCK_SEQUENCE_ITEM_STATE = 12
Expect an item of a block sequence.
YAML_EMIT_BLOCK_MAPPING_FIRST_KEY_STATE = 13
Expect the first key of a block mapping.
YAML_EMIT_BLOCK_MAPPING_KEY_STATE = 14
Expect the key of a block mapping.
YAML_EMIT_BLOCK_MAPPING_SIMPLE_VALUE_STATE = 15
Expect a value for a simple key of a block mapping.
YAML_EMIT_BLOCK_MAPPING_VALUE_STATE = 16
Expect a value of a block mapping.
YAML_EMIT_END_STATE = 17
Expect nothing.
Trait Implementations§
Source§impl Clone for yaml_emitter_state_t
impl Clone for yaml_emitter_state_t
Source§fn clone(&self) -> yaml_emitter_state_t
fn clone(&self) -> yaml_emitter_state_t
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for yaml_emitter_state_t
impl Debug for yaml_emitter_state_t
Source§impl Hash for yaml_emitter_state_t
impl Hash for yaml_emitter_state_t
Source§impl Ord for yaml_emitter_state_t
impl Ord for yaml_emitter_state_t
Source§fn cmp(&self, other: &yaml_emitter_state_t) -> Ordering
fn cmp(&self, other: &yaml_emitter_state_t) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for yaml_emitter_state_t
impl PartialEq for yaml_emitter_state_t
Source§impl PartialOrd for yaml_emitter_state_t
impl PartialOrd for yaml_emitter_state_t
impl Copy for yaml_emitter_state_t
impl Eq for yaml_emitter_state_t
impl StructuralPartialEq for yaml_emitter_state_t
Auto Trait Implementations§
impl Freeze for yaml_emitter_state_t
impl RefUnwindSafe for yaml_emitter_state_t
impl Send for yaml_emitter_state_t
impl Sync for yaml_emitter_state_t
impl Unpin for yaml_emitter_state_t
impl UnwindSafe for yaml_emitter_state_t
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
Mutably borrows from an owned value. Read more