pub struct BytesText<'a> { /* fields omitted */ }Data from various events (most notably, Event::Text).
Creates a new BytesText from an escaped byte sequence.
Creates a new BytesText from a byte sequence. The byte sequence is
expected not to be escaped.
Creates a new BytesText from an escaped string.
Creates a new BytesText from a string. The string is expected not to
be escaped.
Ensures that all data is owned to extend the object's lifetime if
necessary.
gets escaped content
Searches for '&' into content and try to escape the coded character if possible
returns Malformed error with index within element if '&' is not followed by ';'
helper method to unescape then decode self using the reader encoding
for performance reasons (could avoid allocating a String),
it might be wiser to manually use
- BytesText::unescaped()
- Reader::decode(...)
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
The resulting type after dereferencing.
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from)
🔬 This is a nightly-only experimental API. (get_type_id)
this method will likely be replaced by an associated static