Skip to main content

nominal_api_conjure/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    conjure_object::log_safety::derive::LogSafe
9)]
10#[serde(crate = "conjure_object::serde")]
11#[derive_with(PartialEq, Eq, PartialOrd, Ord, Hash)]
12#[conjure_object::private::staged_builder::staged_builder]
13#[builder(crate = conjure_object::private::staged_builder, update, inline)]
14pub struct NotRanges {
15    #[builder(custom(type = super::RangeSeries, convert = Box::new))]
16    #[serde(rename = "input")]
17    #[assert_is_safe]
18    input: Box<super::RangeSeries>,
19}
20impl NotRanges {
21    /// Constructs a new instance of the type.
22    #[inline]
23    pub fn new(input: super::RangeSeries) -> Self {
24        Self::builder().input(input).build()
25    }
26    #[inline]
27    pub fn input(&self) -> &super::RangeSeries {
28        &*self.input
29    }
30}