pub enum Event<'a> {
DocStart {
explicit: bool,
},
DocEnd {
explicit: bool,
},
SeqStart {
tag: Option<Cow<'a, [u8]>>,
anchor: Option<Cow<'a, [u8]>>,
flow: bool,
},
SeqEnd,
MapStart {
tag: Option<Cow<'a, [u8]>>,
anchor: Option<Cow<'a, [u8]>>,
flow: bool,
},
MapEnd,
Directive {
directive_type: DirectiveType,
value: Cow<'a, [u8]>,
},
Scalar {
tag: Option<Cow<'a, [u8]>>,
anchor: Option<Cow<'a, [u8]>>,
scalar_type: ScalarType,
value: Cow<'a, [u8]>,
},
Alias(Cow<'a, [u8]>),
ErrorEvent,
}
Variants§
DocStart
DocEnd
SeqStart
SeqEnd
MapStart
MapEnd
Directive
Scalar
Fields
§
scalar_type: ScalarType
Alias(Cow<'a, [u8]>)
ErrorEvent
Trait Implementations§
impl<'a> StructuralPartialEq for Event<'a>
Auto Trait Implementations§
impl<'a> Freeze for Event<'a>
impl<'a> RefUnwindSafe for Event<'a>
impl<'a> Send for Event<'a>
impl<'a> Sync for Event<'a>
impl<'a> Unpin for Event<'a>
impl<'a> UnwindSafe for Event<'a>
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