[−][src]Struct minidom_writer::ElementWriter
Writer for Element
.
Methods
impl<W> ElementWriter<W> where
W: Write,
[src]
W: Write,
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]
Auto Trait Implementations
impl<W> RefUnwindSafe for ElementWriter<W> where
W: RefUnwindSafe,
W: RefUnwindSafe,
impl<W> Send for ElementWriter<W> where
W: Send,
W: Send,
impl<W> Sync for ElementWriter<W> where
W: Sync,
W: Sync,
impl<W> Unpin for ElementWriter<W> where
W: Unpin,
W: Unpin,
impl<W> UnwindSafe for ElementWriter<W> where
W: UnwindSafe,
W: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,