use-materials 0.0.1

Composable facade crate for RustUse material-property primitives
Documentation

Thin facade for the use-materials workspace.

The crate reexports the focused material-property crates directly so consumers can opt into one dependency while still using the smaller APIs.

Examples

use use_materials::*;

let density = Density::new(7_850.0).unwrap();
let stress = Stress::new(250_000_000.0).unwrap();
let expansion = linear_expansion(2.0, 12.0e-6, 50.0).unwrap();

assert_eq!(density.kg_per_m3(), 7_850.0);
assert_eq!(stress.megapascals(), 250.0);
assert!((expansion - 0.0012).abs() < 1.0e-12);