[][src]Struct minidom::element::ElementBuilder

pub struct ElementBuilder { /* fields omitted */ }

A builder for Elements.

Implementations

impl ElementBuilder[src]

pub fn prefix<S: Into<String>>(
    mut self: Self,
    prefix: Option<String>,
    namespace: S
) -> Result<ElementBuilder>
[src]

Sets a custom prefix. It is not possible to set the same prefix twice.

pub fn attr<S: Into<String>, V: IntoAttributeValue>(
    mut self: Self,
    name: S,
    value: V
) -> ElementBuilder
[src]

Sets an attribute.

pub fn append<T: Into<Node>>(mut self: Self, node: T) -> ElementBuilder[src]

Appends anything implementing Into<Node> into the tree.

pub fn append_all<T: Into<Node>, I: IntoIterator<Item = T>>(
    mut self: Self,
    iter: I
) -> ElementBuilder
[src]

Appends an iterator of things implementing Into<Node> into the tree.

pub fn build(self) -> Element[src]

Builds the Element.

Trait Implementations

impl From<ElementBuilder> for Node[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.