pub enum XPathResult {
NodeSet(Vec<XPathNode>),
String(String),
Number(f64),
Boolean(bool),
}Expand description
Result of a top-level XPath evaluation — either a node set or a scalar value.
Variants§
NodeSet(Vec<XPathNode>)
Node set (from location paths, unions, id(), filter expressions)
String(String)
Scalar string (from string(), concat(), etc.)
Number(f64)
Scalar number (from count(), sum(), number(), arithmetic)
Boolean(bool)
Scalar boolean (from boolean(), not(), comparisons)
Implementations§
Source§impl XPathResult
impl XPathResult
Sourcepub fn to_display_string(&self, index: &XmlIndex<'_>) -> String
pub fn to_display_string(&self, index: &XmlIndex<'_>) -> String
Format as a display string, matching xmllint behavior.
Trait Implementations§
Source§impl Clone for XPathResult
impl Clone for XPathResult
Source§fn clone(&self) -> XPathResult
fn clone(&self) -> XPathResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for XPathResult
impl RefUnwindSafe for XPathResult
impl Send for XPathResult
impl Sync for XPathResult
impl Unpin for XPathResult
impl UnsafeUnpin for XPathResult
impl UnwindSafe for XPathResult
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