We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The dimensioned crate allows us to multiply raw float values with a unit to produce a quantity:
let length: Meter<f64> = 3.0 * M;
In uom, this would look like:
let length: Length = 3.0 * meter;
Similarly, division f64 / Unit could be useful:
f64 / Unit
let frequency: Frequency = 5.0 / second;
For consistency, also allow Unit / f64:
Unit / f64
let one_minute = hour / 60.0;
Essentially, a value that implements Unit could be used wherever a quantity of that dimension is expected.
Unit
The text was updated successfully, but these errors were encountered:
I've been meaning to propose this for a few weeks now, just never got around to it!
Sorry, something went wrong.
Thanks for submitting the issue. This goes along with #91, but I think should be tracked separately.
No branches or pull requests
The dimensioned crate allows us to multiply raw float values with a unit to produce a quantity:
In uom, this would look like:
Similarly, division
f64 / Unit
could be useful:For consistency, also allow
Unit / f64
:Essentially, a value that implements
Unit
could be used wherever a quantity of that dimension is expected.The text was updated successfully, but these errors were encountered: