pub trait ProcessBlockValues {
// Required method
fn process(
values: &[CurrencyAmount],
) -> Result<CurrencyAmount, &'static str>;
}Expand description
Trait for processing accumulated currency values within a single block.
This can be anything from median, average, or more complex calculation.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.