pub struct XmlPrinter<W: Write> { /* private fields */ }Expand description
XML printer that outputs node trees.
Implementations§
Source§impl<W: Write> XmlPrinter<W>
impl<W: Write> XmlPrinter<W>
Sourcepub fn with_options(writer: W, options: XmlPrinterOptions) -> Self
pub fn with_options(writer: W, options: XmlPrinterOptions) -> Self
Creates a new XML printer with the given options.
Sourcepub fn print_fragment(&mut self, root: &NodeRef) -> Result<()>
pub fn print_fragment(&mut self, root: &NodeRef) -> Result<()>
Prints a node tree as a fragment (no XML declaration).
Auto Trait Implementations§
impl<W> Freeze for XmlPrinter<W>where
W: Freeze,
impl<W> RefUnwindSafe for XmlPrinter<W>where
W: RefUnwindSafe,
impl<W> Send for XmlPrinter<W>where
W: Send,
impl<W> Sync for XmlPrinter<W>where
W: Sync,
impl<W> Unpin for XmlPrinter<W>where
W: Unpin,
impl<W> UnwindSafe for XmlPrinter<W>where
W: UnwindSafe,
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