From b65127c2cb75c7425932f1fdaafde3b7c2923ba2 Mon Sep 17 00:00:00 2001 From: Sebastian Schmidt Date: Wed, 27 Mar 2019 17:53:01 +0100 Subject: [PATCH] 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 --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 97f81b2..19ed923 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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