Make node cloneable.

This commit is contained in:
Sebastian Schmidt 2021-05-28 09:09:04 +03:00
parent 6e5ff8615a
commit 7bc05e0770

View File

@ -32,7 +32,7 @@ mod iter;
/// assert_eq!(node.eval_with_context(&context), Ok(Value::from(3)));
/// ```
///
#[derive(Debug, PartialEq)]
#[derive(Debug, PartialEq, Clone)]
pub struct Node {
operator: Operator,
children: Vec<Node>,