Skip to main content

Normalizer

Trait Normalizer 

Source
pub trait Normalizer: Send + Sync {
    // Required methods
    fn name(&self) -> &'static str;
    fn normalize(
        &self,
        observation: Observation,
        ctx: &NormalizeContext,
    ) -> Result<Observation, NormalizeError>;

    // Provided method
    fn paths(&self) -> &[String] { ... }
}

Required Methods§

Source

fn name(&self) -> &'static str

Source

fn normalize( &self, observation: Observation, ctx: &NormalizeContext, ) -> Result<Observation, NormalizeError>

Provided Methods§

Source

fn paths(&self) -> &[String]

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§