Add `core::mem::offset_of!` RFC by thomcc · Pull Request #3308 · rust-lang/rfcs · GitHub
CRANK

I started this a jillion years ago, and have been meaning to clean it up and submit it for a long time. The intention is to remove most (ideally all) need for hardcoding offsets, computing offsets ...

github.com
Related Topics: GitHub Rust Git
1 comments
  • Rustに構造体の特定のフィールドのオフセットを計算するマクロを追加する提案がマージされた

    Add core::mem::offset_of! RFC by thomcc · Pull Request #3308 · rust-lang/rfcs
    github.com/rust-lang/rfcs…