protoflow_blocks/blocks/
math.rs

1// This is free and unencumbered software released into the public domain.
2
3pub mod math {
4    use super::{
5        prelude::{Cow, Named},
6        BlockConnections, BlockInstantiation,
7    };
8
9    pub trait MathBlocks {}
10
11    #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
12    #[derive(Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
13    pub enum MathBlockTag {}
14
15    #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
16    #[derive(Clone, Debug)]
17    pub enum MathBlockConfig {}
18
19    impl Named for MathBlockConfig {
20        fn name(&self) -> Cow<str> {
21            unreachable!()
22        }
23    }
24
25    impl BlockConnections for MathBlockConfig {}
26
27    impl BlockInstantiation for MathBlockConfig {}
28}
29
30pub use math::*;