Skip to main content

Crate use_materials

Crate use_materials 

Source
Expand description

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);

Re-exports§

pub use use_conductivity;
pub use use_density;
pub use use_elasticity;
pub use use_hardness;
pub use use_material_property;
pub use use_strain;
pub use use_stress;
pub use use_thermal_expansion;

Structs§

Density
ElasticModulus
ElectricalConductivity
Hardness
LinearExpansionCoefficient
MaterialProperty
Strain
Stress
ThermalConductivity

Enums§

ConductivityError
DensityError
ElasticityError
HardnessError
HardnessScale
MaterialPropertyError
MaterialPropertyKind
StrainError
StressError
ThermalExpansionError

Functions§

area_expansion_coefficient
coefficient_from_lengths
conductivity_from_resistivity
density
elastic_deformation
engineering_strain
filter_by_kind
final_length
force_from_stress
heat_flow_rate
is_harder_than
linear_expansion
mass_from_density
normal_stress
percent_strain
property_values
resistivity_from_conductivity
same_scale
shear_stress
strain_from_change
strain_from_modulus
stress_from_modulus
thermal_resistance
volume_expansion_coefficient
volume_from_density
youngs_modulus