I'm not sure. It _is_ specified that bool is a single byte. https://github.com/rust-lang/rust/pull/46156 … There are various places in the docs for bool that say 1=True and 0=False, so it's very close to std _Bool now.
`_Bool` isn't guaranteed to be a single byte though. Also, calling conventions and structure packing require more than specifying the size; at least the alignment needs to be specified, and also the register vs. stack argument/result passing convention.
-
-
Ah, yeah. "An object declared as type _Bool is large enough to store the values 0 and 1." Re pack and alignment, yes I agree, so your assessment looks right.. it cannot be safely used in an FFI context.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.