Enum scl::Value [−][src]
pub enum Value { String(String), Integer(i64), Float(f64), Boolean(bool), Date(Date), Array(Vec<Value>), Dict(Dict), }
Representation of a SCL value.
Variants
String(String)
Integer(i64)
Float(f64)
Boolean(bool)
Date(Date)
Array(Vec<Value>)
Dict(Dict)
Methods
impl Value
[src]
impl Value
pub fn same_type(&self, other: &Value) -> bool
[src]
pub fn same_type(&self, other: &Value) -> bool
Tests whether this and another value have the same type.
pub fn type_str(&self) -> &'static str
[src]
pub fn type_str(&self) -> &'static str
Returns a human-readable representation of the type of this value.
Trait Implementations
impl PartialEq for Value
[src]
impl PartialEq for Value
fn eq(&self, other: &Value) -> bool
[src]
fn eq(&self, other: &Value) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Value) -> bool
[src]
fn ne(&self, other: &Value) -> bool
This method tests for !=
.
impl Clone for Value
[src]
impl Clone for Value
fn clone(&self) -> Value
[src]
fn clone(&self) -> Value
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for Value
[src]
impl Debug for Value