-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add associated unit trait for quantity point (#235)
To complement `AssociatedUnitT`, which is for `Quantity`, we add `AssociatedUnitForPointsT`, to support `QuantityPoint`. This lets us simplify the in/as implementations for `QuantityPoint` the same way we had already done for `Quantity`. But the main point is to make it easier to add unit slots to APIs that work with `QuantityPoint`, which will help #221. We also update the docs. The docs for the trait predate the tidy concept of a "unit slot", so we change the language to be more consistent. And on the unit slot page, we add docs for the new options (symbols and constants) on the quantity side, and say a few more words about quantity points.
- Loading branch information
Showing
4 changed files
with
116 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters