pub enum DeEvent<'a> {
Start(BytesStart<'a>),
End(BytesEnd<'a>),
Text(Text<'a>),
Eof,
}
Available on crate feature
serialize
only.Expand description
Simplified event which contains only these variants that used by deserializer
Variants§
Start(BytesStart<'a>)
Start tag (with attributes) <tag attr="value">
.
End(BytesEnd<'a>)
End tag </tag>
.
Text(Text<'a>)
Decoded and concatenated content of consequent Text
and CData
events. Consequent means that events should follow each other or be
delimited only by (any count of) Comment
or PI
events.
Eof
End of XML document.
Trait Implementations§
impl<'a> Eq for DeEvent<'a>
impl<'a> StructuralPartialEq for DeEvent<'a>
Auto Trait Implementations§
impl<'a> Freeze for DeEvent<'a>
impl<'a> RefUnwindSafe for DeEvent<'a>
impl<'a> Send for DeEvent<'a>
impl<'a> Sync for DeEvent<'a>
impl<'a> Unpin for DeEvent<'a>
impl<'a> UnwindSafe for DeEvent<'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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)