Enum xpather::value::Node[][src]

pub enum Node {
    Root(NodeHandle),
    DocType(WeakNodeHandle),
    Element(WeakNodeHandle),
    Attribute(Attribute),
    Text(WeakNodeHandle),
    Comment(WeakNodeHandle),
    ProcessingInstruction(WeakNodeHandle),
    Namespace(WeakNodeHandle),
}

Variants

Attribute(Attribute)
ProcessingInstruction(WeakNodeHandle)
Namespace(WeakNodeHandle)

Implementations

impl Node[src]

pub fn enum_name(&self) -> String[src]

pub fn is_root(&self) -> bool[src]

pub fn is_namespace(&self) -> bool[src]

pub fn is_element(&self) -> bool[src]

pub fn is_attribute(&self) -> bool[src]

pub fn is_text(&self) -> bool[src]

pub fn is_comment(&self) -> bool[src]

pub fn is_processing_instruction(&self) -> bool[src]

pub fn value(&self) -> Result<Value>[src]

pub fn as_simple_html(&self) -> Option<String>[src]

pub fn attribute(&self) -> Option<&Attribute>[src]

pub fn parent(&self) -> Option<Node>[src]

pub fn children(&self) -> Vec<Node>[src]

pub fn name(&self) -> Option<QualName>[src]

pub fn target(&self) -> Option<String>[src]

pub fn prefix(&self) -> String[src]

pub fn inner_weak(&self) -> Option<&WeakNodeHandle>[src]

pub fn evaluate_from<S: Into<String>>(
    &self,
    search: S,
    doc: &Document
) -> Result<Value>
[src]

Trait Implementations

impl Clone for Node[src]

impl Debug for Node[src]

impl From<&'_ Rc<Node>> for Node[src]

impl From<Rc<Node>> for Node[src]

impl PartialEq<Node> for Node[src]

Auto Trait Implementations

impl !RefUnwindSafe for Node

impl !Send for Node

impl !Sync for Node

impl Unpin for Node

impl !UnwindSafe for Node

Blanket Implementations

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

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

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.