Enum sxd_document::dom::ChildOfElement
[−]
[src]
pub enum ChildOfElement<'d> {
Element(Element<'d>),
Text(Text<'d>),
Comment(Comment<'d>),
ProcessingInstruction(ProcessingInstruction<'d>),
}Nodes that may occur as a child of an element node
Variants
Element(Element<'d>)Text(Text<'d>)Comment(Comment<'d>)ProcessingInstruction(ProcessingInstruction<'d>)Methods
impl<'d> ChildOfElement<'d>[src]
fn element(self) -> Option<Element<'d>>
fn text(self) -> Option<Text<'d>>
fn comment(self) -> Option<Comment<'d>>
fn processing_instruction(self) -> Option<ProcessingInstruction<'d>>
Trait Implementations
impl<'d> Debug for ChildOfElement<'d>[src]
impl<'d> Copy for ChildOfElement<'d>[src]
impl<'d> Clone for ChildOfElement<'d>[src]
fn clone(&self) -> ChildOfElement<'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 ChildOfElement<'d>[src]
fn eq(&self, __arg_0: &ChildOfElement<'d>) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &ChildOfElement<'d>) -> bool
This method tests for !=.
impl<'d> From<Element<'d>> for ChildOfElement<'d>[src]
fn from(v: Element<'d>) -> ChildOfElement<'d>
Performs the conversion.
impl<'d> From<Text<'d>> for ChildOfElement<'d>[src]
fn from(v: Text<'d>) -> ChildOfElement<'d>
Performs the conversion.
impl<'d> From<Comment<'d>> for ChildOfElement<'d>[src]
fn from(v: Comment<'d>) -> ChildOfElement<'d>
Performs the conversion.
impl<'d> From<ProcessingInstruction<'d>> for ChildOfElement<'d>[src]
fn from(v: ProcessingInstruction<'d>) -> ChildOfElement<'d>
Performs the conversion.
impl<'d> From<ChildOfRoot<'d>> for ChildOfElement<'d>[src]
fn from(v: ChildOfRoot<'d>) -> ChildOfElement<'d>
Performs the conversion.