1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
//! Add operation.

use crate::{builder, node_to_inner, nodes::Node};

/// Add node.
pub struct Add {
    inner: Node,
}

impl Add {
    /// Creates new Add operation.
    pub fn new<Lhs: Into<String>, Rhs: Into<String>>(lhs: Lhs, rhs: Rhs) -> Self {
        Add {
            inner: builder::Node::new("Add").input(lhs).input(rhs).build(),
        }
    }
}

node_to_inner!(Add);