[][src]Struct minidom_writer::ElementWriter

pub struct ElementWriter<W> where
    W: Write
{ /* fields omitted */ }

Writer for Element.

Methods

impl<W> ElementWriter<W> where
    W: Write
[src]

pub fn plain(write: W) -> Self[src]

Creates a ElementWriter from an instance of Write.

This writer writes the Element with no spaces or new lines.

<?xml version="1.0" encoding="UTF-8"?><todos><todo>Write documentation</todo><todo>Release 'minidom_writer'</todo></todos>

pub fn pretty(write: W) -> Self[src]

Creates a ElementWriter from an instance of Write.

This writer writes the Element with indentation.

<?xml version="1.0" encoding="UTF-8"?>
<todos>
    <todo>Write documentation</todo>
    <todo>Release 'minidom_writer'</todo>
</todos>

pub fn into_inner(self) -> W[src]

Consumes this ElementWriter, returning the underlying Write.

pub fn write(&mut self, element: &Element) -> Result<(), Error>[src]

Writes the Element into an implementation of Write.

Auto Trait Implementations

impl<W> RefUnwindSafe for ElementWriter<W> where
    W: RefUnwindSafe

impl<W> Send for ElementWriter<W> where
    W: Send

impl<W> Sync for ElementWriter<W> where
    W: Sync

impl<W> Unpin for ElementWriter<W> where
    W: Unpin

impl<W> UnwindSafe for ElementWriter<W> where
    W: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.