Enum sxd_document::dom::ChildOfElement
source · pub enum ChildOfElement<'d> {
Element(Element<'d>),
Text(Text<'d>),
Comment(Comment<'d>),
ProcessingInstruction(ProcessingInstruction<'d>),
}
Expand description
Nodes that may occur as a child of an element node
Variants§
Element(Element<'d>)
Text(Text<'d>)
Comment(Comment<'d>)
ProcessingInstruction(ProcessingInstruction<'d>)
Implementations§
Trait Implementations§
source§impl<'d> Clone for ChildOfElement<'d>
impl<'d> Clone for ChildOfElement<'d>
source§fn clone(&self) -> ChildOfElement<'d>
fn clone(&self) -> ChildOfElement<'d>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'d> Debug for ChildOfElement<'d>
impl<'d> Debug for ChildOfElement<'d>
source§impl<'a, 'd> From<&'a Comment<'d>> for ChildOfElement<'d>
impl<'a, 'd> From<&'a Comment<'d>> for ChildOfElement<'d>
source§fn from(v: &'a Comment<'d>) -> ChildOfElement<'d>
fn from(v: &'a Comment<'d>) -> ChildOfElement<'d>
Converts to this type from the input type.
source§impl<'a, 'd> From<&'a Element<'d>> for ChildOfElement<'d>
impl<'a, 'd> From<&'a Element<'d>> for ChildOfElement<'d>
source§fn from(v: &'a Element<'d>) -> ChildOfElement<'d>
fn from(v: &'a Element<'d>) -> ChildOfElement<'d>
Converts to this type from the input type.
source§impl<'a, 'd> From<&'a ProcessingInstruction<'d>> for ChildOfElement<'d>
impl<'a, 'd> From<&'a ProcessingInstruction<'d>> for ChildOfElement<'d>
source§fn from(v: &'a ProcessingInstruction<'d>) -> ChildOfElement<'d>
fn from(v: &'a ProcessingInstruction<'d>) -> ChildOfElement<'d>
Converts to this type from the input type.
source§impl<'a, 'd> From<&'a Text<'d>> for ChildOfElement<'d>
impl<'a, 'd> From<&'a Text<'d>> for ChildOfElement<'d>
source§fn from(v: &'a Text<'d>) -> ChildOfElement<'d>
fn from(v: &'a Text<'d>) -> ChildOfElement<'d>
Converts to this type from the input type.
source§impl<'d> From<ChildOfRoot<'d>> for ChildOfElement<'d>
impl<'d> From<ChildOfRoot<'d>> for ChildOfElement<'d>
source§fn from(v: ChildOfRoot<'d>) -> ChildOfElement<'d>
fn from(v: ChildOfRoot<'d>) -> ChildOfElement<'d>
Converts to this type from the input type.
source§impl<'d> From<Comment<'d>> for ChildOfElement<'d>
impl<'d> From<Comment<'d>> for ChildOfElement<'d>
source§fn from(v: Comment<'d>) -> ChildOfElement<'d>
fn from(v: Comment<'d>) -> ChildOfElement<'d>
Converts to this type from the input type.
source§impl<'d> From<Element<'d>> for ChildOfElement<'d>
impl<'d> From<Element<'d>> for ChildOfElement<'d>
source§fn from(v: Element<'d>) -> ChildOfElement<'d>
fn from(v: Element<'d>) -> ChildOfElement<'d>
Converts to this type from the input type.
source§impl<'d> From<ProcessingInstruction<'d>> for ChildOfElement<'d>
impl<'d> From<ProcessingInstruction<'d>> for ChildOfElement<'d>
source§fn from(v: ProcessingInstruction<'d>) -> ChildOfElement<'d>
fn from(v: ProcessingInstruction<'d>) -> ChildOfElement<'d>
Converts to this type from the input type.
source§impl<'d> From<Text<'d>> for ChildOfElement<'d>
impl<'d> From<Text<'d>> for ChildOfElement<'d>
source§fn from(v: Text<'d>) -> ChildOfElement<'d>
fn from(v: Text<'d>) -> ChildOfElement<'d>
Converts to this type from the input type.