Enum yaml_rust::parser::Event [-] [+] [src]

pub enum Event {
    NoEvent,
    StreamStart,
    StreamEnd,
    DocumentStart,
    DocumentEnd,
    Alias(usize),
    Scalar(String, TScalarStyle, usize, Option<TokenType>),
    SequenceStart(usize),
    SequenceEnd,
    MappingStart(usize),
    MappingEnd,
}

Event is used with the low-level event base parsing API, see EventReceiver trait.

Variants

NoEvent

Reserved for internal use

StreamStart
StreamEnd
DocumentStart
DocumentEnd
Alias

Refer to an anchor ID

Scalar

Value, style, anchor_id, tag

SequenceStart

Anchor ID

SequenceEnd
MappingStart

Anchor ID

MappingEnd

Trait Implementations

Derived Implementations

impl Eq for Event

impl Debug for Event

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl PartialEq for Event

fn eq(&self, __arg_0: &Event) -> bool

fn ne(&self, __arg_0: &Event) -> bool

impl Clone for Event

fn clone(&self) -> Event

fn clone_from(&mut self, source: &Self)