Trait xso::TextFilter

source ·
pub trait TextFilter {
    // Required method
    fn preprocess(s: &str) -> Cow<'_, str>;
}
Expand description

Trait for preprocessing text data from XML.

This may be used by codecs to allow to customize some of their behaviour.

Required Methods§

source

fn preprocess(s: &str) -> Cow<'_, str>

Process the incoming string and return the result of the processing.

This should avoid copying wherever possible.

Object Safety§

This trait is not object safe.

Implementors§