[−][src]Function naturalize::to_natural
pub fn to_natural(src: &str) -> Result<String, Box<dyn Error>>
Convert a string to a convenient view for natural sorting. E.g., output string may be stored into database for ordering by.
Example:
use naturalize::to_natural; let nat = to_natural("abc123def").unwrap(); assert_eq!(nat, "abc0000000123def");