Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheAlgorithms/Rust
/ convert_energy
Function
convert_energy
src/conversions/energy.rs:242–245 ·
view source on GitHub ↗
(value: f64, from: EnergyUnit, to: EnergyUnit)
Source
from the content-addressed store, hash-verified
source not stored for this graph (policy: none)
Callers
15
test_watt_hour
Function · 0.85
test_calorie_nutritional
Function · 0.85
test_electronvolt
Function · 0.85
test_btu_conversions
Function · 0.85
test_foot_pound
Function · 0.85
test_round_trip_conversions
Function · 0.85
test_horsepower_hour
Function · 0.85
test_calorie_variants
Function · 0.85
test_food_energy
Function · 0.85
test_electricity_bill
Function · 0.85
test_large_value
Function · 0.85
test_imperial_units
Function · 0.85
Calls
2
to_joule
Method · 0.80
joule_to_unit
Method · 0.80
Tested by
15
test_watt_hour
Function · 0.68
test_calorie_nutritional
Function · 0.68
test_electronvolt
Function · 0.68
test_btu_conversions
Function · 0.68
test_foot_pound
Function · 0.68
test_round_trip_conversions
Function · 0.68
test_horsepower_hour
Function · 0.68
test_calorie_variants
Function · 0.68
test_food_energy
Function · 0.68
test_electricity_bill
Function · 0.68
test_large_value
Function · 0.68
test_imperial_units
Function · 0.68