Skip to main content

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

1/// The not ranges node will invert the ranges, filling the negative space in time.
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 NotRanges {
14    #[builder(custom(type = super::RangeSeries, convert = Box::new))]
15    #[serde(rename = "input")]
16    input: Box<super::RangeSeries>,
17}
18impl NotRanges {
19    /// Constructs a new instance of the type.
20    #[inline]
21    pub fn new(input: super::RangeSeries) -> Self {
22        Self::builder().input(input).build()
23    }
24    #[inline]
25    pub fn input(&self) -> &super::RangeSeries {
26        &*self.input
27    }
28}