pub struct BytesStart<'a> { /* fields omitted */ }Opening tag data (Event::Start), with optional attributes.
<name attr="value">.
The name can be accessed using the name, local_name or unescaped methods. An
iterator over the attributes is returned by the attributes method.
Creates a new BytesStart from the given content (name + attributes).
Creates a new BytesStart from the given name.
Creates a new BytesStart from the given content (name + attributes)
Owns its contents.
Creates a new BytesStart from the given name
Owns its contents.
Converts the event into an owned event.
Consumes self and yield a new BytesStart with additional attributes from an iterator.
The yielded items must be convertible to Attribute using Into.
Gets the undecoded raw tag name as a &[u8].
Gets the undecoded raw local tag name (excluding namespace) as a &[u8].
All content up to and including the first : character is removed from the tag name.
Gets the unescaped tag name.
XML escape sequences like "<" will be replaced by their unescaped characters like
"<".
Returns an iterator over the attributes of this tag.
Returns an iterator over the HTML-like attributes of this tag (no mandatory quotes or =).
Add additional attributes to this tag using an iterator.
The yielded items must be convertible to Attribute using Into.
Returns the unescaped and decoded string value.
This allocates a String in all cases. For performance reasons it might be a better idea to
instead use one of:
unescaped(), as it doesn't allocate when no escape sequences are used.
Reader::decode(), as it only allocates when the decoding can't be performed otherwise.
Adds an attribute to this element.
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
type Target = [u8]
The resulting type after dereferencing.
type Owned = T
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
type Error = !
🔬 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
🔬 This is a nightly-only experimental API. (get_type_id)
this method will likely be replaced by an associated static
Mutably borrows from an owned value. Read more
type Error = <U as TryFrom<T>>::Error
🔬 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)