protoflow_core/
function_block.rs

1// This is free and unencumbered software released into the public domain.
2
3use crate::{prelude::Result, BlockError};
4
5pub trait FunctionBlock<I, O> {
6    fn compute(&self, input: I) -> Result<O, BlockError>;
7}