Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added get_field_at_index and count_fields to struct values #451

Merged
merged 3 commits into from
Nov 27, 2023
Merged

Added get_field_at_index and count_fields to struct values #451

merged 3 commits into from
Nov 27, 2023

Conversation

tfzee
Copy link
Contributor

@tfzee tfzee commented Nov 23, 2023

Added get_field_at_index and count_fields to StructValue.

Description

This mirrors the functions from StructType and allows accessing members of const structures directly.

Related Issue

#450

How This Has Been Tested

Added a few simple assertions to the tests.
test_values.rs

Checklist

@tfzee tfzee mentioned this pull request Nov 23, 2023
@TheDan64 TheDan64 self-requested a review November 25, 2023 21:39
@TheDan64
Copy link
Owner

Thanks!

@TheDan64 TheDan64 merged commit 776d787 into TheDan64:master Nov 27, 2023
@TheDan64 TheDan64 linked an issue Nov 27, 2023 that may be closed by this pull request
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.

Const struct member access
3 participants