pub trait XmlReaderSync<'a>: XmlReader {
// Required method
fn read_event(&mut self) -> Result<Event<'a>, Error>;
// Provided methods
fn read_tag(&mut self) -> Result<Event<'a>, Error> { ... }
fn skip_current(&mut self) -> Result<(), Error> { ... }
}
Expand description
Trait that defines a synchronous XML reader.
Required Methods§
Provided Methods§
Sourcefn read_tag(&mut self) -> Result<Event<'a>, Error>
fn read_tag(&mut self) -> Result<Event<'a>, Error>
Reads a new XML tag (Event::Start
, Event::Empty
or Event::End
)
from the reader.
§Errors
Forwards the errors from read_event
.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.