Tracking Issue for #![feature(offset_of)] · Issue #106655 · rust-lang/rust (original) (raw)

Feature gates tracked by this issue:

This is a tracking issue for the offset_of! macro which evaluates to a constant
containing the offset in bytes of a field inside some type (rust-lang/rfcs#3308).

Public API

// core::mem

pub macro offset_of($Container:ty, field:ttfield:tt field:tt(,)?) { // ...implementation defined... }

Steps / History

Possible future extensions / work

Unresolved Questions

Footnotes

  1. https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html