Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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