Trait XmlRead
Source pub trait XmlRead<'i> {
// Required methods
fn next(&mut self) -> Result<DeEvent<'i>, DeError>;
fn read_to_end(&mut self, name: &[u8]) -> Result<(), DeError>;
fn decoder(&self) -> Decoder;
}
Expand description
Trait used by the deserializer for iterating over input. This is manually
“specialized” for iterating over &[u8]
.
You do not need to implement this trait, it is needed to abstract from
borrowing and copying data sources and reuse code in
deserializer
Return an input-borrowing event.
Skips until end element is found. Unlike next()
it will not allocate
when it cannot satisfy the lifetime.
A copy of the reader’s decoder used to decode strings.