teamy-uom-extensions — quick demo
Tiny examples showing the core formatting helpers. These examples use the default features
(human) so formatting helpers are available out of the box.
Information (bytes)
use ;
use Information;
use byte;
let i = ;
println!;
Output (example):
dec: 1.54 kB bin: 1.50 KiB
Time
use HumanTimeExt;
use Time;
use second;
let t = ;
println!;
Output (example):
human: 1m 30s precise: 1m 30s
InformationRate
use ;
use InformationRate;
use byte_per_second;
let r = ;
println!;
Output (example):
rate: 2.05 kB/s
That's it — quick, minimal examples to demonstrate the core helpers. For full examples see the examples/ directory.