pub trait XmlRead<'i> {
// Required methods
fn next(&mut self) -> Result<PayloadEvent<'i>, DeError>;
fn read_to_end(&mut self, name: QName<'_>) -> Result<(), DeError>;
fn xml_version(&self) -> XmlVersion;
}Available on crate feature
serialize only.Expand description
Required Methods§
Sourcefn next(&mut self) -> Result<PayloadEvent<'i>, DeError>
fn next(&mut self) -> Result<PayloadEvent<'i>, DeError>
Return an input-borrowing event.
Sourcefn read_to_end(&mut self, name: QName<'_>) -> Result<(), DeError>
fn read_to_end(&mut self, name: QName<'_>) -> Result<(), DeError>
Skips until end element is found. Unlike next() it will not allocate
when it cannot satisfy the lifetime.
Sourcefn xml_version(&self) -> XmlVersion
fn xml_version(&self) -> XmlVersion
Return an XML version of the source.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".