[−][src]Enum sxd_xpath_visitor::Value
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
impl<'d> Value<'d>
[src]
pub fn boolean(&self) -> bool
[src]
pub fn into_boolean(self) -> bool
[src]
pub fn number(&self) -> f64
[src]
pub fn into_number(self) -> f64
[src]
pub fn string(&self) -> String
[src]
pub fn into_string(self) -> String
[src]
Trait Implementations
impl<'d> Clone for Value<'d>
[src]
impl<'d> Debug for Value<'d>
[src]
impl<'a> From<&'a Value<'a>> for ArgumentType
[src]
pub fn from(other: &'a Value<'a>) -> ArgumentType
[src]
impl<'a, 'd> From<&'a str> for Value<'d>
[src]
impl<'d> From<Nodeset<'d>> for Value<'d>
[src]
impl<'d> From<String> for Value<'d>
[src]
impl From<Value<'static>> for Literal
[src]
pub fn from(other: LiteralValue) -> Literal
[src]
impl<'d> From<bool> for Value<'d>
[src]
impl<'d> From<f64> for Value<'d>
[src]
impl<'d> PartialEq<&'d str> for Value<'d>
[src]
pub fn eq(&self, other: &&'d str) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'d> PartialEq<Nodeset<'d>> for Value<'d>
[src]
pub fn eq(&self, other: &Nodeset<'d>) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'d> PartialEq<String> for Value<'d>
[src]
pub fn eq(&self, other: &String) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'d> PartialEq<Value<'d>> for Value<'d>
[src]
impl<'d> PartialEq<Value<'d>> for Nodeset<'d>
[src]
pub fn eq(&self, other: &Value<'d>) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'d> PartialEq<bool> for Value<'d>
[src]
pub fn eq(&self, other: &bool) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'d> PartialEq<f64> for Value<'d>
[src]
pub fn eq(&self, other: &f64) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'d> StructuralPartialEq for Value<'d>
[src]
Auto Trait Implementations
impl<'d> !RefUnwindSafe for Value<'d>
[src]
impl<'d> !Send for Value<'d>
[src]
impl<'d> !Sync for Value<'d>
[src]
impl<'d> Unpin for Value<'d>
[src]
impl<'d> !UnwindSafe for Value<'d>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Downcast for T where
T: Any,
[src]
T: Any,
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
[src]
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
[src]
pub fn as_any(&self) -> &(dyn Any + 'static)
[src]
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,