From 7decb7c895bf8e0844586a205cc20232810e8ba5 Mon Sep 17 00:00:00 2001 From: Sebastian Schmidt Date: Wed, 27 Mar 2019 17:55:05 +0100 Subject: [PATCH] Make `ValueType` public --- src/lib.rs | 2 +- src/value/value_type.rs | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 9e74df8..2f283c7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -274,7 +274,7 @@ pub use error::{EvalexprError, EvalexprResult}; pub use function::Function; pub use interface::*; pub use tree::Node; -pub use value::{FloatType, IntType, TupleType, Value}; +pub use value::{FloatType, IntType, TupleType, Value, value_type::ValueType}; mod context; pub mod error; diff --git a/src/value/value_type.rs b/src/value/value_type.rs index ded6cc0..360bf08 100644 --- a/src/value/value_type.rs +++ b/src/value/value_type.rs @@ -3,10 +3,15 @@ use Value; /// The type of a `Value`. #[derive(Clone, Copy, Eq, PartialEq)] pub enum ValueType { + /// The `Value::String` type. String, + /// The `Value::Float` type. Float, + /// The `Value::Int` type. Int, + /// The `Value::Boolean` type. Boolean, + /// The `Value::Tuple` type. Tuple, }