pub enum XmlEvent<'a> {
StartDocument {
version: XmlVersion,
encoding: Option<&'a str>,
standalone: Option<bool>,
},
StartElement(StartElement<'a>),
EndElement,
Characters(Cow<'a, str>),
}Variants§
Implementations§
Source§impl<'a> XmlEvent<'a>
impl<'a> XmlEvent<'a>
pub fn start_element(name: &'a str) -> StartElement<'a>
pub fn end_element() -> XmlEvent<'static>
Trait Implementations§
Source§impl<'a> From<StartElement<'a>> for XmlEvent<'a>
impl<'a> From<StartElement<'a>> for XmlEvent<'a>
Source§fn from(value: StartElement<'a>) -> Self
fn from(value: StartElement<'a>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for XmlEvent<'a>
impl<'a> RefUnwindSafe for XmlEvent<'a>
impl<'a> Send for XmlEvent<'a>
impl<'a> Sync for XmlEvent<'a>
impl<'a> Unpin for XmlEvent<'a>
impl<'a> UnsafeUnpin for XmlEvent<'a>
impl<'a> UnwindSafe for XmlEvent<'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