Enum rink::value::Value
[−]
[src]
pub enum Value { Number(Number), DateTime(GenericDateTime), Substance(Substance), }
Variants
Number(Number)
DateTime(GenericDateTime)
Substance(Substance)
Methods
impl Value
[src]
Trait Implementations
impl Clone for Value
[src]
fn clone(&self) -> Value
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 Debug for Value
[src]
impl Show for Value
[src]
fn show(&self, context: &Context) -> String
Provides a string representation of something, using information contained in a Context.
impl<'a, 'b> Add<&'b Value> for &'a Value
[src]
type Output = Result<Value, String>
The resulting type after applying the +
operator
fn add(self, other: &Value) -> Result<Value, String>
The method for the +
operator
impl<'a, 'b> Sub<&'b Value> for &'a Value
[src]
type Output = Result<Value, String>
The resulting type after applying the -
operator
fn sub(self, other: &Value) -> Result<Value, String>
The method for the -
operator
impl<'a> Neg for &'a Value
[src]
type Output = Result<Value, String>
The resulting type after applying the -
operator
fn neg(self) -> Self::Output
The method for the unary -
operator
impl<'a, 'b> Mul<&'b Value> for &'a Value
[src]
type Output = Result<Value, String>
The resulting type after applying the *
operator
fn mul(self, other: &Value) -> Result<Value, String>
The method for the *
operator