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§
Provided Methods§
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".