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, }