[−][src]Enum marked::NodeData
The node kind and payload data associated with that kind.
Variants
A place holder value. Used temporarily while filtering and for nodes that have been removed.
The document node which contains all other nodes.
DocType(DocumentType)
The document type definition.
Text(StrTendril)
Character data content.
Comment(StrTendril)
A comment.
Elem(Element)
An element.
A processing instruction node.
Implementations
impl NodeData
[src]
pub fn as_element(&self) -> Option<&Element>
[src]
Return Element
is this is an element.
pub fn as_element_mut(&mut self) -> Option<&mut Element>
[src]
Return mutable Element
reference if this is an element.
pub fn as_text(&self) -> Option<&StrTendril>
[src]
Return text (char data) if this is a text node.
pub fn as_text_mut(&mut self) -> Option<&mut StrTendril>
[src]
Return mutable text (char data) reference if this is a text node.
pub fn attr<LN>(&self, lname: LN) -> Option<&StrTendril> where
LN: Into<LocalName>,
[src]
LN: Into<LocalName>,
Return attribute value by given local attribute name, if this is an element with that attribute present.
pub fn is_elem<LN>(&self, lname: LN) -> bool where
LN: Into<LocalName>,
[src]
LN: Into<LocalName>,
Return true if this Node is an element with the given local name.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for NodeData
[src]
impl !Send for NodeData
[src]
impl !Sync for NodeData
[src]
impl Unpin for NodeData
[src]
impl UnwindSafe for NodeData
[src]
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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>,