1use super::{
2 DelayType, OperatorCategory, OperatorConstraints, IDENTITY_WRITE_FN, RANGE_0,
3 RANGE_1,
4};
56/// Delays all elements which pass through to the next stratum (in the same
7/// tick).
8///
9/// You can also supply a type parameter `next_stratum::<MyType>()` to specify what items flow
10/// through the the pipeline. This can be useful for helping the compiler infer types.
11pub const NEXT_STRATUM: OperatorConstraints = OperatorConstraints {
12 name: "next_stratum",
13 categories: &[OperatorCategory::Control],
14 hard_range_inn: RANGE_1,
15 soft_range_inn: RANGE_1,
16 hard_range_out: RANGE_1,
17 soft_range_out: RANGE_1,
18 num_args: 0,
19 persistence_args: &(0..=1),
20 type_args: RANGE_0,
21 is_external_input: false,
22 has_singleton_output: false,
23 flo_type: None,
24 ports_inn: None,
25 ports_out: None,
26 input_delaytype_fn: |_| Some(DelayType::Stratum),
27 write_fn: IDENTITY_WRITE_FN,
28};