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 duplicate 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.
Source§impl<'d> PartialEq for ChildOfRoot<'d>
impl<'d> PartialEq for ChildOfRoot<'d>
impl<'d> Copy for ChildOfRoot<'d>
impl<'d> StructuralPartialEq for ChildOfRoot<'d>
Auto Trait Implementations§
impl<'d> Freeze for ChildOfRoot<'d>
impl<'d> !RefUnwindSafe for ChildOfRoot<'d>
impl<'d> !Send for ChildOfRoot<'d>
impl<'d> !Sync for ChildOfRoot<'d>
impl<'d> Unpin for ChildOfRoot<'d>
impl<'d> !UnwindSafe for ChildOfRoot<'d>
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