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