[−][src]Struct rpki::xml::decode::Reader
An XML reader.
This struct holds all state necessary for parsing an XML documnet.
Methods
impl<R: BufRead> Reader<R>
[src]
pub fn new(reader: R) -> Self
[src]
Creates a new reader from an underlying reader.
pub fn start<F, E>(&mut self, op: F) -> Result<Content, E> where
F: FnOnce(Element) -> Result<(), E>,
E: From<Error>,
[src]
F: FnOnce(Element) -> Result<(), E>,
E: From<Error>,
Parse the start of the document.
This is like Content::take_element
except that it also happily
skips over XML and doctype declarations.
pub fn end(&mut self) -> Result<(), Error>
[src]
Parse the end of the document.
This checks that the next non-comment event to be the end of file.
Auto Trait Implementations
impl<R> Send for Reader<R> where
R: Send,
R: Send,
impl<R> Sync for Reader<R> where
R: Sync,
R: Sync,
impl<R> Unpin for Reader<R> where
R: Unpin,
R: Unpin,
impl<R> UnwindSafe for Reader<R> where
R: UnwindSafe,
R: UnwindSafe,
impl<R> RefUnwindSafe for Reader<R> where
R: RefUnwindSafe,
R: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,