pub struct XmlTextWriter { /* private fields */ }Expand description
xmlTextWriter writing into an in-memory buffer.
Implementations§
Source§impl XmlTextWriter
impl XmlTextWriter
Sourcepub fn xml_new_text_writer_memory() -> Self
pub fn xml_new_text_writer_memory() -> Self
xmlNewTextWriterMemory.
pub fn set_indent(&mut self, indent: bool)
Sourcepub fn start_document(
&mut self,
version: Option<&str>,
encoding: Option<&str>,
standalone: Option<&str>,
) -> Result<(), String>
pub fn start_document( &mut self, version: Option<&str>, encoding: Option<&str>, standalone: Option<&str>, ) -> Result<(), String>
xmlTextWriterStartDocument.
Sourcepub fn start_element_ns(
&mut self,
prefix: Option<&str>,
name: &str,
ns_uri: Option<&str>,
) -> Result<(), String>
pub fn start_element_ns( &mut self, prefix: Option<&str>, name: &str, ns_uri: Option<&str>, ) -> Result<(), String>
xmlTextWriterStartElementNS.
Sourcepub fn write_attribute(&mut self, name: &str, value: &str) -> Result<(), String>
pub fn write_attribute(&mut self, name: &str, value: &str) -> Result<(), String>
xmlTextWriterWriteAttribute.
Sourcepub fn write_attribute_ns(
&mut self,
prefix: Option<&str>,
name: &str,
_ns_uri: Option<&str>,
value: &str,
) -> Result<(), String>
pub fn write_attribute_ns( &mut self, prefix: Option<&str>, name: &str, _ns_uri: Option<&str>, value: &str, ) -> Result<(), String>
xmlTextWriterWriteAttributeNS.
Sourcepub fn write_comment(&mut self, content: &str) -> Result<(), String>
pub fn write_comment(&mut self, content: &str) -> Result<(), String>
xmlTextWriterWriteComment.
Sourcepub fn write_pi(
&mut self,
target: &str,
data: Option<&str>,
) -> Result<(), String>
pub fn write_pi( &mut self, target: &str, data: Option<&str>, ) -> Result<(), String>
xmlTextWriterWritePI.
Sourcepub fn end_element(&mut self) -> Result<(), String>
pub fn end_element(&mut self) -> Result<(), String>
xmlTextWriterEndElement.
Sourcepub fn end_document(&mut self) -> Result<(), String>
pub fn end_document(&mut self) -> Result<(), String>
xmlTextWriterEndDocument.
pub fn into_bytes(self) -> Vec<u8> ⓘ
pub fn as_str(&self) -> &str
Trait Implementations§
Auto Trait Implementations§
impl Freeze for XmlTextWriter
impl RefUnwindSafe for XmlTextWriter
impl Send for XmlTextWriter
impl Sync for XmlTextWriter
impl Unpin for XmlTextWriter
impl UnsafeUnpin for XmlTextWriter
impl UnwindSafe for XmlTextWriter
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