Skip to content

Implement From - #30

Open
Shatur wants to merge 2 commits into
rust-embedded-community:masterfrom
fortify-iq:from-impl
Open

Shatur wants to merge 2 commits into
rust-embedded-community:masterfrom
fortify-iq:from-impl

Conversation

@Shatur

@Shatur Shatur commented Sep 15, 2026

Copy link
Copy Markdown

Our code has a feature that requires aligned data when enabled. To avoid adding cfgs to tests, I added From.
This allows us to call into() on the data, so it is automatically wrapped in Aligned when the feature is enabled.

Our code has a feature that requires aligned data when enabled.
To avoid adding `cfg`s to tests, I added `From`.
This allows us to call `into()` on the data, so it is automatically
wrapped in `Aligned` when the feature is enabled.
@Shatur

Shatur commented Sep 15, 2026

Copy link
Copy Markdown
Author

Also added AsRef and AsMut to allow passing &mut aligned into places that accept a regular array.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant