Convert a volume value from one unit to another # Examples ``` use the_algorithms_rust::conversions::{convert_volume, VolumeUnit}; let liters = convert_volume(1.0, VolumeUnit::CubicMeter, VolumeUnit::Liter); assert_eq!(liters, 1000.0); let gallons = convert_volume(1.0, VolumeUnit::Liter, VolumeUnit::GallonUs); assert!((gallons - 0.264172).abs() < 0.0001); ```
(value: f64, from: VolumeUnit, to: VolumeUnit)
source not stored for this graph (policy: none)