pub enum Item {
Node(NodeId),
Attr {
owner: NodeId,
index: u32,
},
Ns {
owner: NodeId,
decl: u32,
},
}Expand description
A node in XPath’s data model: a tree node, or an attribute or
namespace node (which the tree keeps on its element rather than as a
node of its own). Twelve bytes: a node-set can hold every node of a big
page, so its name, namespace and value are read from the tree
(Tree::attribute, Doc::namespace_at), not kept here.
Variants§
Trait Implementations§
impl Copy for Item
impl StructuralPartialEq for Item
Auto Trait Implementations§
impl Forget for Item
impl Freeze for Item
impl Move for Item
impl RefUnwindSafe for Item
impl Send for Item
impl Sync for Item
impl Unpin for Item
impl UnsafeUnpin for Item
impl UnwindSafe for Item
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