Make ValueType public

This commit is contained in:
Sebastian Schmidt 2019-03-27 17:55:05 +01:00
parent 44041b03db
commit 7decb7c895
2 changed files with 6 additions and 1 deletions

View File

@ -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;

View File

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