Skip to content

Replace field_offset macro with std::mem::offset_of #7

@Techcable

Description

@Techcable

The latter is preferable since it is in the standard-library and a compiler builtin.

I think there are some safety issues with the current implementation of field_offset!.

However this is blocked on the offset_of_nested feature.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions