use si_scale::scale_fn;
scale_fn!(watts,
base: B1000,
constraint: UnitAndBelow,
mantissa_fmt: "{:.0}",
unit: "W",
doc: "Return a string with the value and its si-scaled unit of watts.");
scale_fn!(watts2,
base: B1000,
constraint: UnitAndBelow,
mantissa_fmt: "{:.2}",
unit: "W",
doc: "Return a string with the value and its si-scaled unit of watts.");
scale_fn!(percent1,
base: B1000,
constraint: UnitOnly,
mantissa_fmt: "{:.1}",
unit: "%",
doc: "Return a string with the value and its si-scaled percentage.");
scale_fn!(mhz,
base: B1000,
constraint: UnitOnly,
mantissa_fmt: "{:.0}",
unit: "MHz",
doc: "Return a string with the value and its si-scaled unit of MHz.");
scale_fn!(bibytes1,
base: B1024,
constraint: UnitAndAbove,
mantissa_fmt: "{:.1}",
unit: "B",
doc: "Return a string with the value and its si-scaled unit of bibytes.");