Mapper

Trait Mapper 

Source
pub trait Mapper: Send + Sync {
    // Required methods
    fn apply(&self, input: &dyn Any) -> Result<NeutrosophicJudgment>;
    fn get_params(&self) -> &dyn Any;
    fn get_type(&self) -> MapperType;
    fn validate(&self) -> Result<()>;
}
Expand description

Base trait for all mappers

Required Methods§

Source

fn apply(&self, input: &dyn Any) -> Result<NeutrosophicJudgment>

Apply the mapper to transform input data

Source

fn get_params(&self) -> &dyn Any

Get the mapper parameters

Source

fn get_type(&self) -> MapperType

Get the mapper type

Source

fn validate(&self) -> Result<()>

Validate the mapper parameters

Implementors§