Enum yaml_rust_davvid::parser::Event
source · pub enum Event {
Nothing,
StreamStart,
StreamEnd,
DocumentStart,
DocumentEnd,
Alias(usize),
Scalar(String, TScalarStyle, usize, Option<TokenType>),
SequenceStart(usize),
SequenceEnd,
MappingStart(usize),
MappingEnd,
}
Expand description
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§
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