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 function::Function;
|
||||||
pub use interface::*;
|
pub use interface::*;
|
||||||
pub use tree::Node;
|
pub use tree::Node;
|
||||||
pub use value::{FloatType, IntType, TupleType, Value};
|
pub use value::{FloatType, IntType, TupleType, Value, value_type::ValueType};
|
||||||
|
|
||||||
mod context;
|
mod context;
|
||||||
pub mod error;
|
pub mod error;
|
||||||
|
@ -3,10 +3,15 @@ use Value;
|
|||||||
/// The type of a `Value`.
|
/// The type of a `Value`.
|
||||||
#[derive(Clone, Copy, Eq, PartialEq)]
|
#[derive(Clone, Copy, Eq, PartialEq)]
|
||||||
pub enum ValueType {
|
pub enum ValueType {
|
||||||
|
/// The `Value::String` type.
|
||||||
String,
|
String,
|
||||||
|
/// The `Value::Float` type.
|
||||||
Float,
|
Float,
|
||||||
|
/// The `Value::Int` type.
|
||||||
Int,
|
Int,
|
||||||
|
/// The `Value::Boolean` type.
|
||||||
Boolean,
|
Boolean,
|
||||||
|
/// The `Value::Tuple` type.
|
||||||
Tuple,
|
Tuple,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user