-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
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
Quantity should be repr(transparent)
#145
Comments
gnzlbg
added a commit
to gnzlbg/uom
that referenced
this issue
Jun 13, 2019
Looks like work in |
iliekturtles
added a commit
that referenced
this issue
Jun 13, 2019
Changed in anticipation of adding `#[repr(transparent)]` in #145. Zero-cost codegen note regarding `rustc` 1.25.0 is now no longer relevant.
iliekturtles
added a commit
that referenced
this issue
Jun 15, 2019
Changed in anticipation of adding `#[repr(transparent)]` in #145. Zero-cost codegen note regarding `rustc` 1.25.0 is now no longer relevant.
iliekturtles
added a commit
that referenced
this issue
Jun 15, 2019
Changed in anticipation of adding `#[repr(transparent)]` in #145. Zero-cost codegen note regarding `rustc` 1.25.0 is now no longer relevant.
iliekturtles
added a commit
that referenced
this issue
Jun 15, 2019
Changed in anticipation of adding `#[repr(transparent)]` in #145. Zero-cost codegen note regarding `rustc` 1.25.0 is now no longer relevant.
iliekturtles
added a commit
that referenced
this issue
Jun 16, 2019
Changed in anticipation of adding `#[repr(transparent)]` in #145. Zero-cost codegen note regarding `rustc` 1.25.0 is now no longer relevant.
iliekturtles
added a commit
that referenced
this issue
Jun 16, 2019
Changed in anticipation of adding `#[repr(transparent)]` in #145. Zero-cost codegen note regarding `rustc` 1.25.0 is now no longer relevant.
iliekturtles
added a commit
that referenced
this issue
Jun 17, 2019
Changed in anticipation of adding `#[repr(transparent)]` in #145. Zero-cost codegen note regarding `rustc` 1.25.0 is now no longer relevant.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is there a reason why this is not the case ? Without
repr(transparent)
Quantity
has a struct ABI, instead of the ABI ofT
(scalar float or scalar integer). This means that one cannot useQuantity
in C FFI, and it also might mean that the compiler might generate sub-optimal code for those situations in which the struct ABI is worse than the float or integer one.The text was updated successfully, but these errors were encountered: