pub struct XmlReader<'a> { /* private fields */ }Expand description
A fast, zero-copy XML reader.
Implementations§
Source§impl<'a> XmlReader<'a>
impl<'a> XmlReader<'a>
Sourcepub fn from_bytes(input: &'a [u8]) -> Self
pub fn from_bytes(input: &'a [u8]) -> Self
Creates a new XML reader from bytes.
Sourcepub fn next_event(&mut self) -> Result<XmlEvent<'a>>
pub fn next_event(&mut self) -> Result<XmlEvent<'a>>
Reads the next XML event.
Auto Trait Implementations§
impl<'a> Freeze for XmlReader<'a>
impl<'a> RefUnwindSafe for XmlReader<'a>
impl<'a> Send for XmlReader<'a>
impl<'a> Sync for XmlReader<'a>
impl<'a> Unpin for XmlReader<'a>
impl<'a> UnwindSafe for XmlReader<'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