pub enum XPathValue {
NodeSet(NodeSet),
String(String),
Number(f64),
Boolean(bool),
}Expand description
XPath runtime value.
Variants§
Implementations§
Source§impl XPathValue
impl XPathValue
Sourcepub fn xpath_type(&self) -> XPathType
pub fn xpath_type(&self) -> XPathType
Get the XPath type of this value.
Sourcepub fn as_boolean(&self) -> bool
pub fn as_boolean(&self) -> bool
Convert to boolean (XPath 1.0 §3.4).
Sourcepub fn as_node_set(&self) -> &NodeSet
pub fn as_node_set(&self) -> &NodeSet
Get node-set reference (panics if not a node-set).
Sourcepub fn as_node_set_mut(&mut self) -> &mut NodeSet
pub fn as_node_set_mut(&mut self) -> &mut NodeSet
Get mutable node-set reference.
Trait Implementations§
Source§impl Clone for XPathValue
impl Clone for XPathValue
Source§fn clone(&self) -> XPathValue
fn clone(&self) -> XPathValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 !Send for XPathValue
impl !Sync for XPathValue
impl Freeze for XPathValue
impl RefUnwindSafe for XPathValue
impl Unpin for XPathValue
impl UnsafeUnpin for XPathValue
impl UnwindSafe for XPathValue
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