Enum yaml_rust2::parser::Event
source · pub enum Event {
Nothing,
StreamStart,
StreamEnd,
DocumentStart,
DocumentEnd,
Alias(usize),
Scalar(String, TScalarStyle, usize, Option<Tag>),
SequenceStart(usize, Option<Tag>),
SequenceEnd,
MappingStart(usize, Option<Tag>),
MappingEnd,
}
Expand description
An event generated by the YAML parser.
Events are used in the low-level event-based API (push parser). The API entrypoint is the
EventReceiver
trait.
Variants§
Nothing
Reserved for internal use.
StreamStart
Event generated at the very beginning of parsing.
StreamEnd
Last event that will be generated by the parser. Signals EOF.
DocumentStart
The YAML start document directive (---
).
DocumentEnd
The YAML end document directive (...
).
Alias(usize)
A YAML Alias.
Scalar(String, TScalarStyle, usize, Option<Tag>)
Value, style, anchor id, tag
SequenceStart(usize, Option<Tag>)
The start of a YAML sequence (array).
SequenceEnd
The end of a YAML sequence (array).
MappingStart(usize, Option<Tag>)
The start of a YAML mapping (object, hash).
MappingEnd
The end of a YAML mapping (object, hash).
Trait Implementations§
source§impl PartialEq for Event
impl PartialEq for Event
impl Eq for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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