Struct minidom::element::ElementBuilder
source · pub struct ElementBuilder { /* private fields */ }
Expand description
A builder for Element
s.
Implementations§
source§impl ElementBuilder
impl ElementBuilder
sourcepub fn ns<S: Into<String>>(self, namespace: S) -> ElementBuilder
pub fn ns<S: Into<String>>(self, namespace: S) -> ElementBuilder
Sets the namespace.
sourcepub fn attr<S: Into<String>, V: IntoAttributeValue>(
self,
name: S,
value: V
) -> ElementBuilder
pub fn attr<S: Into<String>, V: IntoAttributeValue>(
self,
name: S,
value: V
) -> ElementBuilder
Sets an attribute.
sourcepub fn append<T: IntoElements>(self, into: T) -> ElementBuilder
pub fn append<T: IntoElements>(self, into: T) -> ElementBuilder
Appends anything implementing IntoElements
into the tree.
Trait Implementations§
source§impl IntoElements for ElementBuilder
impl IntoElements for ElementBuilder
source§fn into_elements(self, emitter: &mut ElementEmitter<'_>)
fn into_elements(self, emitter: &mut ElementEmitter<'_>)
Emits this as a sequence of text nodes and
Element
s.