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
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
Methods
impl<'d> Value<'d>
[src]
fn boolean(&self) -> bool
fn into_boolean(self) -> bool
fn number(&self) -> f64
fn into_number(self) -> f64
fn string(&self) -> String
fn into_string(self) -> String
Trait Implementations
impl<'d> Debug for Value<'d>
[src]
impl<'d> Clone for Value<'d>
[src]
fn clone(&self) -> Value<'d>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<'d> PartialEq for Value<'d>
[src]
fn eq(&self, __arg_0: &Value<'d>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Value<'d>) -> bool
This method tests for !=
.
impl<'d> From<bool> for Value<'d>
[src]
impl<'d> From<f64> for Value<'d>
[src]
impl<'d> From<String> for Value<'d>
[src]
impl<'a, 'd> From<&'a str> for Value<'d>
[src]
impl<'d> From<Nodeset<'d>> for Value<'d>
[src]
impl<'d> PartialEq<bool> for Value<'d>
[src]
fn eq(&self, other: &bool) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl<'d> PartialEq<f64> for Value<'d>
[src]
fn eq(&self, other: &f64) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl<'d> PartialEq<String> for Value<'d>
[src]
fn eq(&self, other: &String) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl<'d> PartialEq<&'d str> for Value<'d>
[src]
fn eq(&self, other: &&'d str) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.