use-density 0.0.1

Density, mass, and volume helpers for RustUse
Documentation
  • Coverage
  • 33.33%
    3 out of 9 items documented1 out of 5 items with examples
  • Size
  • Source code size: 5.67 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 357.51 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 14s Average build duration of successful builds.
  • all releases: 14s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-density

Density, mass, and volume helpers for RustUse.

Install

[dependencies]
use-density = "0.0.1"

Foundation

use-density provides small f64-first helpers for density relationships.

Example

use use_density::{density, mass, volume};

assert_eq!(density(10.0, 2.0)?, 5.0);
assert_eq!(mass(5.0, 2.0), 10.0);
assert_eq!(volume(10.0, 5.0)?, 2.0);
# Ok::<(), use_density::DensityError>(())

When to use directly

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

Scope

  • APIs stay f64-first and unit-agnostic.
  • Material property tables are out of scope.

Status

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