Implement Clone for HashMapContext
This commit is contained in:
parent
6a30bd24e2
commit
d466bb0f24
@ -70,7 +70,7 @@ impl Context for EmptyContext {
|
|||||||
/// *Value and function mappings are stored independently, meaning that there can be a function and a value with the same identifier.*
|
/// *Value and function mappings are stored independently, meaning that there can be a function and a value with the same identifier.*
|
||||||
///
|
///
|
||||||
/// This context is type-safe, meaning that an identifier that is assigned a value of some type once cannot be assigned a value of another type.
|
/// This context is type-safe, meaning that an identifier that is assigned a value of some type once cannot be assigned a value of another type.
|
||||||
#[derive(Debug, Default)]
|
#[derive(Clone, Debug, Default)]
|
||||||
#[cfg_attr(feature = "serde_support", derive(Serialize, Deserialize))]
|
#[cfg_attr(feature = "serde_support", derive(Serialize, Deserialize))]
|
||||||
pub struct HashMapContext {
|
pub struct HashMapContext {
|
||||||
variables: HashMap<String, Value>,
|
variables: HashMap<String, Value>,
|
||||||
|
Loading…
Reference in New Issue
Block a user