Trait quick_xml::de::BorrowingReader[][src]

pub trait BorrowingReader<'i> where
    Self: 'i, 
{ fn next(&mut self) -> Result<Event<'i>, DeError>;
fn read_to_end(&mut self, name: &[u8]) -> Result<(), DeError>;
fn decoder(&self) -> Decoder; }
Expand description

A trait that borrows an XML reader that borrows from the input. For a &u8 input the events will borrow from that input, whereas with a BufRead input all events will be converted to ’static, allocating whenever necessary.

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