/// Raises base to the power of exponent pointwise.
#[derive(
    Debug,
    Clone,
    conjure_object::serde::Serialize,
    conjure_object::serde::Deserialize,
    conjure_object::private::DeriveWith
)]
#[serde(crate = "conjure_object::serde")]
#[derive_with(PartialEq, Eq, PartialOrd, Ord, Hash)]
#[conjure_object::private::staged_builder::staged_builder]
#[builder(crate = conjure_object::private::staged_builder, update, inline)]
pub struct Power {
    #[builder(custom(type = super::NumericSeries, convert = Box::new))]
    #[serde(rename = "base")]
    base: Box<super::NumericSeries>,
    #[builder(custom(type = super::NumericSeries, convert = Box::new))]
    #[serde(rename = "exponent")]
    exponent: Box<super::NumericSeries>,
}
impl Power {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(base: super::NumericSeries, exponent: super::NumericSeries) -> Self {
        Self::builder().base(base).exponent(exponent).build()
    }
    /// Base values.
    #[inline]
    pub fn base(&self) -> &super::NumericSeries {
        &*self.base
    }
    /// Exponent values.
    #[inline]
    pub fn exponent(&self) -> &super::NumericSeries {
        &*self.exponent
    }
}
