Skip to content

Use AsMut/AsRef-like deref instead of unions #218

Closed
@Emilgardis

Description

@Emilgardis

Currently, svd2rust supports overlapping registers via the cli flag --nightly. This will generate an union of all registers that overlap each other.

Since it is not expected that non-Copy fields in unions will be stabilized soon (see tracking issue rust-lang/rust#32836), another system for access would prove beneficial for library maintainers and users wanting to access overlapping registers using stable rust.

cc @wez @japaric

related #16

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions