#[repr(u32)]
#[non_exhaustive]
pub enum yaml_emitter_state_t {
Show 18 variants
YAML_EMIT_STREAM_START_STATE,
YAML_EMIT_FIRST_DOCUMENT_START_STATE,
YAML_EMIT_DOCUMENT_START_STATE,
YAML_EMIT_DOCUMENT_CONTENT_STATE,
YAML_EMIT_DOCUMENT_END_STATE,
YAML_EMIT_FLOW_SEQUENCE_FIRST_ITEM_STATE,
YAML_EMIT_FLOW_SEQUENCE_ITEM_STATE,
YAML_EMIT_FLOW_MAPPING_FIRST_KEY_STATE,
YAML_EMIT_FLOW_MAPPING_KEY_STATE,
YAML_EMIT_FLOW_MAPPING_SIMPLE_VALUE_STATE,
YAML_EMIT_FLOW_MAPPING_VALUE_STATE,
YAML_EMIT_BLOCK_SEQUENCE_FIRST_ITEM_STATE,
YAML_EMIT_BLOCK_SEQUENCE_ITEM_STATE,
YAML_EMIT_BLOCK_MAPPING_FIRST_KEY_STATE,
YAML_EMIT_BLOCK_MAPPING_KEY_STATE,
YAML_EMIT_BLOCK_MAPPING_SIMPLE_VALUE_STATE,
YAML_EMIT_BLOCK_MAPPING_VALUE_STATE,
YAML_EMIT_END_STATE,
}
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
Expect STREAM-START.
YAML_EMIT_FIRST_DOCUMENT_START_STATE
Expect the first DOCUMENT-START or STREAM-END.
YAML_EMIT_DOCUMENT_START_STATE
Expect DOCUMENT-START or STREAM-END.
YAML_EMIT_DOCUMENT_CONTENT_STATE
Expect the content of a document.
YAML_EMIT_DOCUMENT_END_STATE
Expect DOCUMENT-END.
YAML_EMIT_FLOW_SEQUENCE_FIRST_ITEM_STATE
Expect the first item of a flow sequence.
YAML_EMIT_FLOW_SEQUENCE_ITEM_STATE
Expect an item of a flow sequence.
YAML_EMIT_FLOW_MAPPING_FIRST_KEY_STATE
Expect the first key of a flow mapping.
YAML_EMIT_FLOW_MAPPING_KEY_STATE
Expect a key of a flow mapping.
YAML_EMIT_FLOW_MAPPING_SIMPLE_VALUE_STATE
Expect a value for a simple key of a flow mapping.
YAML_EMIT_FLOW_MAPPING_VALUE_STATE
Expect a value of a flow mapping.
YAML_EMIT_BLOCK_SEQUENCE_FIRST_ITEM_STATE
Expect the first item of a block sequence.
YAML_EMIT_BLOCK_SEQUENCE_ITEM_STATE
Expect an item of a block sequence.
YAML_EMIT_BLOCK_MAPPING_FIRST_KEY_STATE
Expect the first key of a block mapping.
YAML_EMIT_BLOCK_MAPPING_KEY_STATE
Expect the key of a block mapping.
YAML_EMIT_BLOCK_MAPPING_SIMPLE_VALUE_STATE
Expect a value for a simple key of a block mapping.
YAML_EMIT_BLOCK_MAPPING_VALUE_STATE
Expect a value of a block mapping.
YAML_EMIT_END_STATE
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<yaml_emitter_state_t> for yaml_emitter_state_t
impl PartialEq<yaml_emitter_state_t> for yaml_emitter_state_t
source§fn eq(&self, other: &yaml_emitter_state_t) -> bool
fn eq(&self, other: &yaml_emitter_state_t) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<yaml_emitter_state_t> for yaml_emitter_state_t
impl PartialOrd<yaml_emitter_state_t> for yaml_emitter_state_t
source§fn partial_cmp(&self, other: &yaml_emitter_state_t) -> Option<Ordering>
fn partial_cmp(&self, other: &yaml_emitter_state_t) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more