pub trait XmlNodeIterator: Clone {
type Navigator: DomNavigator;
// Required methods
fn current(&self) -> Option<XmlItemRef<'_, Self::Navigator>>;
fn current_position(&self) -> Option<usize>;
fn move_next(&mut self) -> Result<bool, XPathError>;
// Provided methods
fn sequential_position(&self) -> Option<usize> { ... }
fn reset_sequential_position(&mut self) { ... }
}Expand description
Iterator over XPath items (nodes + atomic values).
This mirrors the .NET XPathNodeIterator shape: a cloneable cursor with
current and move_next semantics.
Required Associated Types§
Required Methods§
Sourcefn current(&self) -> Option<XmlItemRef<'_, Self::Navigator>>
fn current(&self) -> Option<XmlItemRef<'_, Self::Navigator>>
Current item (None before first move_next or after end).
Sourcefn current_position(&self) -> Option<usize>
fn current_position(&self) -> Option<usize>
0-based position of the current item, or None if not started/finished.
Sourcefn move_next(&mut self) -> Result<bool, XPathError>
fn move_next(&mut self) -> Result<bool, XPathError>
Advance to next item; returns false at end of sequence.
Provided Methods§
Sourcefn sequential_position(&self) -> Option<usize>
fn sequential_position(&self) -> Option<usize>
1-based sequential position for axis iteration.
Sourcefn reset_sequential_position(&mut self)
fn reset_sequential_position(&mut self)
Reset sequential position tracking (used by position filters).
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".