pub struct Document<'d> { /* private fields */ }Expand description
An XML document
Implementations§
Source§impl<'d> Document<'d>
impl<'d> Document<'d>
pub fn root(self) -> Root<'d>
pub fn create_element<'n, N>(self, name: N) -> Element<'d>
pub fn create_text(self, text: &str) -> Text<'d>
pub fn create_comment(self, text: &str) -> Comment<'d>
pub fn create_processing_instruction( self, target: &str, value: Option<&str>, ) -> ProcessingInstruction<'d>
Trait Implementations§
impl<'d> Copy for Document<'d>
Auto Trait Implementations§
impl<'d> Freeze for Document<'d>
impl<'d> !RefUnwindSafe for Document<'d>
impl<'d> !Send for Document<'d>
impl<'d> !Sync for Document<'d>
impl<'d> Unpin for Document<'d>
impl<'d> !UnwindSafe for Document<'d>
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