Move predefined module into context module.

This commit is contained in:
Sebastian Schmidt 2021-06-02 16:50:37 +03:00
parent 1532c65a3d
commit f880482f06
3 changed files with 7 additions and 4 deletions

View File

@ -6,9 +6,13 @@
use std::collections::HashMap;
use crate::{function::Function, value::value_type::ValueType, EvalexprError, EvalexprResult};
use crate::{
function::Function,
value::{value_type::ValueType, Value},
EvalexprError, EvalexprResult,
};
use crate::value::Value;
mod predefined;
/// An immutable context.
pub trait Context {

View File

@ -1,4 +1,4 @@
/// Context with all f64::consts available by default.
/// Context with all Rust's constants in `f64::consts` available by default.
/// Alternatively, specifiy constants with `math_consts_context!(E, PI, TAU, ...)`
/// Available constants can be found in the [`core::f64::consts module`](https://doc.rust-lang.org/nightly/core/f64/consts/index.html).
#[macro_export]

View File

@ -523,7 +523,6 @@ mod feature_serde;
mod function;
mod interface;
mod operator;
mod predefined;
mod token;
mod tree;
mod value;