pub struct LocaXmlWriter<W> { /* private fields */ }Expand description
Writer for XML localization files.
Implementations§
Source§impl<W: Write> LocaXmlWriter<W>
impl<W: Write> LocaXmlWriter<W>
Sourcepub fn new_compact(writer: W) -> Self
pub fn new_compact(writer: W) -> Self
Creates a new XML writer without indentation.
Sourcepub fn write(&mut self, resource: &LocaResource) -> Result<()>
pub fn write(&mut self, resource: &LocaResource) -> Result<()>
Writes the localization resource as XML.
Auto Trait Implementations§
impl<W> Freeze for LocaXmlWriter<W>where
W: Freeze,
impl<W> RefUnwindSafe for LocaXmlWriter<W>where
W: RefUnwindSafe,
impl<W> Send for LocaXmlWriter<W>where
W: Send,
impl<W> Sync for LocaXmlWriter<W>where
W: Sync,
impl<W> Unpin for LocaXmlWriter<W>where
W: Unpin,
impl<W> UnwindSafe for LocaXmlWriter<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