uom icon indicating copy to clipboard operation
uom copied to clipboard

Units of measurement -- type-safe zero-cost dimensional analysis

Results 151 uom issues
Sort by recently updated
recently updated
newest added

Consider this toy function ```rust fn invert(x: Length) -> PerLength { 1.0 / x } ``` 1. Is there a convenient way of defining ad-hoc `Quantity`s such as `PerLength`? Can...

Since `uom` was first created the `[must_use = ...]` was stabilized in [Version 1.27.0 (2018-06-21)](https://github.com/rust-lang/rust/blob/master/RELEASES.md#version-1270-2018-06-21)! Review all `uom` functions and add the attribute if necessary.

A first go at something helping with #293. The restriction to `$units` instead of `U: Units` seems a bit weird, but it was the only way I saw to enforce...

See #295 for some discussion about `ISQ!` macro and confusion about names referenced in the example.

(Is opening issues here, appropriate for asking questions about usage of `uom`? Is there some better place for discussions or asking for help?) In my `uom`-less code, I have something...

`tnfilt` (at least the slightly patched version I submitted in a PR (it looks like rustc has changed the amount of qualification in shows in the error messages, since `tnfilt`...

Edit: I am now pretty much convinced that there should be an affine and a vector version of *every* `Quantity`, as described in [this comment](https://github.com/iliekturtles/uom/issues/289#issuecomment-1500202543) further down in the thread....

How can one write tests which check for approximate equality of `uom` floats? There are `uom::tests::Test::{assert_approx_eq, approx_eq)` but `uom::tests` is private, so it's not available to `uom` users. External crates...

Now, I know this is unusual, but it actually comes up in quantum physics. I tried some stuff like using `uom::si::quantities::Length`, but then the compiler tells me that `uom::Conversion` somehow...

I suppose `fluid_ounce` being US (vs. `fluid_ounce_imperial` not) is fair enough, I might be inclined to do the opposite being British. In the case of `teaspoon` & `tablespoon` though I...