pub enum YamlEventKind {
StreamStart,
StreamEnd,
DocumentStart {
explicit: bool,
},
DocumentEnd {
explicit: bool,
},
SequenceStart {
style: CollectionStyle,
tag: Option<String>,
anchor: Option<String>,
},
SequenceEnd,
MappingStart {
style: CollectionStyle,
tag: Option<String>,
anchor: Option<String>,
},
MappingEnd,
Scalar {
style: YamlScalarStyle,
value: String,
tag: Option<String>,
anchor: Option<String>,
},
Alias {
name: String,
},
}Expand description
Semantic YAML event kinds.
Variants§
StreamStart
Start of a YAML stream.
StreamEnd
End of a YAML stream.
DocumentStart
Start of a YAML document.
DocumentEnd
End of a YAML document.
SequenceStart
Start of a sequence node.
Fields
§
style: CollectionStyleSequence spelling style.
SequenceEnd
End of a sequence node.
MappingStart
Start of a mapping node.
Fields
§
style: CollectionStyleMapping spelling style.
MappingEnd
End of a mapping node.
Scalar
Scalar node with decoded content.
Fields
§
style: YamlScalarStyleScalar spelling style.
Alias
Alias node.
Trait Implementations§
Source§impl Clone for YamlEventKind
impl Clone for YamlEventKind
Source§fn clone(&self) -> YamlEventKind
fn clone(&self) -> YamlEventKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 YamlEventKind
impl Debug for YamlEventKind
impl Eq for YamlEventKind
Source§impl PartialEq for YamlEventKind
impl PartialEq for YamlEventKind
impl StructuralPartialEq for YamlEventKind
Auto Trait Implementations§
impl Freeze for YamlEventKind
impl RefUnwindSafe for YamlEventKind
impl Send for YamlEventKind
impl Sync for YamlEventKind
impl Unpin for YamlEventKind
impl UnsafeUnpin for YamlEventKind
impl UnwindSafe for YamlEventKind
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