pub struct XmlEmitter { /* private fields */ }Expand description
XML-Emitter.
Implementations§
Source§impl XmlEmitter
impl XmlEmitter
Sourcepub fn declaration(&mut self)
pub fn declaration(&mut self)
<?xml version="1.0" encoding="UTF-8"?>.
Sourcepub fn start_element(
&mut self,
name: &str,
attrs: &[(&str, &str)],
) -> Result<(), EmitError>
pub fn start_element( &mut self, name: &str, attrs: &[(&str, &str)], ) -> Result<(), EmitError>
Sourcepub fn end_element(&mut self) -> Result<(), EmitError>
pub fn end_element(&mut self) -> Result<(), EmitError>
Sourcepub fn empty_element(
&mut self,
name: &str,
attrs: &[(&str, &str)],
) -> Result<(), EmitError>
pub fn empty_element( &mut self, name: &str, attrs: &[(&str, &str)], ) -> Result<(), EmitError>
Selbstschliessendes Element <name attr="..." />.
§Errors
InvalidTagName wenn der Tag-Name ungueltig.
Trait Implementations§
Source§impl Clone for XmlEmitter
impl Clone for XmlEmitter
Source§fn clone(&self) -> XmlEmitter
fn clone(&self) -> XmlEmitter
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for XmlEmitter
impl Debug for XmlEmitter
Source§impl Default for XmlEmitter
impl Default for XmlEmitter
Source§fn default() -> XmlEmitter
fn default() -> XmlEmitter
Returns the “default value” for a type. Read more
Source§impl PartialEq for XmlEmitter
impl PartialEq for XmlEmitter
Source§fn eq(&self, other: &XmlEmitter) -> bool
fn eq(&self, other: &XmlEmitter) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for XmlEmitter
impl StructuralPartialEq for XmlEmitter
Auto Trait Implementations§
impl Freeze for XmlEmitter
impl RefUnwindSafe for XmlEmitter
impl Send for XmlEmitter
impl Sync for XmlEmitter
impl Unpin for XmlEmitter
impl UnsafeUnpin for XmlEmitter
impl UnwindSafe for XmlEmitter
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