offset_of_slice
The tracking issue for this feature is: #120141
When the offset_of_enum
feature is enabled, the offset_of!
macro may be used to obtain the
offsets of fields of enum
s; to express this, enum
variants may be traversed as if they were
fields. Variants themselves do not have an offset, so they cannot appear as the last path component.