Skip to main content

IndicatorCalculator

Trait IndicatorCalculator 

Source
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§

Source

fn name(&self) -> String

Source

fn calculate(&mut self, path: &Path) -> Result<Option<Value>, Error>

Source

fn metadata(&self) -> Result<Option<Value>, Error>

root-level metadata - output after all files added

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§