Skip to main content

PreprocessingStep

Trait PreprocessingStep 

Source
pub trait PreprocessingStep:
    Debug
    + Send
    + Sync {
    // Required methods
    fn process(&self, text: &str) -> Result<String>;
    fn name(&self) -> &str;
}
Expand description

Trait for custom preprocessing steps

Required Methods§

Source

fn process(&self, text: &str) -> Result<String>

Source

fn name(&self) -> &str

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§