pub struct Writer<W> { /* private fields */ }Expand description
Deterministic UTF-8 XML writer for generated markup.
Implementations§
Source§impl<W: Write> Writer<W>
impl<W: Write> Writer<W>
Sourcepub fn start<'a>(
&mut self,
name: &str,
attributes: impl IntoIterator<Item = (&'a str, &'a str)>,
) -> Result<()>
pub fn start<'a>( &mut self, name: &str, attributes: impl IntoIterator<Item = (&'a str, &'a str)>, ) -> Result<()>
Write an opening tag and escaped attributes.
Sourcepub fn empty<'a>(
&mut self,
name: &str,
attributes: impl IntoIterator<Item = (&'a str, &'a str)>,
) -> Result<()>
pub fn empty<'a>( &mut self, name: &str, attributes: impl IntoIterator<Item = (&'a str, &'a str)>, ) -> Result<()>
Write an empty-element tag and escaped attributes.
Sourcepub fn into_inner(self) -> W
pub fn into_inner(self) -> W
Return the wrapped sink.
Auto Trait Implementations§
impl<W> Freeze for Writer<W>where
W: Freeze,
impl<W> RefUnwindSafe for Writer<W>where
W: RefUnwindSafe,
impl<W> Send for Writer<W>where
W: Send,
impl<W> Sync for Writer<W>where
W: Sync,
impl<W> Unpin for Writer<W>where
W: Unpin,
impl<W> UnsafeUnpin for Writer<W>where
W: UnsafeUnpin,
impl<W> UnwindSafe for Writer<W>where
W: UnwindSafe,
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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