pub enum Value<'d> {
Boolean(bool),
Number(f64),
String(String),
Nodeset(Nodeset<'d>),
}Expand description
The primary types of values that an XPath expression accepts as an argument or returns as a result.
Variants§
Boolean(bool)
A true or false value
Number(f64)
A IEEE-754 double-precision floating point number
String(String)
A string
Nodeset(Nodeset<'d>)
A collection of unique nodes
Implementations§
Trait Implementations§
Source§impl<'a> From<&'a Value<'a>> for ArgumentType
impl<'a> From<&'a Value<'a>> for ArgumentType
Source§fn from(other: &'a Value<'a>) -> ArgumentType
fn from(other: &'a Value<'a>) -> ArgumentType
Converts to this type from the input type.
impl<'d> StructuralPartialEq for Value<'d>
Auto Trait Implementations§
impl<'d> !RefUnwindSafe for Value<'d>
impl<'d> !Send for Value<'d>
impl<'d> !Sync for Value<'d>
impl<'d> !UnwindSafe for Value<'d>
impl<'d> Freeze for Value<'d>
impl<'d> Unpin for Value<'d>
impl<'d> UnsafeUnpin for Value<'d>
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