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

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

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

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

node_to_inner!(Sub);