pub struct XPathNode(pub *mut _xmlNode);Expand description
A node in a node-set, identified by pointer.
We use raw pointers because:
- The tree is owned by the document, not by XPath.
- The C ABI exposes node pointers that callers manipulate.
- Multiple XPath evaluations may reference the same tree.
SAFETY: Node pointers must remain valid for the duration of evaluation.
Tuple Fields§
§0: *mut _xmlNodeTrait Implementations§
impl Copy for XPathNode
impl Eq for XPathNode
Source§impl Ord for XPathNode
impl Ord for XPathNode
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Auto Trait Implementations§
impl !Send for XPathNode
impl !Sync for XPathNode
impl Freeze for XPathNode
impl RefUnwindSafe for XPathNode
impl Unpin for XPathNode
impl UnsafeUnpin for XPathNode
impl UnwindSafe for XPathNode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more