pub enum XMLNode {
Element(Element),
Comment(String),
CData(String),
Text(String),
ProcessingInstruction(String, Option<String>),
}
Variants§
Element(Element)
Comment(String)
CData(String)
Text(String)
ProcessingInstruction(String, Option<String>)
Implementations§
Source§impl XMLNode
impl XMLNode
pub fn as_element(&self) -> Option<&Element>
pub fn as_mut_element(&mut self) -> Option<&mut Element>
pub fn as_comment(&self) -> Option<&str>
pub fn as_cdata(&self) -> Option<&str>
pub fn as_text(&self) -> Option<&str>
pub fn as_processing_instruction(&self) -> Option<(&str, Option<&str>)>
Trait Implementations§
impl Eq for XMLNode
impl StructuralPartialEq for XMLNode
Auto Trait Implementations§
impl Freeze for XMLNode
impl RefUnwindSafe for XMLNode
impl Send for XMLNode
impl Sync for XMLNode
impl Unpin for XMLNode
impl UnwindSafe for XMLNode
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