Make node cloneable.
This commit is contained in:
parent
6e5ff8615a
commit
7bc05e0770
@ -32,7 +32,7 @@ mod iter;
|
|||||||
/// assert_eq!(node.eval_with_context(&context), Ok(Value::from(3)));
|
/// assert_eq!(node.eval_with_context(&context), Ok(Value::from(3)));
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
#[derive(Debug, PartialEq)]
|
#[derive(Debug, PartialEq, Clone)]
|
||||||
pub struct Node {
|
pub struct Node {
|
||||||
operator: Operator,
|
operator: Operator,
|
||||||
children: Vec<Node>,
|
children: Vec<Node>,
|
||||||
|
Loading…
Reference in New Issue
Block a user