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

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

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

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

node_to_inner!(Div);