Struct libxml::readonly::RoNode [−][src]
Lightweight struct for read-only parallel processing
Implementations
impl RoNode
[src][−]
pub fn node_ptr(&self) -> xmlNodePtr
[src][−]
Immutably borrows the underlying libxml2 xmlNodePtr
pointer
pub fn get_next_sibling(self) -> Option<RoNode>
[src][−]
Returns the next sibling if it exists
pub fn get_prev_sibling(self) -> Option<RoNode>
[src][−]
Returns the previous sibling if it exists
pub fn get_first_child(self) -> Option<RoNode>
[src][−]
Returns the first child if it exists
pub fn get_last_child(self) -> Option<RoNode>
[src][−]
Returns the last child if it exists
pub fn get_next_element_sibling(&self) -> Option<RoNode>
[src][−]
Returns the next element sibling if it exists
pub fn get_prev_element_sibling(&self) -> Option<RoNode>
[src][−]
Returns the previous element sibling if it exists
pub fn get_first_element_child(self) -> Option<RoNode>
[src][−]
Returns the first element child if it exists
pub fn get_last_element_child(&self) -> Option<RoNode>
[src][−]
Returns the last element child if it exists
pub fn get_child_nodes(self) -> Vec<RoNode>
[src][−]
Returns all child nodes of the given node as a vector
pub fn get_child_elements(self) -> Vec<RoNode>
[src][−]
Returns all child elements of the given node as a vector
pub fn get_parent(self) -> Option<RoNode>
[src][−]
Returns the parent if it exists
pub fn get_type(self) -> Option<NodeType>
[src][−]
Get the node type
pub fn is_text_node(self) -> bool
[src][−]
Returns true iff it is a text node
pub fn is_element_node(self) -> bool
[src][−]
Checks if the given node is an Element
pub fn is_null(self) -> bool
[src][−]
Checks if the underlying libxml2 pointer is NULL
pub fn get_name(self) -> String
[src][−]
Returns the name of the node (empty string if name pointer is NULL
)
pub fn get_content(self) -> String
[src][−]
Returns the content of the node (assumes UTF-8 XML document)
pub fn get_property(self, name: &str) -> Option<String>
[src][−]
Returns the value of property name
pub fn get_property_ns(self, name: &str, ns: &str) -> Option<String>
[src][−]
Returns the value of property name
in namespace ns
pub fn get_property_node(self, name: &str) -> Option<RoNode>
[src][−]
Return an attribute as a Node
struct of type AttributeNode
pub fn get_attribute(self, name: &str) -> Option<String>
[src][−]
Alias for get_property
pub fn get_attribute_ns(self, name: &str, ns: &str) -> Option<String>
[src][−]
Alias for get_property_ns
pub fn get_attribute_node(self, name: &str) -> Option<RoNode>
[src][−]
Alias for get_property_node
pub fn get_properties(self) -> HashMap<String, String>
[src][−]
Get a copy of the attributes of this node
pub fn get_attributes(self) -> HashMap<String, String>
[src][−]
Alias for get_properties
pub fn get_namespace(self) -> Option<Namespace>
[src][−]
Gets the active namespace associated of this node
pub fn get_namespaces(self, doc: &Document) -> Vec<Namespace>
[src][−]
Gets a list of namespaces associated with this node
pub fn get_namespace_declarations(self) -> Vec<Namespace>
[src][−]
Get a list of namespaces declared with this node
pub fn lookup_namespace_prefix(self, href: &str) -> Option<String>
[src][−]
Looks up the prefix of a namespace from its URI, basedo around a given Node
pub fn lookup_namespace_uri(self, prefix: &str) -> Option<String>
[src][−]
Looks up the uri of a namespace from its prefix, basedo around a given Node
pub fn get_class_names(self) -> HashSet<String>
[src][−]
Get a set of class names from this node’s attributes
pub fn findnodes(self, xpath: &str, owner: &Document) -> Result<Vec<RoNode>, ()>
[src][−]
find read-only nodes via xpath, at the specified node and a given document
pub fn is_unlinked(self) -> bool
[src][−]
Read-only nodes are always linked
pub fn to_hashable(self) -> usize
[src][−]
libc::c_void
isn’t hashable and cannot be made hashable
pub fn null() -> Self
[src][−]
Create a mock node, used for a placeholder argument
Trait Implementations
impl Clone for RoNode
[src][+]
impl Copy for RoNode
[src]
impl Debug for RoNode
[src][+]
impl Eq for RoNode
[src]
impl PartialEq<RoNode> for RoNode
[src][+]
impl Send for RoNode
[src]
impl Sync for RoNode
[src]
Auto Trait Implementations
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,
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,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,