#[non_exhaustive]pub enum EmitterState {
Show 18 variants
StreamStart = 0,
FirstDocumentStart = 1,
DocumentStart = 2,
DocumentContent = 3,
DocumentEnd = 4,
FlowSequenceFirstItem = 5,
FlowSequenceItem = 6,
FlowMappingFirstKey = 7,
FlowMappingKey = 8,
FlowMappingSimpleValue = 9,
FlowMappingValue = 10,
BlockSequenceFirstItem = 11,
BlockSequenceItem = 12,
BlockMappingFirstKey = 13,
BlockMappingKey = 14,
BlockMappingSimpleValue = 15,
BlockMappingValue = 16,
End = 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.
StreamStart = 0
Expect STREAM-START.
FirstDocumentStart = 1
Expect the first DOCUMENT-START or STREAM-END.
DocumentStart = 2
Expect DOCUMENT-START or STREAM-END.
DocumentContent = 3
Expect the content of a document.
DocumentEnd = 4
Expect DOCUMENT-END.
FlowSequenceFirstItem = 5
Expect the first item of a flow sequence.
FlowSequenceItem = 6
Expect an item of a flow sequence.
FlowMappingFirstKey = 7
Expect the first key of a flow mapping.
FlowMappingKey = 8
Expect a key of a flow mapping.
FlowMappingSimpleValue = 9
Expect a value for a simple key of a flow mapping.
FlowMappingValue = 10
Expect a value of a flow mapping.
BlockSequenceFirstItem = 11
Expect the first item of a block sequence.
BlockSequenceItem = 12
Expect an item of a block sequence.
BlockMappingFirstKey = 13
Expect the first key of a block mapping.
BlockMappingKey = 14
Expect the key of a block mapping.
BlockMappingSimpleValue = 15
Expect a value for a simple key of a block mapping.
BlockMappingValue = 16
Expect a value of a block mapping.
End = 17
Expect nothing.
Trait Implementations§
Source§impl Clone for EmitterState
impl Clone for EmitterState
Source§fn clone(&self) -> EmitterState
fn clone(&self) -> EmitterState
Returns a duplicate 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 EmitterState
impl Debug for EmitterState
Source§impl Default for EmitterState
impl Default for EmitterState
Source§fn default() -> EmitterState
fn default() -> EmitterState
Returns the “default value” for a type. Read more
Source§impl Hash for EmitterState
impl Hash for EmitterState
Source§impl Ord for EmitterState
impl Ord for EmitterState
Source§fn cmp(&self, other: &EmitterState) -> Ordering
fn cmp(&self, other: &EmitterState) -> 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 EmitterState
impl PartialEq for EmitterState
Source§impl PartialOrd for EmitterState
impl PartialOrd for EmitterState
impl Copy for EmitterState
impl Eq for EmitterState
impl StructuralPartialEq for EmitterState
Auto Trait Implementations§
impl Freeze for EmitterState
impl RefUnwindSafe for EmitterState
impl Send for EmitterState
impl Sync for EmitterState
impl Unpin for EmitterState
impl UnwindSafe for EmitterState
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