pub struct Serializer<'xml, W: Write + ?Sized> { /* private fields */ }
Implementations§
Source§impl<'xml, W: Write + ?Sized> Serializer<'xml, W>
impl<'xml, W: Write + ?Sized> Serializer<'xml, W>
pub fn new(output: &'xml mut W) -> Self
pub fn write_start( &mut self, name: &str, ns: &str, ) -> Result<Option<&'static str>, Error>
pub fn write_attr<V: ToXml + ?Sized>( &mut self, name: &str, ns: &str, value: &V, ) -> Result<(), Error>
pub fn write_str<V: Display + ?Sized>(&mut self, value: &V) -> Result<(), Error>
pub fn end_start(&mut self) -> Result<(), Error>
pub fn end_empty(&mut self) -> Result<(), Error>
pub fn write_close( &mut self, prefix: Option<&str>, name: &str, ) -> Result<(), Error>
pub fn push<const N: usize>( &mut self, new: Context<N>, ) -> Result<Context<N>, Error>
pub fn pop<const N: usize>(&mut self, old: Context<N>)
pub fn prefix(&self, ns: &str) -> Option<&'static str>
pub fn default_ns(&self) -> &'static str
Auto Trait Implementations§
impl<'xml, W> Freeze for Serializer<'xml, W>where
W: ?Sized,
impl<'xml, W> RefUnwindSafe for Serializer<'xml, W>where
W: RefUnwindSafe + ?Sized,
impl<'xml, W> Send for Serializer<'xml, W>
impl<'xml, W> Sync for Serializer<'xml, W>
impl<'xml, W> Unpin for Serializer<'xml, W>where
W: ?Sized,
impl<'xml, W> !UnwindSafe for Serializer<'xml, 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