Thanks to visit codestin.com
Credit goes to docs.rs

Skip to main content

text2digits

Function text2digits 

Source
pub fn text2digits<T: LangInterpreter>(
    text: &str,
    lang: &T,
) -> Result<String, Error>
Expand description

Interpret the text as a integer number or ordinal, and translate it into digits. Return an error if the text couldn’t be undestood as a valid number.