naturalize
Convert a string to a convenient view for natural sorting.
E.g., output string may be stored into database for ordering by.
Usage
To use naturalize
, first add this to your Cargo.toml
:
[]
= "0.1"
Next, add this to your crate:
extern crate naturalize;
use to_natural;
Examples:
use to_natural;
let nat = to_natural.unwrap;
assert_eq!;
use to_natural;
let nat = to_natural.unwrap;
assert_eq!;
use to_natural;
let nat = to_natural.unwrap;
assert_eq!;
use to_natural;
let nat = to_natural.unwrap;
assert_eq!;
use to_natural;
let nat = to_natural.unwrap;
assert_eq!;
use to_natural;
let nat = to_natural.unwrap;
assert_eq!;
use to_natural;
let nat = to_natural.unwrap;
assert_eq!;
use to_natural;
let nat = to_natural.unwrap;
assert_eq!;
use to_natural;
let nat = to_natural.unwrap;
assert_eq!;