Skip to main content

PatternTransform

Trait PatternTransform 

Source
pub trait PatternTransform {
    // Required method
    fn apply(&self, input: &str) -> String;
}
Expand description

Trait for applying transformations to strings

Implement this to create custom pattern-based transformations for error messages and data.

Required Methods§

Source

fn apply(&self, input: &str) -> String

Apply the transformation to a string

Implementors§