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
Nothing
Reserved for internal use
StreamStart
StreamEnd
DocumentStart
DocumentEnd
Alias(usize)
Refer to an anchor ID
Scalar(String, TScalarStyle, usize, Option<TokenType>)
Value, style, anchor_id, tag
SequenceStart(usize)
Anchor ID
SequenceEnd
MappingStart(usize)
Anchor ID
MappingEnd
Trait Implementations
impl Clone for Event
[src]
fn clone(&self) -> Event
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for Event
[src]
fn eq(&self, __arg_0: &Event) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Event) -> bool
[src]
This method tests for !=
.
impl Debug for Event
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more