[−][src]Struct minidom::element::ElementBuilder
A builder for Element
s.
Implementations
impl ElementBuilder
[src]
pub fn prefix<S: Into<String>>(
mut self: Self,
prefix: Option<String>,
namespace: S
) -> Result<ElementBuilder>
[src]
mut self: Self,
prefix: Option<String>,
namespace: S
) -> Result<ElementBuilder>
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]
mut self: Self,
name: S,
value: V
) -> ElementBuilder
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]
mut self: Self,
iter: I
) -> ElementBuilder
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]
pub fn from(builder: ElementBuilder) -> Node
[src]
Auto Trait Implementations
impl RefUnwindSafe for ElementBuilder
[src]
impl Send for ElementBuilder
[src]
impl Sync for ElementBuilder
[src]
impl Unpin for ElementBuilder
[src]
impl UnwindSafe for ElementBuilder
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,