WingNews logo WingNews
top | new | best | ask | show | jobs
top | item 40508478

(no title)

pitterpatter | 1 year ago

Yes, Rust supports annotating your types with a `#[repr(...)]` attribute to control how it gets laid out in memory. There's a "C" repr that gives you representations interoperable with C.

https://doc.rust-lang.org/reference/type-layout.html#the-c-r...

discuss

order

No comments yet.

powered by hn/api // news.ycombinator.com