[−][src]Enum sxd_document::dom::ChildOfElement
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]
fn eq(&self, other: &ChildOfElement<'d>) -> bool
[src]
fn ne(&self, other: &ChildOfElement<'d>) -> bool
[src]
impl<'d> From<Element<'d>> for ChildOfElement<'d>
[src]
fn from(v: Element<'d>) -> ChildOfElement<'d>
[src]
impl<'d> From<Text<'d>> for ChildOfElement<'d>
[src]
fn from(v: Text<'d>) -> ChildOfElement<'d>
[src]
impl<'d> From<Comment<'d>> for ChildOfElement<'d>
[src]
fn from(v: Comment<'d>) -> ChildOfElement<'d>
[src]
impl<'d> From<ProcessingInstruction<'d>> for ChildOfElement<'d>
[src]
fn from(v: ProcessingInstruction<'d>) -> ChildOfElement<'d>
[src]
impl<'a, 'd> From<&'a Element<'d>> for ChildOfElement<'d>
[src]
fn from(v: &'a Element<'d>) -> ChildOfElement<'d>
[src]
impl<'a, 'd> From<&'a Text<'d>> for ChildOfElement<'d>
[src]
fn from(v: &'a Text<'d>) -> ChildOfElement<'d>
[src]
impl<'a, 'd> From<&'a Comment<'d>> for ChildOfElement<'d>
[src]
fn from(v: &'a Comment<'d>) -> ChildOfElement<'d>
[src]
impl<'a, 'd> From<&'a ProcessingInstruction<'d>> for ChildOfElement<'d>
[src]
fn from(v: &'a ProcessingInstruction<'d>) -> ChildOfElement<'d>
[src]
impl<'d> From<ChildOfRoot<'d>> for ChildOfElement<'d>
[src]
fn from(v: ChildOfRoot<'d>) -> ChildOfElement<'d>
[src]
impl<'d> Clone for ChildOfElement<'d>
[src]
fn clone(&self) -> 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]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,