[][src]Enum sxd_xpath_visitor::Value

pub enum Value<'d> {
    Boolean(bool),
    Number(f64),
    String(String),
    Nodeset(Nodeset<'d>),
}

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]

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]

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]

impl<'d> PartialEq<Nodeset<'d>> for Value<'d>[src]

impl<'d> PartialEq<String> for Value<'d>[src]

impl<'d> PartialEq<Value<'d>> for Value<'d>[src]

impl<'d> PartialEq<Value<'d>> for Nodeset<'d>[src]

impl<'d> PartialEq<bool> for Value<'d>[src]

impl<'d> PartialEq<f64> for Value<'d>[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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.