pub struct Element<'a, W: 'a> { /* private fields */ }
Expand description
XML element
Implementations§
Source§impl<'a, W: Write + 'a> Element<'a, W>
impl<'a, W: Write + 'a> Element<'a, W>
Sourcepub fn new<S>(out: &'a mut EventWriter<W>, name: S) -> Self
pub fn new<S>(out: &'a mut EventWriter<W>, name: S) -> Self
Returns a XML element with the given name
that will be written to
out
.
Sourcepub fn write<F>(self, f: F) -> Result<(), Error>
pub fn write<F>(self, f: F) -> Result<(), Error>
Writes this element and invokes f
to fill in its children.
Auto Trait Implementations§
impl<'a, W> Freeze for Element<'a, W>
impl<'a, W> RefUnwindSafe for Element<'a, W>where
W: RefUnwindSafe,
impl<'a, W> Send for Element<'a, W>where
W: Send,
impl<'a, W> Sync for Element<'a, W>where
W: Sync,
impl<'a, W> Unpin for Element<'a, W>
impl<'a, W> !UnwindSafe for Element<'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