use-power 0.0.1

Average, mechanical, and electrical power helpers for RustUse
Documentation
  • Coverage
  • 25%
    2 out of 8 items documented1 out of 5 items with examples
  • Size
  • Source code size: 5.42 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 352.28 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 13s Average build duration of successful builds.
  • all releases: 13s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-power

Average, mechanical, and electrical power helpers for RustUse.

Install

[dependencies]
use-power = "0.0.1"

Foundation

use-power provides small f64-first helpers for common power calculations.

Example

use use_power::{average_power, electrical_power};

assert_eq!(average_power(120.0, 6.0)?, 20.0);
assert_eq!(electrical_power(12.0, 2.0), 24.0);
# Ok::<(), use_power::PowerError>(())

When to use directly

Choose use-power when you only need reusable power formulas.

Scope

  • APIs stay f64-first and unit-agnostic.
  • Power electronics models are out of scope.

Status

use-power is a pre-1.0 crate with a deliberately small API.