use-pressure 0.0.1

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

use-pressure

Pressure and hydrostatic pressure helpers for RustUse.

Install

[dependencies]
use-pressure = "0.0.1"

Foundation

use-pressure provides small f64-first helpers for pressure calculations.

Example

use use_pressure::{hydrostatic_pressure, pressure};

assert_eq!(pressure(100.0, 4.0)?, 25.0);
assert_eq!(hydrostatic_pressure(1000.0, 10.0, 2.0), 20_000.0);
# Ok::<(), use_pressure::PressureError>(())

When to use directly

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

Scope

  • APIs stay f64-first and unit-agnostic.
  • Compressible fluid models are out of scope.

Status

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