pub struct Parser<P>where
P: Posn,{ /* private fields */ }Expand description
A parser, using a file position provided
Implementations§
Source§impl<P> Parser<P>where
P: Posn,
impl<P> Parser<P>where
P: Posn,
Sourcepub fn set_version(self, version: usize) -> Self
pub fn set_version(self, version: usize) -> Self
Set the target XML version number - 100 for 1.00, or 110 for 1.10
Sourcepub fn next_event<T>(
&mut self,
ns_stack: &mut NamespaceStack<'_>,
get_token: T,
) -> HmlResult<Event<P>, P>
pub fn next_event<T>( &mut self, ns_stack: &mut NamespaceStack<'_>, get_token: T, ) -> HmlResult<Event<P>, P>
next_event
Trait Implementations§
Auto Trait Implementations§
impl<P> Freeze for Parser<P>where
P: Freeze,
impl<P> RefUnwindSafe for Parser<P>where
P: RefUnwindSafe,
impl<P> Send for Parser<P>where
P: Send,
impl<P> Sync for Parser<P>where
P: Sync,
impl<P> Unpin for Parser<P>where
P: Unpin,
impl<P> UnwindSafe for Parser<P>where
P: UnwindSafe,
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