Skip to main content

Normalizer

Trait Normalizer 

Source
pub trait Normalizer<T> {
    // Required method
    fn normalize(&self, value: &mut T) -> Result<(), String>;

    // Provided method
    fn normalize_with_context(
        &self,
        value: &mut T,
        ctx: &mut dyn VisitorContext,
    ) -> Result<(), String> { ... }
}
Expand description

Transforms a value into a normalized version.

Required Methods§

Source

fn normalize(&self, value: &mut T) -> Result<(), String>

Provided Methods§

Source

fn normalize_with_context( &self, value: &mut T, ctx: &mut dyn VisitorContext, ) -> Result<(), String>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§