pub trait IndicatorCalculator: Debug {
// Required methods
fn name(&self) -> String;
fn calculate(&mut self, path: &Path) -> Result<Option<Value>, Error>;
fn metadata(&self) -> Result<Option<Value>, Error>;
}Expand description
Wrapper for the logic that calculates toxicity indicators
Required Methods§
fn name(&self) -> String
fn calculate(&mut self, path: &Path) -> Result<Option<Value>, Error>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".