Enum rdom::node::contents::NodeType[][src]

pub enum NodeType {
    Element,
    Attribute,
    Text,
    CDataSection,
    ProcessingInstruction,
    Comment,
    Document,
    DocumentType,
    DocumentFragment,
}

Specifies the type of the node. See https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeType

Variants

Element

A node type corresponding to Element nodes

Attribute

A node type corresponding to Attribute nodes

Text

A node type corresponding to Text nodes

CDataSection

A node type corresponding to CDataSection nodes

ProcessingInstruction

A node type corresponding to ProcessingInstruction nodes

Comment

A node type corresponding to Comment nodes

Document

A node type corresponding to Document nodes

DocumentType

A node type corresponding to DocumentType nodes

DocumentFragment

A node type corresponding to DocumentFragment nodes

Implementations

impl NodeType[src]

pub fn get_node_number(&self) -> isize[src]

Returns the number corresponding to the node type per https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeType#node_type_constants

Auto Trait Implementations

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, 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.