Enum yaml_rust::parser::Event [−][src]
pub enum Event {
Nothing,
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
NothingReserved for internal use
StreamStartStreamEndDocumentStartDocumentEndAlias(usize)Refer to an anchor ID
Scalar(String, TScalarStyle, usize, Option<TokenType>)Value, style, anchor_id, tag
SequenceStart(usize)Anchor ID
SequenceEndMappingStart(usize)Anchor ID
MappingEnd
Trait Implementations
impl Clone for Event[src]
impl Clone for Eventfn clone(&self) -> Event[src]
fn clone(&self) -> EventReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl PartialEq for Event[src]
impl PartialEq for Eventfn eq(&self, other: &Event) -> bool[src]
fn eq(&self, other: &Event) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Event) -> bool[src]
fn ne(&self, other: &Event) -> boolThis method tests for !=.
impl Debug for Event[src]
impl Debug for Eventfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Eq for Event[src]
impl Eq for Event