pub enum XMLWriterWrapper<'a, W> {
Owned(Writer<W>),
Ref(&'a mut Writer<W>),
}Expand description
A wrapper for either an owned or mutable reference to a quick_xml::Writer
Variants§
Owned(Writer<W>)
Owned quick_xml::Writer
Ref(&'a mut Writer<W>)
Mutable Reference to quick_xml::Writer
Implementations§
source§impl<'a, W> XMLWriterWrapper<'a, W>
impl<'a, W> XMLWriterWrapper<'a, W>
sourcepub fn to_xml_writer(&'a mut self) -> &mut Writer<W>
pub fn to_xml_writer(&'a mut self) -> &mut Writer<W>
Return a mutable reference to a quick_xml::Writer
Trait Implementations§
source§impl<'a, W> From<&'a mut Writer<W>> for XMLWriterWrapper<'a, W>
impl<'a, W> From<&'a mut Writer<W>> for XMLWriterWrapper<'a, W>
Auto Trait Implementations§
impl<'a, W> Freeze for XMLWriterWrapper<'a, W>where
W: Freeze,
impl<'a, W> RefUnwindSafe for XMLWriterWrapper<'a, W>where
W: RefUnwindSafe,
impl<'a, W> Send for XMLWriterWrapper<'a, W>where
W: Send,
impl<'a, W> Sync for XMLWriterWrapper<'a, W>where
W: Sync,
impl<'a, W> Unpin for XMLWriterWrapper<'a, W>where
W: Unpin,
impl<'a, W> !UnwindSafe for XMLWriterWrapper<'a, W>
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more