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

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

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

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

node_to_inner!(Pow);