Enum sxd_xpath::Value [] [src]

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

A true or false value

A IEEE-754 double-precision floating point number

A string

A collection of unique nodes

Methods

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

Trait Implementations

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

Formats the value using the given formatter.

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

Performs the conversion.

impl<'d> From<f64> for Value<'d>
[src]

Performs the conversion.

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

Performs the conversion.

impl<'a, 'd> From<&'a str> for Value<'d>
[src]

Performs the conversion.

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

Performs the conversion.

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

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.