pub struct SliceReader<'de> { /* private fields */ }
Available on crate feature serialize only.
Expand description

XML input source that reads from a slice of bytes and can borrow from it.

You cannot create it, it is created automatically when you call Deserializer::from_str.

Trait Implementations

Return an input-borrowing event.

Skips until end element is found. Unlike next() it will not allocate when it cannot satisfy the lifetime. Read more

A copy of the reader’s decoder used to decode strings.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.