Add Context
trait
* Rename `HashMapConfiguration` to `HashMapContext` * Rename `EmptyConfiguration` to `EmptyContext` * Implement `Context` for both predefined contexts * Add the `ContextNotManipulable` error variant * Add function `EvalexprError::expected_type` to emit a specific type error when a type is expected dynamically within a context * Update tests and doctests * Add ValueType enum to aid dynamic typing Relates to #22
This commit is contained in:
parent
3da6019dae
commit
b65127c2cb
@ -4,11 +4,15 @@
|
||||
|
||||
### Added
|
||||
|
||||
* Add the `Context` trait, that is a manipulable configuration
|
||||
* Add `ContextNotManipulable` error variant for the `EmptyContext`
|
||||
|
||||
### Removed
|
||||
|
||||
### Changed
|
||||
|
||||
* Get rid of some unwraps to improve safety
|
||||
* Rename `HashMapConfiguration` to `HashMapContext` and `EmptyConfiguration` to `EmptyContext`
|
||||
|
||||
### Fixed
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user