1use crate::internal::*;
2
3#[derive(Debug, Clone, new, Hash)]
4pub struct Dummy;
5
6impl Op for Dummy {
7 fn name(&self) -> Cow<str> {
8 "Dummy".into()
9 }
10
11 op_as_typed_op!();
12}
13
14
15
16impl EvalOp for Dummy {
17 fn is_stateless(&self) -> bool {
18 false
19 }
20
21 fn eval(&self, _inputs: TVec<TValue>) -> TractResult<TVec<TValue>> {
22 bail!("eval() called on a Dummy op. This is a bug.")
23 }
24}
25
26impl TypedOp for Dummy {
27 as_op!();
28
29 fn output_facts(&self, _inputs: &[&TypedFact]) -> TractResult<TVec<TypedFact>> {
30 Ok(tvec!())
31 }
32}