pub struct EndElementBuilder<'a> { /* private fields */ }
Expand description
A builder for a closing element event.
Implementations§
Source§impl<'a> EndElementBuilder<'a>
impl<'a> EndElementBuilder<'a>
A builder for a closing element event.
Sourcepub fn name<N>(self, name: N) -> Self
pub fn name<N>(self, name: N) -> Self
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>) -> Self
fn from(b: EndElementBuilder<'a>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for EndElementBuilder<'a>
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