Struct xml::writer::events::EndElementBuilder
source · pub struct EndElementBuilder<'a> { /* private fields */ }
Implementations§
source§impl<'a> EndElementBuilder<'a>
impl<'a> EndElementBuilder<'a>
A builder for a closing element event.
sourcepub fn name<N>(self, name: N) -> EndElementBuilder<'a>where
N: Into<Name<'a>>,
pub fn name<N>(self, name: N) -> EndElementBuilder<'a>where N: Into<Name<'a>>,
Sets the name of this closing element.
Usually the writer is able to determine closing element names automatically. If this functionality is enabled (by default it is), then this name is checked for correctness. It is possible, however, to disable such behavior; then the user must ensure that closing element name is correct manually.
Trait Implementations§
source§impl<'a> From<EndElementBuilder<'a>> for XmlEvent<'a>
impl<'a> From<EndElementBuilder<'a>> for XmlEvent<'a>
source§fn from(b: EndElementBuilder<'a>) -> XmlEvent<'a>
fn from(b: EndElementBuilder<'a>) -> XmlEvent<'a>
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> RefUnwindSafe for EndElementBuilder<'a>
impl<'a> Send for EndElementBuilder<'a>
impl<'a> Sync for EndElementBuilder<'a>
impl<'a> Unpin for EndElementBuilder<'a>
impl<'a> UnwindSafe for EndElementBuilder<'a>
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