pub struct RoNode(_);
Expand description

Lightweight struct for read-only parallel processing

Implementations

Immutably borrows the underlying libxml2 xmlNodePtr pointer

Returns the next sibling if it exists

Returns the previous sibling if it exists

Returns the first child if it exists

Returns the last child if it exists

Returns the next element sibling if it exists

Returns the previous element sibling if it exists

Returns the first element child if it exists

Returns the last element child if it exists

Returns all child nodes of the given node as a vector

Returns all child elements of the given node as a vector

Returns the parent if it exists

Get the node type

Returns true if it is a text node

Checks if the given node is an Element

Checks if the underlying libxml2 pointer is NULL

Returns the name of the node (empty string if name pointer is NULL)

Returns the content of the node (assumes UTF-8 XML document)

Returns the value of property name

Returns the value of property name in namespace ns

Return an attribute as a Node struct of type AttributeNode

Alias for get_property

Alias for get_property_ns

Alias for get_property_node

Get a copy of the attributes of this node

Alias for get_properties

Check if a property has been defined, without allocating its value

Check if property name in namespace ns exists

Alias for has_property

Alias for has_property_ns

Gets the active namespace associated of this node

Gets a list of namespaces associated with this node

Get a list of namespaces declared with this node

Looks up the prefix of a namespace from its URI, basedo around a given Node

Looks up the uri of a namespace from its prefix, basedo around a given Node

Get a set of class names from this node’s attributes

find read-only nodes via xpath, at the specified node and a given document

Read-only nodes are always linked

libc::c_void isn’t hashable and cannot be made hashable

Create a mock node, used for a placeholder argument

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Two nodes are considered equal, if they point to the same xmlNode.

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.