How is field visibility/unsafe fields handled? #220
-
The demo for facet shows using I poked around the rustdocs but didn't find anything mentioning field visibility at all. I also tried to look to see how that was handled for |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The crates haven't been published in a day or so — there's an Some structs are almost POD and it makes sense for them to have an invariant checking function like this, some are really special and they should be treated as scalars, because they're very opaque. |
Beta Was this translation helpful? Give feedback.
The crates haven't been published in a day or so — there's an
invariants
attribute for the derive macro — I encourage you to look at the sources for now.Some structs are almost POD and it makes sense for them to have an invariant checking function like this, some are really special and they should be treated as scalars, because they're very opaque.