pub struct ElementWriter<'a, W: Write> { /* private fields */ }
Expand description

A struct to write an element. Contains methods to add attributes and inner elements to the element

Implementations

Adds an attribute to this element.

Add additional attributes to this element using an iterator.

The yielded items must be convertible to Attribute using Into.

Write some text inside the current element.

Write a CData event <![CDATA[...]]> inside the current element.

Write a processing instruction <?...?> inside the current element.

Write an empty (self-closing) tag.

Create a new scope for writing XML inside the current element.

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.