pub struct EndElementBuilder<'a> { /* private fields */ }

Implementations§

source§

impl<'a> EndElementBuilder<'a>

A builder for a closing element event.

source

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>

source§

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> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.