pub enum ParserEvent {
Text(String),
Open(ParsedElement),
Close(ParsedElement),
Empty(ParsedElement),
}
Expand description
An owned version of the parser event, this is created to allow for the asynchronous map transform of the tree without worrying about ownership issues so will take an owned copy of substrings of the tag-less text.
Variants§
Text(String)
Some text within a pair of XML tags
Open(ParsedElement)
An XML open tag
Close(ParsedElement)
An XML close tag
Empty(ParsedElement)
An empty XML i.e. <break/>
Trait Implementations§
Source§impl Clone for ParserEvent
impl Clone for ParserEvent
Source§fn clone(&self) -> ParserEvent
fn clone(&self) -> ParserEvent
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ParserEvent
impl Debug for ParserEvent
Auto Trait Implementations§
impl !Freeze for ParserEvent
impl RefUnwindSafe for ParserEvent
impl Send for ParserEvent
impl Sync for ParserEvent
impl Unpin for ParserEvent
impl UnwindSafe for ParserEvent
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