Trait quick_xml::de::XmlRead

source ·
pub trait XmlRead<'i> {
    fn next(&mut self) -> Result<DeEvent<'i>, DeError>;
    fn read_to_end(&mut self, name: QName<'_>) -> Result<(), DeError>;
    fn decoder(&self) -> Decoder;
}
Available on crate feature serialize only.
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

Required Methods§

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.

Implementors§