[][src]Enum sxd_document::dom::ChildOfElement

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]

pub fn element(self) -> Option<Element<'d>>[src]

pub fn text(self) -> Option<Text<'d>>[src]

pub fn comment(self) -> Option<Comment<'d>>[src]

pub fn processing_instruction(self) -> Option<ProcessingInstruction<'d>>[src]

Trait Implementations

impl<'d> PartialEq<ChildOfElement<'d>> for ChildOfElement<'d>[src]

impl<'d> From<Element<'d>> for ChildOfElement<'d>[src]

impl<'d> From<Text<'d>> for ChildOfElement<'d>[src]

impl<'d> From<Comment<'d>> for ChildOfElement<'d>[src]

impl<'d> From<ProcessingInstruction<'d>> for ChildOfElement<'d>[src]

impl<'a, 'd> From<&'a Element<'d>> for ChildOfElement<'d>[src]

impl<'a, 'd> From<&'a Text<'d>> for ChildOfElement<'d>[src]

impl<'a, 'd> From<&'a Comment<'d>> for ChildOfElement<'d>[src]

impl<'a, 'd> From<&'a ProcessingInstruction<'d>> for ChildOfElement<'d>[src]

impl<'d> From<ChildOfRoot<'d>> for ChildOfElement<'d>[src]

impl<'d> Clone for ChildOfElement<'d>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<'d> Copy for ChildOfElement<'d>[src]

impl<'d> Debug for ChildOfElement<'d>[src]

Auto Trait Implementations

impl<'d> !Send for ChildOfElement<'d>

impl<'d> !Sync for ChildOfElement<'d>

Blanket Implementations

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]