Make ValueType
public
This commit is contained in:
parent
44041b03db
commit
7decb7c895
@ -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;
|
||||
|
@ -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,
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user