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
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for Event
[src]
fn eq(&self, __arg_0: &Event) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Event) -> bool
This method tests for !=
.