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<Event> for Event
impl PartialEq<Event> for Event
impl Eq for Event
impl StructuralEq for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more