pub struct Parser<'a, 'r, B: BufRead> { /* private fields */ }
Expand description
Parser adaptor for quick_xml::Reader
Implementations§
Source§impl<'a, 'r, B: BufRead> Parser<'a, 'r, B>
impl<'a, 'r, B: BufRead> Parser<'a, 'r, B>
Sourcepub fn new(inner: &'r mut Reader<B>, buf: &'a mut Vec<u8>) -> Self
pub fn new(inner: &'r mut Reader<B>, buf: &'a mut Vec<u8>) -> Self
Create a new adaptor from a reader and a buffer
Sourcepub fn parse_document<E: Element>(&mut self) -> Result<E>
pub fn parse_document<E: Element>(&mut self) -> Result<E>
Parse a single (root) element from reading a document
Uses the default state type for the returned element.
Sourcepub fn parse_document_for_state<S: ElementState>(&mut self) -> Result<S::Output>
pub fn parse_document_for_state<S: ElementState>(&mut self) -> Result<S::Output>
Parse a single (root) element from reading a document
Uses the given state type.
Auto Trait Implementations§
impl<'a, 'r, B> Freeze for Parser<'a, 'r, B>
impl<'a, 'r, B> RefUnwindSafe for Parser<'a, 'r, B>where
B: RefUnwindSafe,
impl<'a, 'r, B> Send for Parser<'a, 'r, B>where
B: Send,
impl<'a, 'r, B> Sync for Parser<'a, 'r, B>where
B: Sync,
impl<'a, 'r, B> Unpin for Parser<'a, 'r, B>
impl<'a, 'r, B> !UnwindSafe for Parser<'a, 'r, B>
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