Skip to main content

nominal_api/conjure/objects/scout/compute/api/
not_series.rs

1/// Negates a boolean series point-wise, producing true where the input is false and false where the input is true.
2#[derive(
3    Debug,
4    Clone,
5    conjure_object::serde::Serialize,
6    conjure_object::serde::Deserialize,
7    conjure_object::private::DeriveWith
8)]
9#[serde(crate = "conjure_object::serde")]
10#[derive_with(PartialEq, Eq, PartialOrd, Ord, Hash)]
11#[conjure_object::private::staged_builder::staged_builder]
12#[builder(crate = conjure_object::private::staged_builder, update, inline)]
13pub struct NotSeries {
14    #[builder(custom(type = super::BooleanSeries, convert = Box::new))]
15    #[serde(rename = "operand")]
16    operand: Box<super::BooleanSeries>,
17}
18impl NotSeries {
19    /// Constructs a new instance of the type.
20    #[inline]
21    pub fn new(operand: super::BooleanSeries) -> Self {
22        Self::builder().operand(operand).build()
23    }
24    #[inline]
25    pub fn operand(&self) -> &super::BooleanSeries {
26        &*self.operand
27    }
28}