protoflow_blocks/blocks/
math.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// This is free and unencumbered software released into the public domain.

pub mod math {
    use super::{
        prelude::{Cow, Named},
        BlockConnections, BlockInstantiation,
    };

    pub trait MathBlocks {}

    #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
    #[derive(Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
    pub enum MathBlockTag {}

    #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
    #[derive(Clone, Debug)]
    pub enum MathBlockConfig {}

    impl Named for MathBlockConfig {
        fn name(&self) -> Cow<str> {
            unreachable!()
        }
    }

    impl BlockConnections for MathBlockConfig {}

    impl BlockInstantiation for MathBlockConfig {}
}

pub use math::*;