nominal-api 0.1239.0

API bindings for the Nominal platform
Documentation
/// Divides left by right 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 Divide {
    #[builder(custom(type = super::NumericSeries, convert = Box::new))]
    #[serde(rename = "left")]
    left: Box<super::NumericSeries>,
    #[builder(custom(type = super::NumericSeries, convert = Box::new))]
    #[serde(rename = "right")]
    right: Box<super::NumericSeries>,
}
impl Divide {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(left: super::NumericSeries, right: super::NumericSeries) -> Self {
        Self::builder().left(left).right(right).build()
    }
    /// Numerator.
    #[inline]
    pub fn left(&self) -> &super::NumericSeries {
        &*self.left
    }
    /// Denominator.
    #[inline]
    pub fn right(&self) -> &super::NumericSeries {
        &*self.right
    }
}