Enum sxd_document::dom::ChildOfRoot
source · pub enum ChildOfRoot<'d> {
Element(Element<'d>),
Comment(Comment<'d>),
ProcessingInstruction(ProcessingInstruction<'d>),
}Expand description
Nodes that may occur as a child of the root node
Variants§
Implementations§
source§impl<'d> ChildOfRoot<'d>
impl<'d> ChildOfRoot<'d>
Trait Implementations§
source§impl<'d> Clone for ChildOfRoot<'d>
impl<'d> Clone for ChildOfRoot<'d>
source§fn clone(&self) -> ChildOfRoot<'d>
fn clone(&self) -> ChildOfRoot<'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 ChildOfRoot<'d>
impl<'d> Debug for ChildOfRoot<'d>
source§impl<'a, 'd> From<&'a Comment<'d>> for ChildOfRoot<'d>
impl<'a, 'd> From<&'a Comment<'d>> for ChildOfRoot<'d>
source§fn from(v: &'a Comment<'d>) -> ChildOfRoot<'d>
fn from(v: &'a Comment<'d>) -> ChildOfRoot<'d>
Converts to this type from the input type.
source§impl<'a, 'd> From<&'a Element<'d>> for ChildOfRoot<'d>
impl<'a, 'd> From<&'a Element<'d>> for ChildOfRoot<'d>
source§fn from(v: &'a Element<'d>) -> ChildOfRoot<'d>
fn from(v: &'a Element<'d>) -> ChildOfRoot<'d>
Converts to this type from the input type.
source§impl<'a, 'd> From<&'a ProcessingInstruction<'d>> for ChildOfRoot<'d>
impl<'a, 'd> From<&'a ProcessingInstruction<'d>> for ChildOfRoot<'d>
source§fn from(v: &'a ProcessingInstruction<'d>) -> ChildOfRoot<'d>
fn from(v: &'a ProcessingInstruction<'d>) -> ChildOfRoot<'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 ChildOfRoot<'d>
impl<'d> From<Comment<'d>> for ChildOfRoot<'d>
source§fn from(v: Comment<'d>) -> ChildOfRoot<'d>
fn from(v: Comment<'d>) -> ChildOfRoot<'d>
Converts to this type from the input type.
source§impl<'d> From<Element<'d>> for ChildOfRoot<'d>
impl<'d> From<Element<'d>> for ChildOfRoot<'d>
source§fn from(v: Element<'d>) -> ChildOfRoot<'d>
fn from(v: Element<'d>) -> ChildOfRoot<'d>
Converts to this type from the input type.
source§impl<'d> From<ProcessingInstruction<'d>> for ChildOfRoot<'d>
impl<'d> From<ProcessingInstruction<'d>> for ChildOfRoot<'d>
source§fn from(v: ProcessingInstruction<'d>) -> ChildOfRoot<'d>
fn from(v: ProcessingInstruction<'d>) -> ChildOfRoot<'d>
Converts to this type from the input type.