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
A node type corresponding to Element nodes
A node type corresponding to Attribute nodes
A node type corresponding to Text nodes
A node type corresponding to CDataSection nodes
A node type corresponding to ProcessingInstruction nodes
A node type corresponding to Comment nodes
A node type corresponding to Document nodes
A node type corresponding to DocumentType nodes
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
impl RefUnwindSafe for NodeType
impl Send for NodeType
impl Sync for NodeType
impl Unpin for NodeType
impl UnwindSafe for NodeType
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for 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.
pub 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>,