decancer

Function cure

Source
pub fn cure(input: &str, options: Options) -> Result<CuredString, Error>
Expand description

Cures a string with the specified Options.

To use this function with decancer’s default options, use the cure macro instead.

§Errors

Errors if the string is malformed to the point where it’s not possible to apply unicode’s bidirectional algorithm to it. This error is possible if Options::disable_bidi is disabled.