protoflow_blocks/blocks/
flow.rs

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