Enum sxd_document::dom::ChildOfRoot
[−]
[src]
pub enum ChildOfRoot<'d> {
Element(Element<'d>),
Comment(Comment<'d>),
ProcessingInstruction(ProcessingInstruction<'d>),
}Nodes that may occur as a child of the root node
Variants
Element(Element<'d>)Comment(Comment<'d>)ProcessingInstruction(ProcessingInstruction<'d>)Methods
impl<'d> ChildOfRoot<'d>[src]
fn element(self) -> Option<Element<'d>>
fn comment(self) -> Option<Comment<'d>>
fn processing_instruction(self) -> Option<ProcessingInstruction<'d>>
Trait Implementations
impl<'d> Debug for ChildOfRoot<'d>[src]
impl<'d> Copy for ChildOfRoot<'d>[src]
impl<'d> Clone for ChildOfRoot<'d>[src]
fn clone(&self) -> ChildOfRoot<'d>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl<'d> PartialEq for ChildOfRoot<'d>[src]
fn eq(&self, __arg_0: &ChildOfRoot<'d>) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &ChildOfRoot<'d>) -> bool
This method tests for !=.
impl<'d> From<Element<'d>> for ChildOfRoot<'d>[src]
fn from(v: Element<'d>) -> ChildOfRoot<'d>
Performs the conversion.
impl<'d> From<Comment<'d>> for ChildOfRoot<'d>[src]
fn from(v: Comment<'d>) -> ChildOfRoot<'d>
Performs the conversion.
impl<'d> From<ProcessingInstruction<'d>> for ChildOfRoot<'d>[src]
fn from(v: ProcessingInstruction<'d>) -> ChildOfRoot<'d>
Performs the conversion.