pub enum Event<'de> {
Alias(usize),
Scalar(Scalar<'de>),
SequenceStart(SequenceStart),
SequenceEnd,
MappingStart(MappingStart),
MappingEnd,
Void,
}
Expand description
Represents the different events that can occur during YAML parsing.
Variants§
Alias(usize)
Represents an alias event, which refers to a previously defined anchor.
The usize
value represents the index of the aliased event.
Scalar(Scalar<'de>)
Represents a scalar event, which contains a scalar value.
The Scalar
type holds the scalar value and its associated properties.
SequenceStart(SequenceStart)
Represents the start of a sequence event.
The SequenceStart
type holds the properties of the sequence, such as its anchor and tag.
SequenceEnd
Represents the end of a sequence event.
MappingStart(MappingStart)
Represents the start of a mapping event.
The MappingStart
type holds the properties of the mapping, such as its anchor and tag.
MappingEnd
Represents the end of a mapping event.
Void
Represents a void event, which is an empty event. This event is used when there are no other events to be parsed.