protoflow_blocks/
block_instantiation.rs

1// This is free and unencumbered software released into the public domain.
2
3use super::{prelude::Box, System};
4use protoflow_core::Block;
5
6/// A trait for instantiating a block in a given system.
7pub trait BlockInstantiation {
8    fn instantiate(&self, _system: &mut System) -> Box<dyn Block> {
9        unimplemented!()
10    }
11}