pub struct FragmentBuilder { /* private fields */ }Expand description
Builder for reusable XML fragments.
Implementations§
Source§impl FragmentBuilder
impl FragmentBuilder
pub fn new() -> Self
pub fn child(self, child: impl IntoXmlFragment) -> XmlResult<Self>
pub fn children<I, T>(self, children: I) -> XmlResult<Self>where
I: IntoIterator<Item = T>,
T: IntoXmlFragment,
pub fn text(self, value: impl Into<String>) -> XmlResult<Self>
pub fn nodes(&self) -> &[XmlNode]
pub fn into_single_element(self) -> XmlResult<ElementBuilder>
Trait Implementations§
Source§impl Clone for FragmentBuilder
impl Clone for FragmentBuilder
Source§fn clone(&self) -> FragmentBuilder
fn clone(&self) -> FragmentBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FragmentBuilder
impl Debug for FragmentBuilder
Source§impl Default for FragmentBuilder
impl Default for FragmentBuilder
Source§fn default() -> FragmentBuilder
fn default() -> FragmentBuilder
Returns the “default value” for a type. Read more
impl Eq for FragmentBuilder
Source§impl IntoXmlFragment for FragmentBuilder
impl IntoXmlFragment for FragmentBuilder
fn into_xml_fragment(self) -> XmlResult<FragmentBuilder>
Source§impl PartialEq for FragmentBuilder
impl PartialEq for FragmentBuilder
Source§fn eq(&self, other: &FragmentBuilder) -> bool
fn eq(&self, other: &FragmentBuilder) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FragmentBuilder
Auto Trait Implementations§
impl Freeze for FragmentBuilder
impl RefUnwindSafe for FragmentBuilder
impl Send for FragmentBuilder
impl Sync for FragmentBuilder
impl Unpin for FragmentBuilder
impl UnsafeUnpin for FragmentBuilder
impl UnwindSafe for FragmentBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more