Convert weight from one unit to another. This function accepts both `WeightUnit` enums and string identifiers. # Arguments `value` - The numerical value to convert `from_unit` - The unit to convert from (can be a `WeightUnit` enum or a string) `to_unit` - The unit to convert to (can be a `WeightUnit` enum or a string) # Returns The converted value, or an error if the unit is invalid # Exampl
(value: f64, from_unit: F, to_unit: T)
source not stored for this graph (policy: none)